dts.c File Reference

Include dependency graph for dts.c:


Data Structures

struct  decoder_sys_t

Defines

#define DTS_HEADER_SIZE   14

Enumerations

enum  {
  STATE_NOSYNC, STATE_SYNC, STATE_HEADER, STATE_NEXT_SYNC,
  STATE_GET_DATA, STATE_SEND_DATA
}

Functions

static int OpenDecoder (vlc_object_t *)
static int OpenPacketizer (vlc_object_t *)
static void CloseCommon (vlc_object_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int OpenCommon (vlc_object_t *, bool b_packetizer)
static void * DecodeBlock (decoder_t *, block_t **)
static int SyncCode (const uint8_t *)
static int SyncInfo (const uint8_t *, bool *, unsigned int *, unsigned int *, unsigned int *, unsigned int *, unsigned int *)
static uint8_t * GetOutBuffer (decoder_t *, block_t **)
static aout_buffer_tGetAoutBuffer (decoder_t *)
static block_tGetSoutBuffer (decoder_t *)
static int SyncInfo16be (const uint8_t *p_buf, unsigned int *pi_audio_mode, unsigned int *pi_sample_rate, unsigned int *pi_bit_rate, unsigned int *pi_frame_length)
static void BufLeToBe (uint8_t *p_out, const uint8_t *p_in, int i_in)
static int Buf14To16 (uint8_t *p_out, const uint8_t *p_in, int i_in, int i_le)

Variables

static const unsigned int ppi_dts_samplerate []
static const unsigned int ppi_dts_bitrate []

Define Documentation

#define DTS_HEADER_SIZE   14

Referenced by DecodeBlock(), and SyncInfo().


Enumeration Type Documentation

anonymous enum

Enumerator:
STATE_NOSYNC 
STATE_SYNC 
STATE_HEADER 
STATE_NEXT_SYNC 
STATE_GET_DATA 
STATE_SEND_DATA 


Function Documentation

static int Buf14To16 ( uint8_t *  p_out,
const uint8_t *  p_in,
int  i_in,
int  i_le 
) [static]

References __MIN, and i.

Referenced by SyncInfo().

static void BufLeToBe ( uint8_t *  p_out,
const uint8_t *  p_in,
int  i_in 
) [static]

References i.

Referenced by SyncInfo().

static void CloseCommon ( vlc_object_t p_this  )  [static]

static void * DecodeBlock ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static aout_buffer_t * GetAoutBuffer ( decoder_t p_dec  )  [static]

static uint8_t * GetOutBuffer ( decoder_t p_dec,
block_t **  pp_out_buffer 
) [static]

static block_t * GetSoutBuffer ( decoder_t p_dec  )  [static]

static int OpenCommon ( vlc_object_t p_this,
bool  b_packetizer 
) [static]

static int OpenDecoder ( vlc_object_t p_this  )  [static]

static int OpenPacketizer ( vlc_object_t p_this  )  [static]

References OpenCommon().

static int SyncCode ( const uint8_t *  p_buf  )  [inline, static]

References VLC_EGENERIC, and VLC_SUCCESS.

Referenced by DecodeBlock().

static int SyncInfo ( const uint8_t *  p_buf,
bool *  pb_dts_hd,
unsigned int *  pi_channels,
unsigned int *  pi_channels_conf,
unsigned int *  pi_sample_rate,
unsigned int *  pi_bit_rate,
unsigned int *  pi_frame_length 
) [static]

static int SyncInfo16be ( const uint8_t *  p_buf,
unsigned int *  pi_audio_mode,
unsigned int *  pi_sample_rate,
unsigned int *  pi_bit_rate,
unsigned int *  pi_frame_length 
) [static]

Referenced by SyncInfo().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const unsigned int ppi_dts_bitrate[] [static]

Initial value:

{
    32000, 56000, 64000, 96000, 112000, 128000,
    192000, 224000, 256000, 320000, 384000,
    448000, 512000, 576000, 640000, 768000,
    896000, 1024000, 1152000, 1280000, 1344000,
    1408000, 1411200, 1472000, 1536000, 1920000,
    2048000, 3072000, 3840000, 1, 2, 3
}

Referenced by SyncInfo().

const unsigned int ppi_dts_samplerate[] [static]

Initial value:

{
    0, 8000, 16000, 32000, 0, 0, 11025, 22050, 44100, 0, 0,
    12000, 24000, 48000, 96000, 192000
}

Referenced by SyncInfo().


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