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


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

Referenced by 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 81 of file mpegaudio_parser.c.


Variable Documentation

Initial value:

Definition at line 143 of file mpegaudio_parser.c.


Generated on Fri Oct 26 02:36:52 2012 for FFmpeg by  doxygen 1.5.8