lpcm.c File Reference

Include dependency graph for lpcm.c:


Data Structures

struct  decoder_sys_t
struct  aob_group_t

Defines

#define LPCM_VOB_HEADER_LEN   (6)
#define LPCM_AOB_HEADER_LEN   (11)
#define LPCM_BD_HEADER_LEN   (4)

Enumerations

enum  { LPCM_VOB, LPCM_AOB, LPCM_BD }

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 void * DecodeFrame (decoder_t *, block_t **)
static int VobHeader (unsigned *pi_rate, unsigned *pi_channels, unsigned *pi_original_channels, unsigned *pi_bits, const uint8_t *p_header)
static void VobExtract (aout_buffer_t *, block_t *, unsigned i_bits)
static int AobHeader (unsigned *pi_rate, unsigned *pi_channels, unsigned *pi_layout, unsigned *pi_bits, unsigned *pi_padding, aob_group_t g[2], const uint8_t *p_header)
static void AobExtract (aout_buffer_t *, block_t *, unsigned i_bits, aob_group_t p_group[2])
static int BdHeader (unsigned *pi_rate, unsigned *pi_channels, unsigned *pi_original_channels, unsigned *pi_bits, const uint8_t *p_header)
static void BdExtract (aout_buffer_t *, block_t *)
static int OpenCommon (vlc_object_t *p_this, bool b_packetizer)

Variables

static const unsigned p_aob_group1 [21][6]
static const unsigned p_aob_group2 [21][6]

Define Documentation

#define LPCM_AOB_HEADER_LEN   (11)

Referenced by AobHeader(), and OpenCommon().

#define LPCM_BD_HEADER_LEN   (4)

Referenced by OpenCommon().

#define LPCM_VOB_HEADER_LEN   (6)

Referenced by OpenCommon().


Enumeration Type Documentation

anonymous enum

Enumerator:
LPCM_VOB 
LPCM_AOB 
LPCM_BD 


Function Documentation

static void AobExtract ( aout_buffer_t p_aout_buffer,
block_t p_block,
unsigned  i_bits,
aob_group_t  p_group[2] 
) [static]

static int AobHeader ( unsigned *  pi_rate,
unsigned *  pi_channels,
unsigned *  pi_layout,
unsigned *  pi_bits,
unsigned *  pi_padding,
aob_group_t  g[2],
const uint8_t *  p_header 
) [static]

static void BdExtract ( aout_buffer_t p_aout_buffer,
block_t p_block 
) [static]

References block_t::i_buffer, and block_t::p_buffer.

Referenced by DecodeFrame().

static int BdHeader ( unsigned *  pi_rate,
unsigned *  pi_channels,
unsigned *  pi_original_channels,
unsigned *  pi_bits,
const uint8_t *  p_header 
) [static]

static void CloseCommon ( vlc_object_t p_this  )  [static]

References decoder_t::p_sys.

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

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

static int OpenDecoder ( vlc_object_t p_this  )  [static]

References OpenCommon().

static int OpenPacketizer ( vlc_object_t p_this  )  [static]

References OpenCommon().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 

static void VobExtract ( aout_buffer_t p_aout_buffer,
block_t p_block,
unsigned  i_bits 
) [static]

References block_t::i_buffer, and block_t::p_buffer.

Referenced by DecodeFrame().

static int VobHeader ( unsigned *  pi_rate,
unsigned *  pi_channels,
unsigned *  pi_original_channels,
unsigned *  pi_bits,
const uint8_t *  p_header 
) [static]


Variable Documentation

const unsigned p_aob_group1[21][6] [static]

Initial value:

 {
    {  0x1 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 , 0 },
    {  0x2 ,    0x4 ,  0x1 ,   0 },
    {  0x2 ,    0x4 ,  0x1 ,   0 },
    {  0x2 ,    0x4 ,  0x1 ,   0 },
    {  0x2 ,    0x4 ,  0x1 ,   0 },
    {  0x2 ,    0x4 ,  0x1 ,   0 },
    {  0x2 ,    0x4 ,  0x20 ,  0x40 , 0  },
    {  0x2 ,    0x4 ,  0x20 ,  0x40 , 0  },
    {  0x2 ,    0x4 ,  0x20 ,  0x40 , 0  },
}

Referenced by AobHeader().

const unsigned p_aob_group2[21][6] [static]

Initial value:

 {
    { 0 },
    { 0 },
    {  0x10 , 0 },
    {  0x20 ,    0x40 ,    0 },
    {  0x1000 ,        0 },
    {  0x1000 ,         0x10 ,   0 },
    {  0x1000 ,         0x20 ,      0x40 ,    0 },
    {  0x1 ,     0 },
    {  0x1 ,      0x10 , 0 },
    {  0x1 ,      0x20 ,    0x40 ,    0 },
    {  0x1 ,      0x1000 ,        0 },
    {  0x1 ,      0x1000 ,         0x10 ,   0 },
    {  0x1 ,      0x1000 ,         0x20 ,      0x40 ,    0 },
    {  0x10 , 0 },
    {  0x20 ,    0x40 ,    0 },
    {  0x1000 ,        0 },
    {  0x1000 ,         0x10 ,   0 },
    {  0x1000 ,         0x20 ,      0x40 ,    0 },
    {  0x1000 ,        0 },
    {  0x1 ,     0 },
    {  0x1 ,      0x1000 ,          0 },
}

Referenced by AobHeader().


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