mpegaudio_parser.c File Reference
#include "parser.h"
#include "mpegaudiodecheader.h"
#include "libavutil/common.h"
Include dependency graph for mpegaudio_parser.c:

Go to the source code of this file.

Data Structures

struct  MpegAudioParseContext
 

Macros

#define MPA_HEADER_SIZE   4
 
#define SAME_HEADER_MASK   (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19))
 

Typedefs

typedef struct MpegAudioParseContext MpegAudioParseContext
 

Functions

static int mpegaudio_parse (AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
 

Variables

AVCodecParser ff_mpegaudio_parser
 

Macro Definition Documentation

#define MPA_HEADER_SIZE   4

Definition at line 36 of file mpegaudio_parser.c.

#define SAME_HEADER_MASK   (0xffe00000 | (3 << 17) | (3 << 10) | (3 << 19))

Definition at line 39 of file mpegaudio_parser.c.

Referenced by mpegaudio_parse().

Typedef Documentation

Function Documentation

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 42 of file mpegaudio_parser.c.

Variable Documentation

AVCodecParser ff_mpegaudio_parser
Initial value:
= {
.priv_data_size = sizeof(MpegAudioParseContext),
.parser_parse = mpegaudio_parse,
.parser_close = ff_parse_close,
}
static int mpegaudio_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size)
preferred ID for decoding MPEG audio layer 1, 2 or 3
void ff_parse_close(AVCodecParserContext *s)
Definition: parser.c:279
struct MpegAudioParseContext MpegAudioParseContext

Definition at line 109 of file mpegaudio_parser.c.