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, 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 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,
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.


Variable Documentation

Initial value:

Definition at line 252 of file mpegaudio_parser.c.


Generated on Fri Oct 26 02:35:44 2012 for FFmpeg by  doxygen 1.5.8