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
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.
#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
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.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
#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)
static const struct endianess table[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const uint8_t offset[127][2]
int flags
A combination of AV_PKT_FLAG values.
uint64_t channel_layout
Audio channel layout.
AVCodecContext * codec
Codec context associated with this stream.
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
int width
picture width / height.
uint8_t * temp_audio_frame
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
#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.
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
int channels
number of audio channels
void * priv_data
Format private data.
uint32_t * blocks_count_table
static void read_table(AVFormatContext *s, uint32_t *table, uint32_t count)
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.
This structure stores compressed data.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...