mpeg4audio.c File Reference

Include dependency graph for mpeg4audio.c:


Data Structures

struct  mpeg4_cfg_t
struct  latm_stream_t
struct  latm_mux_t
struct  decoder_sys_t

Defines

#define LATM_MAX_EXTRA_SIZE   64
#define LATM_MAX_LAYER   (8)
#define LATM_MAX_PROGRAM   (16)
#define ADTS_HEADER_SIZE   9
#define LOAS_HEADER_SIZE   3

Enumerations

enum  {
  STATE_NOSYNC, STATE_SYNC, STATE_HEADER, STATE_NEXT_SYNC,
  STATE_GET_DATA, STATE_SEND_DATA
}
enum  { TYPE_NONE, TYPE_RAW, TYPE_ADTS, TYPE_LOAS }

Functions

static int OpenPacketizer (vlc_object_t *)
static void ClosePacketizer (vlc_object_t *)
static block_tPacketizeRawBlock (decoder_t *, block_t **)
static block_tPacketizeStreamBlock (decoder_t *, block_t **)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int ADTSSyncInfo (decoder_t *p_dec, const uint8_t *p_buf, unsigned int *pi_channels, unsigned int *pi_sample_rate, unsigned int *pi_frame_length, unsigned int *pi_header_size)
static int LOASSyncInfo (uint8_t p_header[3], unsigned int *pi_header_size)
static int Mpeg4GAProgramConfigElement (bs_t *s)
static int Mpeg4GASpecificConfig (mpeg4_cfg_t *p_cfg, bs_t *s)
static int Mpeg4ReadAudioObjectType (bs_t *s)
static int Mpeg4ReadAudioSamplerate (bs_t *s)
static int Mpeg4ReadAudioSpecificInfo (mpeg4_cfg_t *p_cfg, int *pi_extra, uint8_t *p_extra, bs_t *s, int i_max_size)
static int LatmGetValue (bs_t *s)
static int LatmReadStreamMuxConfiguration (latm_mux_t *m, bs_t *s)
static int LOASParse (decoder_t *p_dec, uint8_t *p_buffer, int i_buffer)
static void SetupOutput (decoder_t *p_dec, block_t *p_block)

Variables

static const int pi_sample_rates [16]

Define Documentation

#define ADTS_HEADER_SIZE   9

#define LATM_MAX_EXTRA_SIZE   64

#define LATM_MAX_LAYER   (8)

Referenced by LOASParse().

#define LATM_MAX_PROGRAM   (16)

Referenced by LOASParse().

#define LOAS_HEADER_SIZE   3

Referenced by PacketizeStreamBlock().


Enumeration Type Documentation

anonymous enum

Enumerator:
STATE_NOSYNC 
STATE_SYNC 
STATE_HEADER 
STATE_NEXT_SYNC 
STATE_GET_DATA 
STATE_SEND_DATA 

anonymous enum

Enumerator:
TYPE_NONE 
TYPE_RAW 
TYPE_ADTS 
TYPE_LOAS 


Function Documentation

static int ADTSSyncInfo ( decoder_t p_dec,
const uint8_t *  p_buf,
unsigned int *  pi_channels,
unsigned int *  pi_sample_rate,
unsigned int *  pi_frame_length,
unsigned int *  pi_header_size 
) [static]

static void ClosePacketizer ( vlc_object_t p_this  )  [static]

static int LatmGetValue ( bs_t s  )  [static]

References bs_read(), and i.

Referenced by LatmReadStreamMuxConfiguration().

static int LatmReadStreamMuxConfiguration ( latm_mux_t m,
bs_t s 
) [static]

static int LOASParse ( decoder_t p_dec,
uint8_t *  p_buffer,
int  i_buffer 
) [static]

static int LOASSyncInfo ( uint8_t  p_header[3],
unsigned int *  pi_header_size 
) [static]

Referenced by PacketizeStreamBlock().

static int Mpeg4GAProgramConfigElement ( bs_t s  )  [static]

static int Mpeg4GASpecificConfig ( mpeg4_cfg_t p_cfg,
bs_t s 
) [static]

static int Mpeg4ReadAudioObjectType ( bs_t s  )  [static]

References bs_read(), and i_type.

Referenced by Mpeg4ReadAudioSpecificInfo().

static int Mpeg4ReadAudioSamplerate ( bs_t s  )  [static]

References bs_read(), and pi_sample_rates.

Referenced by Mpeg4ReadAudioSpecificInfo().

static int Mpeg4ReadAudioSpecificInfo ( mpeg4_cfg_t p_cfg,
int *  pi_extra,
uint8_t *  p_extra,
bs_t s,
int  i_max_size 
) [static]

static int OpenPacketizer ( vlc_object_t p_this  )  [static]

static block_t * PacketizeRawBlock ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static block_t * PacketizeStreamBlock ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static void SetupOutput ( decoder_t p_dec,
block_t p_block 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int pi_sample_rates[16] [static]

Initial value:

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

Referenced by ADTSSyncInfo(), Mpeg4ReadAudioSamplerate(), and OpenPacketizer().


Generated on Tue May 25 08:05:27 2010 for VLC by  doxygen 1.5.6