FFmpeg
Data Structures | Macros | Functions
mpegaudiodecheader.h File Reference
#include <stdint.h>
#include "codec_id.h"

Go to the source code of this file.

Data Structures

struct  MPADecodeHeader
 

Macros

#define MP3_MASK   0xFFFE0CCF
 
#define MPA_DECODE_HEADER
 

Functions

int avpriv_mpegaudio_decode_header (MPADecodeHeader *s, uint32_t header)
 
int ff_mpa_decode_header (uint32_t head, int *sample_rate, int *channels, int *frame_size, int *bitrate, enum AVCodecID *codec_id)
 
static int ff_mpa_check_header (uint32_t header)
 

Detailed Description

MPEG Audio header decoder.

Definition in file mpegaudiodecheader.h.

Macro Definition Documentation

◆ MP3_MASK

#define MP3_MASK   0xFFFE0CCF

Definition at line 33 of file mpegaudiodecheader.h.

◆ MPA_DECODE_HEADER

#define MPA_DECODE_HEADER
Value:
int frame_size; \
int error_protection; \
int layer; \
int sample_rate; \
int sample_rate_index; /* between 0 and 8 */ \
int bit_rate; \
int nb_channels; \
int mode; \
int mode_ext; \
int lsf;

Definition at line 35 of file mpegaudiodecheader.h.

Function Documentation

◆ avpriv_mpegaudio_decode_header()

int avpriv_mpegaudio_decode_header ( MPADecodeHeader s,
uint32_t  header 
)

◆ ff_mpa_decode_header()

int ff_mpa_decode_header ( uint32_t  head,
int sample_rate,
int channels,
int frame_size,
int bitrate,
enum AVCodecID codec_id 
)

Definition at line 120 of file mpegaudiodecheader.c.

Referenced by ffat_create_decoder(), and mpegaudio_parse().

◆ ff_mpa_check_header()

static int ff_mpa_check_header ( uint32_t  header)
inlinestatic
sample_rate
sample_rate
Definition: ffmpeg_filter.c:153
frame_size
int frame_size
Definition: mxfenc.c:2201
mode
mode
Definition: ebur128.h:83