28 #define APM_FILE_HEADER_SIZE 20 29 #define APM_VS12_CHUNK_SIZE 76 30 #define APM_MAX_READ_SIZE 4096 32 #define APM_TAG_VS12 MKTAG('v', 's', '1', '2') 33 #define APM_TAG_DATA MKTAG('D', 'A', 'T', 'A')
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define avpriv_request_sample(...)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
#define AV_CH_LAYOUT_STEREO
This struct describes the properties of an encoded stream.
#define APM_FILE_HEADER_SIZE
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVStream ** streams
A list of all streams in the file.
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, int size, int big_endian)
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define i(width, name, range_min, range_max)
unsigned int avio_rl32(AVIOContext *s)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int flags
A combination of AV_PKT_FLAG values.
int buf_size
Size of buf except extra allocated bytes.
#define APM_VS12_CHUNK_SIZE
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
common internal API header
#define APM_MAX_READ_SIZE
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
#define FF_ARRAY_ELEMS(a)
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
AVIOContext * pb
I/O context.
static int apm_probe(const AVProbeData *p)
This structure contains the data a format has to probe a file.
static int apm_read_packet(AVFormatContext *s, AVPacket *pkt)
int bits_per_raw_sample
This is the number of valid bits in each output sample.
int64_t duration
Decoding: duration of the stream, in stream time base.
int sample_rate
Audio only.
AVInputFormat ff_apm_demuxer
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
static void apm_parse_vs12(APMVS12Chunk *vs12, const uint8_t *buf)
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
static int apm_read_header(AVFormatContext *s)
int bits_per_coded_sample
The number of bits per sample in the codedwords.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
#define AV_CH_LAYOUT_MONO
This structure stores compressed data.