bd.c File Reference

Include dependency graph for bd.c:


Data Structures

struct  demux_sys_t
struct  es_out_sys_t

Defines

#define CACHING_TEXT   N_("Caching value in ms")
#define CACHING_LONGTEXT
#define BD_TS_PACKET_HEADER   (4)
#define BD_TS_PACKET_SIZE   (192)
#define BD_45KHZ   INT64_C(45000)

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 int Control (demux_t *, int, va_list)
static int Demux (demux_t *)
static char * FindPathBase (const char *, bool *pb_shortname)
static int LoadPlaylist (demux_t *)
static int LoadClip (demux_t *)
static void ReorderPlaylist (demux_t *)
static void InitTitles (demux_t *)
static int SetTitle (demux_t *, int)
static int SetChapter (demux_t *, int)
static int64_t GetTime (demux_t *p_demux)
 Retreive the current time using current EP + ATC delta.
static double GetPosition (demux_t *)
static int SetTime (demux_t *, int64_t)
static int SetPosition (demux_t *, double)
static int SetPlayItem (demux_t *p_demux, int i_mpls, int i_play_item)
static void ClosePlayItem (demux_t *)
static int64_t GetClpiPacket (demux_t *p_demux, int *pi_ep, const bd_mpls_clpi_t *p_mpls_clpi, int64_t i_time)
static es_out_tEsOutNew (demux_t *p_demux)
static int64_t GetMplsUniqueDuration (const bd_mpls_t *p_mpls)
static int SortMpls (const void *a, const void *b)
static int CheckFileList (const char *psz_base, const char *ppsz_name[])
static block_tLoadBlock (demux_t *p_demux, const char *psz_name)
static int FilterMplsLong (const char *psz_name)
static int FilterMplsShort (const char *psz_name)
static void LoadMpls (demux_t *p_demux, const char *psz_name, int i_id)
static int FilterClpiLong (const char *psz_name)
static int FilterClpiShort (const char *psz_name)
static void LoadClpi (demux_t *p_demux, const char *psz_name, int i_id)
static int ScanSort (const char **ppsz_a, const char **ppsz_b)
static int Load (demux_t *p_demux, const char *psz_dir, int(*pf_filter)(const char *), void(*pf_load)(demux_t *p_demux, const char *psz_name, int i_id))
static es_out_id_tEsOutAdd (es_out_t *p_out, const es_format_t *p_fmt)
static int EsOutSend (es_out_t *p_out, es_out_id_t *p_es, block_t *p_block)
static void EsOutDel (es_out_t *p_out, es_out_id_t *p_es)
static int EsOutControl (es_out_t *p_out, int i_query, va_list args)
static void EsOutDestroy (es_out_t *p_out)

Define Documentation

#define BD_45KHZ   INT64_C(45000)

Referenced by GetTime(), InitTitles(), and SetTime().

#define BD_TS_PACKET_HEADER   (4)

Referenced by Demux().

#define BD_TS_PACKET_SIZE   (192)

Referenced by Demux(), and SetPlayItem().

#define CACHING_LONGTEXT

Value:

N_( \
    "Caching value for BDs. This "\
    "value should be set in milliseconds." )

#define CACHING_TEXT   N_("Caching value in ms")


Function Documentation

static int CheckFileList ( const char *  psz_base,
const char *  ppsz_name[] 
) [static]

References asprintf(), i, VLC_EGENERIC, vlc_stat(), and VLC_SUCCESS.

Referenced by FindPathBase().

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

References bd_clpi_Clean(), bd_mpls_Clean(), ClosePlayItem(), es_out_Delete(), i, demux_sys_t::i_clpi, demux_sys_t::i_mpls, demux_sys_t::i_title, demux_sys_t::p_out, demux_t::p_sys, p_sys, demux_sys_t::pp_clpi, demux_sys_t::pp_mpls, demux_sys_t::pp_title, demux_sys_t::psz_base, TAB_CLEAN, and vlc_input_title_Delete().

static void ClosePlayItem ( demux_t p_demux  )  [static]

static int Control ( demux_t p_demux,
int  i_query,
va_list  args 
) [static]

static int Demux ( demux_t p_demux  )  [static]

static es_out_id_t* EsOutAdd ( es_out_t p_out,
const es_format_t p_fmt 
) [static]

