34 #define XA00_TAG MKTAG('X', 'A', 0, 0)
35 #define XAI0_TAG MKTAG('X', 'A', 'I', 0)
36 #define XAJ0_TAG MKTAG('X', 'A', 'J', 0)
46 int channels, srate, bits_per_sample;
60 if (!channels || channels > 8 || !srate || srate > 192000 ||
61 bits_per_sample < 4 || bits_per_sample > 32)
101 unsigned int packet_size;
static int xa_probe(AVProbeData *p)
int index
stream index in AVFormatContext
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
AVInputFormat ff_xa_demuxer
static int read_header(FFV1Context *f)
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
static int xa_read_packet(AVFormatContext *s, AVPacket *pkt)
AVCodecContext * codec
codec context
int buf_size
Size of buf except extra allocated bytes.
uint32_t audio_frame_counter
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
static int xa_read_header(AVFormatContext *s, AVFormatParameters *ap)
int bit_rate
the average bitrate
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int read_probe(AVProbeData *p)
enum AVMediaType codec_type
int sample_rate
samples per second
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
This structure contains the data a format has to probe a file.
unsigned int avio_rl16(AVIOContext *s)
int channels
number of audio channels
void * priv_data
Format private data.
struct MaxisXADemuxContext MaxisXADemuxContext
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...