#include "parser.h"#include "mpegaudio.h"#include "mpegaudiodecheader.h"Go to the source code of this file.
Data Structures | |
| struct | MpegAudioParseContext |
Defines | |
| #define | MPA_HEADER_SIZE 4 |
| #define | SAME_HEADER_MASK (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19)) |
Functions | |
| int | ff_mpa_decode_header (AVCodecContext *avctx, uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bit_rate) |
| static av_cold int | mpegaudio_parse_init (AVCodecParserContext *s1) |
| static int | mpegaudio_parse (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
Variables | |
| AVCodecParser | mpegaudio_parser |
| #define MPA_HEADER_SIZE 4 |
| #define SAME_HEADER_MASK (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19)) |
Definition at line 42 of file mpegaudio_parser.c.
| int ff_mpa_decode_header | ( | AVCodecContext * | avctx, | |
| uint32_t | head, | |||
| int * | sample_rate, | |||
| int * | channels, | |||
| int * | frame_size, | |||
| int * | bit_rate | |||
| ) |
Definition at line 47 of file mpegaudio_parser.c.
Referenced by mp3_read_probe(), and mpegaudio_parse().
| static int mpegaudio_parse | ( | AVCodecParserContext * | s1, | |
| AVCodecContext * | avctx, | |||
| const uint8_t ** | poutbuf, | |||
| int * | poutbuf_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 91 of file mpegaudio_parser.c.
| static av_cold int mpegaudio_parse_init | ( | AVCodecParserContext * | s1 | ) | [static] |
Definition at line 84 of file mpegaudio_parser.c.
Initial value:
{
{ CODEC_ID_MP1, CODEC_ID_MP2, CODEC_ID_MP3 },
sizeof(MpegAudioParseContext),
mpegaudio_parse_init,
mpegaudio_parse,
NULL,
}
Definition at line 252 of file mpegaudio_parser.c.
1.5.8