static int EsOutControl ( es_out_t p_out,
int  i_query,
va_list  args 
) [static]

static void EsOutDel ( es_out_t p_out,
es_out_id_t p_es 
) [static]

static void EsOutDestroy ( es_out_t p_out  )  [static]

References es_out_t::p_sys.

Referenced by EsOutNew().

static es_out_t * EsOutNew ( demux_t p_demux  )  [static]

static int EsOutSend ( es_out_t p_out,
es_out_id_t p_es,
block_t p_block 
) [static]

static int FilterClpiLong ( const char *  psz_name  )  [static]

Referenced by LoadClip().

static int FilterClpiShort ( const char *  psz_name  )  [static]

Referenced by LoadClip().

static int FilterMplsLong ( const char *  psz_name  )  [static]

Referenced by LoadPlaylist().

static int FilterMplsShort ( const char *  psz_name  )  [static]

Referenced by LoadPlaylist().

static char * FindPathBase ( const char *  psz_path,
bool *  pb_shortname 
) [static]

References asprintf(), CheckFileList(), strdup(), and vlc_stat().

Referenced by Open().

static int64_t GetClpiPacket ( demux_t p_demux,
int *  pi_ep,
const bd_mpls_clpi_t p_mpls_clpi,
int64_t  i_time 
) [static]

static int64_t GetMplsUniqueDuration ( const bd_mpls_t p_mpls  )  [static]

static double GetPosition ( demux_t p_demux  )  [static]

static int64_t GetTime ( demux_t p_demux  )  [static]

static void InitTitles ( demux_t p_demux  )  [static]

static int Load ( demux_t p_demux,
const char *  psz_dir,
int(*)(const char *)  pf_filter,
void(*)(demux_t *p_demux, const char *psz_name, int i_id)  pf_load 
) [static]

static block_t* LoadBlock ( demux_t p_demux,
const char *  psz_name 
) [static]

static int LoadClip ( demux_t p_demux  )  [static]

static void LoadClpi ( demux_t p_demux,
const char *  psz_name,
int  i_id 
) [static]

static void LoadMpls ( demux_t p_demux,
const char *  psz_name,
int  i_id 
) [static]

static int LoadPlaylist ( demux_t p_demux  )  [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

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

References demux_sys_t::b_shortname, Close(), Control(), Demux(), EsOutNew(), FindPathBase(), demux_sys_t::i_clpi, demux_sys_t::i_clpi_ep, demux_sys_t::i_mpls, demux_sys_t::i_packet, demux_sys_t::i_packet_headers, demux_sys_t::i_packet_start, demux_sys_t::i_packet_stop, demux_sys_t::i_play_item, demux_t::i_title, demux_sys_t::i_title, demux_t::info, InitTitles(), LoadClip(), LoadPlaylist(), msg_Dbg, demux_sys_t::p_clpi, demux_sys_t::p_m2ts, demux_sys_t::p_out, demux_sys_t::p_parser, demux_t::p_sys, p_sys, demux_t::pf_control, demux_t::pf_demux, demux_sys_t::pp_clpi, demux_sys_t::pp_mpls, demux_sys_t::pp_title, demux_t::psz_access, demux_sys_t::psz_base, demux_t::psz_path, ReorderPlaylist(), SetTitle(), TAB_INIT, var_Create, var_SetBool, VLC_EGENERIC, VLC_OBJECT, VLC_SUCCESS, and VLC_VAR_BOOL.

static void ReorderPlaylist ( demux_t p_demux  )  [static]

static int ScanSort ( const char **  ppsz_a,
const char **  ppsz_b 
) [static]

Referenced by Load().

static int SetChapter ( demux_t p_demux,
int  i_chapter 
) [static]

static int SetPlayItem ( demux_t p_demux,
int  i_mpls,
int  i_play_item 
) [static]

static int SetPosition ( demux_t p_demux,
double  f_position 
) [static]

static int SetTime ( demux_t p_demux,
int64_t  i_time 
) [static]

static int SetTitle ( demux_t p_demux,
int  i_title 
) [static]

static int SortMpls ( const void *  a,
const void *  b 
) [static]

References GetMplsUniqueDuration().

Referenced by ReorderPlaylist().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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