27 #define MAGIC "Packed Animation File V1.0\n(c) 1992-96 Amazing Studio\x0a\x1a"
82 for (i = 0; i <
count; i++)
144 p->
nb_frames > INT_MAX /
sizeof(uint32_t) ||
253 if (pkt->
data[0] & 0x20)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int read_probe(AVProbeData *p)
#define PAF_SOUND_FRAME_SIZE
uint32_t * blocks_offset_table
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
#define AV_CH_LAYOUT_STEREO
static int read_header(AVFormatContext *s)
uint32_t current_frame_block
uint32_t current_frame_count
static int read_close(AVFormatContext *s)
uint32_t * frames_offset_table
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVInputFormat ff_paf_demuxer
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
static const uint16_t table[]
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
static int read_packet(AVFormatContext *s, AVPacket *pkt)
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
static const uint8_t offset[127][2]
int flags
A combination of AV_PKT_FLAG values.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
audio channel layout utility functions
uint8_t * temp_audio_frame
AVIOContext * pb
I/O context.
#define PAF_SOUND_SAMPLES
This structure contains the data a format has to probe a file.
int64_t duration
Decoding: duration of the stream, in stream time base.
int sample_rate
Audio only.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
int64_t nb_frames
number of frames in this stream if known or 0
void * priv_data
Format private data.
uint32_t * blocks_count_table
static void read_table(AVFormatContext *s, uint32_t *table, uint32_t count)
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
This structure stores compressed data.