32 #define SCHl_TAG MKTAG('S', 'C', 'H', 'l')
33 #define SEAD_TAG MKTAG('S', 'E', 'A', 'D')
34 #define SNDC_TAG MKTAG('S', 'N', 'D', 'C')
35 #define SEND_TAG MKTAG('S', 'E', 'N', 'D')
36 #define SHEN_TAG MKTAG('S', 'H', 'E', 'N')
37 #define SDEN_TAG MKTAG('S', 'D', 'E', 'N')
38 #define SEEN_TAG MKTAG('S', 'E', 'E', 'N')
39 #define ISNh_TAG MKTAG('1', 'S', 'N', 'h')
40 #define EACS_TAG MKTAG('E', 'A', 'C', 'S')
41 #define ISNd_TAG MKTAG('1', 'S', 'N', 'd')
42 #define ISNe_TAG MKTAG('1', 'S', 'N', 'e')
43 #define PT00_TAG MKTAG('P', 'T', 0x0, 0x0)
44 #define GSTR_TAG MKTAG('G', 'S', 'T', 'R')
45 #define SCDl_TAG MKTAG('S', 'C', 'D', 'l')
46 #define SCEl_TAG MKTAG('S', 'C', 'E', 'l')
47 #define kVGT_TAG MKTAG('k', 'V', 'G', 'T')
48 #define fVGT_TAG MKTAG('f', 'V', 'G', 'T')
49 #define mTCD_TAG MKTAG('m', 'T', 'C', 'D')
50 #define MADk_TAG MKTAG('M', 'A', 'D', 'k')
51 #define MADm_TAG MKTAG('M', 'A', 'D', 'm')
52 #define MADe_TAG MKTAG('M', 'A', 'D', 'e')
53 #define MPCh_TAG MKTAG('M', 'P', 'C', 'h')
54 #define TGQs_TAG MKTAG('T', 'G', 'Q', 's')
55 #define pQGT_TAG MKTAG('p', 'Q', 'G', 'T')
56 #define pIQT_TAG MKTAG('p', 'I', 'Q', 'T')
57 #define MVhd_TAG MKTAG('M', 'V', 'h', 'd')
58 #define MV0K_TAG MKTAG('M', 'V', '0', 'K')
59 #define MV0F_TAG MKTAG('M', 'V', '0', 'F')
60 #define MVIh_TAG MKTAG('M', 'V', 'I', 'h')
61 #define MVIf_TAG MKTAG('M', 'V', 'I', 'f')
89 for (i = 0; i <
size; i++) {
107 int compression_type = -1, revision = -1, revision2 = -1;
137 av_log (s,
AV_LOG_DEBUG,
"compression_type (element 0x83) set to 0x%08x\n", compression_type);
177 switch (compression_type) {
202 av_log(s,
AV_LOG_ERROR,
"unsupported stream type; compression_type=%i\n", compression_type);
220 int compression_type;
225 compression_type =
avio_r8(pb);
228 switch (compression_type) {
238 av_log (s,
AV_LOG_ERROR,
"unsupported stream type; audio compression_type=%i\n", compression_type);
291 uint32_t blockid,
size = 0;
321 }
else if ((blockid & 0xFFFF)!=
PT00_TAG) {
373 avio_seek(pb, startpos + size, SEEK_SET);
429 "Unsupported number of channels: %d\n", ea->
num_channels);
438 if (ea->
bytes <= 0) {
472 unsigned int chunk_type, chunk_size;
476 while (!packet_read) {
483 switch (chunk_type) {
553 goto get_video_packet;
558 goto get_video_packet;
static int process_ea_header(AVFormatContext *s)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int process_audio_header_eacs(AVFormatContext *s)
AV_WL32 AV_WL24 AV_WL16 AV_RB32
#define AV_LOG_WARNING
Something somehow does not look correct.
int index
stream index in AVFormatContext
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
unsigned int avio_rb32(AVIOContext *s)
static int read_header(FFV1Context *f)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
preferred ID for MPEG-1/2 video decoding
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
static int process_video_header_vp6(AVFormatContext *s)
int flags
A combination of AV_PKT_FLAG values.
int avio_r8(AVIOContext *s)
AVCodecContext * codec
codec context
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
struct AVRational AVRational
rational number numerator/denominator
int bit_rate
the average bitrate
struct EaDemuxContext EaDemuxContext
static int process_audio_header_elements(AVFormatContext *s)
int width
picture width / height.
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)
static int ea_read_header(AVFormatContext *s, AVFormatParameters *ap)
enum AVMediaType codec_type
int sample_rate
samples per second
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
static int process_video_header_mdec(AVFormatContext *s)
rational number numerator/denominator
static int process_audio_header_sead(AVFormatContext *s)
This structure contains the data a format has to probe a file.
static int ea_probe(AVProbeData *p)
unsigned int avio_rl16(AVIOContext *s)
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
CodecID
Identify the syntax and semantics of the bitstream.
int eof_reached
true if eof reached
int channels
number of audio channels
void * priv_data
Format private data.
static uint32_t read_arbitary(AVIOContext *pb)
static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)
AVInputFormat ff_ea_demuxer
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
preferred ID for decoding MPEG audio layer 1, 2 or 3