mlp.c File Reference

Include dependency graph for mlp.c:


Data Structures

struct  mlp_header_t
struct  decoder_sys_t

Defines

#define MLP_MAX_SUBSTREAMS   (16)
#define MLP_HEADER_SYNC   (28)
#define MLP_HEADER_SIZE   (4 + MLP_HEADER_SYNC + 4 * MLP_MAX_SUBSTREAMS)

Enumerations

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

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static block_tPacketize (decoder_t *, block_t **pp_block)
static int SyncInfo (const uint8_t *p_hdr, bool *pb_mlp, mlp_header_t *p_mlp)
static int SyncInfoDolby (const uint8_t *p_buf)
 It returns the size of an AC3/EAC3 frame (or 0 if invalid).
static int TrueHdChannels (int i_map)
 It parse MLP sync info.
static int MlpParse (mlp_header_t *p_mlp, const uint8_t p_hdr[(28)])
static int GetAc3Size (const uint8_t *p_buf)
 It returns the size of an AC3 frame (or 0 if invalid).
static int GetEac3Size (const uint8_t *p_buf)
 It return the size of a EAC3 frame (or 0 if invalid).

Variables

static const uint8_t pu_start_code [3] = { 0xf8, 0x72, 0x6f }

Define Documentation

#define MLP_HEADER_SIZE   (4 + MLP_HEADER_SYNC + 4 * MLP_MAX_SUBSTREAMS)

Referenced by Packetize().

#define MLP_HEADER_SYNC   (28)

#define MLP_MAX_SUBSTREAMS   (16)


Enumeration Type Documentation

anonymous enum

Enumerator:
STATE_NOSYNC 
STATE_SYNC 
STATE_HEADER 
STATE_NEXT_SYNC 
STATE_GET_DATA 
STATE_SEND_DATA 


Function Documentation

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static int GetAc3Size ( const uint8_t *  p_buf  )  [static]

It returns the size of an AC3 frame (or 0 if invalid).

Referenced by SyncInfoDolby().

static int GetEac3Size ( const uint8_t *  p_buf  )  [static]

It return the size of a EAC3 frame (or 0 if invalid).

Referenced by SyncInfoDolby().

static int MlpParse ( mlp_header_t p_mlp,
const uint8_t  p_hdr[(28)] 
) [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Status of this demuxer: Real Media format -----------------.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

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

static int SyncInfo ( const uint8_t *  p_hdr,
bool *  pb_mlp,
mlp_header_t p_mlp 
) [static]

static int SyncInfoDolby ( const uint8_t *  p_buf  )  [static]

It returns the size of an AC3/EAC3 frame (or 0 if invalid).

References GetAc3Size(), and GetEac3Size().

Referenced by Packetize().

static int TrueHdChannels ( int  i_map  )  [static]

It parse MLP sync info.

TODO handle CRC (at offset 26)

References i.

Referenced by MlpParse().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const uint8_t pu_start_code[3] = { 0xf8, 0x72, 0x6f } [static]

Referenced by MlpParse(), and SyncInfo().


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