libavcodec/mpegaudio_parser.c File Reference

#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)
static 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 Documentation

#define MPA_HEADER_SIZE   4

Definition at line 38 of file mpegaudio_parser.c.

Referenced by mpegaudio_parse().

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

Definition at line 42 of file mpegaudio_parser.c.


Function Documentation

int ff_mpa_decode_header ( AVCodecContext avctx,
uint32_t  head,
int *  sample_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 89 of file mpegaudio_parser.c.

static int mpegaudio_parse_init ( AVCodecParserContext s1  )  [static]

Definition at line 82 of file mpegaudio_parser.c.


Variable Documentation

Initial value:

Definition at line 246 of file mpegaudio_parser.c.


Generated on Fri Apr 23 15:12:00 2010 for ffmpeg by  doxygen 1.5.6