43 13, 14, 16, 18, 20, 21, 27, 32, 6, 1, 1, 1, 1, 1, 1, 1
46 18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1
129 mode = (toc >> 3) & 0x0F;
152 if (read != size - 1) {
161 #if CONFIG_AMR_DEMUXER 173 #if CONFIG_AMRNB_DEMUXER 176 int mode,
i = 0, valid = 0, invalid = 0;
179 while (i < p->buf_size) {
180 mode = b[
i] >> 3 & 0x0F;
181 if (mode < 9 && (b[i] & 0x4) == 0x4) {
198 if (valid > 100 && valid >> 4 > invalid)
229 #if CONFIG_AMRWB_DEMUXER 232 int mode,
i = 0, valid = 0, invalid = 0;
235 while (i < p->buf_size) {
236 mode = b[
i] >> 3 & 0x0F;
237 if (mode < 10 && (b[i] & 0x4) == 0x4) {
254 if (valid > 100 && valid >> 4 > invalid)
289 .mime_type =
"audio/amr",
293 .write_header = amr_write_header,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t pos
byte position in stream, -1 if unknown
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
static int amr_read_header(AVFormatContext *s)
static const char AMR_header[]
This struct describes the properties of an encoded stream.
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.
static const char AMRWB_header[]
#define AVERROR_EOF
End of file.
static const uint8_t amrnb_packed_size[16]
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
static const uint8_t header[24]
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#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.
int avio_r8(AVIOContext *s)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
audio channel layout utility functions
static const uint8_t amrwb_packed_size[16]
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
AVIOContext * pb
I/O context.
This structure contains the data a format has to probe a file.
#define flags(name, subs,...)
static int amr_read_packet(AVFormatContext *s, AVPacket *pkt)
int sample_rate
Audio only.
static int amr_probe(const AVProbeData *p)
void * priv_data
Format private data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Frame references ownership and permissions
#define AV_CH_LAYOUT_MONO
#define MKTAG(a, b, c, d)
This structure stores compressed data.
mode
Use these values in ebur128_init (or'ed).