libmpeg2.c File Reference

Include dependency graph for libmpeg2.c:


Data Structures

struct  picture_dpb_t
struct  decoder_sys_t

Defines

#define DPB_COUNT   (3+1)

Functions

static int OpenDecoder (vlc_object_t *)
static void CloseDecoder (vlc_object_t *)
static picture_tDecodeBlock (decoder_t *, block_t **)
static block_tGetCc (decoder_t *p_dec, bool pb_present[4])
static picture_tGetNewPicture (decoder_t *)
static void PutPicture (decoder_t *, picture_t *)
static void GetAR (decoder_t *p_dec)
static void Reset (decoder_t *p_dec)
static void DpbInit (decoder_t *p_dec)
 Initialize a virtual Decoded Picture Buffer to workaround libmpeg2 deficient API.
static void DpbClean (decoder_t *p_dec)
 Empty and reset the current DPB.
static picture_tDpbNewPicture (decoder_t *p_dec)
 Retreive a picture and reserve a place in the DPB.
static void DpbUnlinkPicture (decoder_t *p_dec, picture_t *p_picture)
 Unlink the provided picture and ensure that the decoder does not own it anymore.
static int DpbDisplayPicture (decoder_t *p_dec, picture_t *p_picture)
 Mark the provided picture as displayed.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static picture_dpb_tDpbFindPicture (decoder_t *p_dec, picture_t *p_picture)

Define Documentation

#define DPB_COUNT   (3+1)


Function Documentation

static void CloseDecoder ( vlc_object_t p_this  )  [static]

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

static void DpbClean ( decoder_t p_dec  )  [static]

static int DpbDisplayPicture ( decoder_t p_dec,
picture_t p_picture 
) [static]

Mark the provided picture as displayed.

References picture_dpb_t::b_displayed, picture_dpb_t::b_linked, DpbFindPicture(), msg_Err, VLC_EGENERIC, and VLC_SUCCESS.

Referenced by DecodeBlock().

static picture_dpb_t* DpbFindPicture ( decoder_t p_dec,
picture_t p_picture 
) [static]

static void DpbInit ( decoder_t p_dec  )  [static]

Initialize a virtual Decoded Picture Buffer to workaround libmpeg2 deficient API.

References DPB_COUNT, i, decoder_sys_t::p_dpb, picture_dpb_t::p_picture, and decoder_t::p_sys.

Referenced by OpenDecoder().

static picture_t * DpbNewPicture ( decoder_t p_dec  )  [static]

static void DpbUnlinkPicture ( decoder_t p_dec,
picture_t p_picture 
) [static]

Unlink the provided picture and ensure that the decoder does not own it anymore.

References picture_dpb_t::b_displayed, picture_dpb_t::b_linked, decoder_DeletePicture(), decoder_UnlinkPicture(), DpbFindPicture(), msg_Err, and picture_dpb_t::p_picture.

Referenced by DecodeBlock().

static void GetAR ( decoder_t p_dec  )  [static]

static block_t * GetCc ( decoder_t p_dec,
bool  pb_present[4] 
) [static]

static picture_t * GetNewPicture ( decoder_t p_dec  )  [static]

static int OpenDecoder ( vlc_object_t p_this  )  [static]

static void PutPicture ( decoder_t p_dec,
picture_t p_picture 
) [static]

static void Reset ( decoder_t p_dec  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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