libavcodec/mpeg4audio.c File Reference

#include "bitstream.h"
#include "mpeg4audio.h"

Go to the source code of this file.

Functions

static int get_object_type (GetBitContext *gb)
static int get_sample_rate (GetBitContext *gb, int *index)
int ff_mpeg4audio_get_config (MPEG4AudioConfig *c, const uint8_t *buf, int buf_size)
 Parse MPEG-4 systems extradata to retrieve audio configuration.

Variables

const int ff_mpeg4audio_sample_rates [16]
const uint8_t ff_mpeg4audio_channels [8]


Function Documentation

int ff_mpeg4audio_get_config ( MPEG4AudioConfig c,
const uint8_t *  buf,
int  buf_size 
)

Parse MPEG-4 systems extradata to retrieve audio configuration.

Parameters:
[in] c MPEG4AudioConfig structure to fill.
[in] buf Extradata from container.
[in] buf_size Extradata size.
Returns:
On error -1 is returned, on success AudioSpecificConfig bit index in extradata.

Definition at line 49 of file mpeg4audio.c.

Referenced by decode_audio_specific_config(), flv_read_packet(), and mov_read_esds().

static int get_object_type ( GetBitContext gb  )  [inline, static]

Definition at line 34 of file mpeg4audio.c.

Referenced by ff_mpeg4audio_get_config().

static int get_sample_rate ( GetBitContext gb,
int *  index 
) [inline, static]

Definition at line 42 of file mpeg4audio.c.

Referenced by ff_mpeg4audio_get_config().


Variable Documentation

const uint8_t ff_mpeg4audio_channels[8]

Initial value:

 {
    0, 1, 2, 3, 4, 5, 6, 8
}

Definition at line 30 of file mpeg4audio.c.

Referenced by aac_sync(), ff_aac_parse_header(), flv_read_packet(), and mov_read_esds().

Initial value:

 {
    96000, 88200, 64000, 48000, 44100, 32000,
    24000, 22050, 16000, 12000, 11025, 8000, 7350
}

Definition at line 25 of file mpeg4audio.c.

Referenced by aac_encode_init(), decode_pce(), ff_aac_parse_header(), get_aac_sample_rates(), get_sample_rate(), and matroska_aac_sri().


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