cdg.c File Reference

Include dependency graph for cdg.c:


Data Structures

struct  decoder_sys_t

Defines

#define CDG_SCREEN_WIDTH   (300)
#define CDG_SCREEN_HEIGHT   (216)
#define CDG_SCREEN_BORDER_WIDTH   (6)
#define CDG_SCREEN_BORDER_HEIGHT   (12)
#define CDG_DISPLAY_WIDTH   (CDG_SCREEN_WIDTH-2*CDG_SCREEN_BORDER_WIDTH)
#define CDG_DISPLAY_HEIGHT   (CDG_SCREEN_HEIGHT-2*CDG_SCREEN_BORDER_HEIGHT)
#define CDG_SCREEN_PITCH   (CDG_SCREEN_WIDTH)
#define CDG_PACKET_SIZE   (24)
#define CDG_COLOR_R_SHIFT   ( 0)
#define CDG_COLOR_G_SHIFT   ( 8)
#define CDG_COLOR_B_SHIFT   (16)

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
static picture_tDecode (decoder_t *, block_t **)
static int DecodePacket (decoder_sys_t *p_cdg, uint8_t *p_buffer, int i_buffer)
static int Render (decoder_sys_t *p_cdg, picture_t *p_picture)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void ScreenFill (decoder_sys_t *p_cdg, int sx, int sy, int dx, int dy, int c)
static int DecodeMemoryPreset (decoder_sys_t *p_cdg, const uint8_t *p_data)
static int DecodeBorderPreset (decoder_sys_t *p_cdg, const uint8_t *p_data)
static int DecodeLoadColorTable (decoder_sys_t *p_cdg, const uint8_t *p_data, int i_base)
static int DecodeTileBlock (decoder_sys_t *p_cdg, const uint8_t *p_data, int doXor)
static int DecodeScroll (decoder_sys_t *p_cdg, const uint8_t *p_data, int b_copy)
static void RenderPixel (picture_t *p_picture, int x, int y, uint32_t c)
static uint32_t RenderRGB (int r, int g, int b)

Define Documentation

#define CDG_COLOR_B_SHIFT   (16)

Referenced by RenderRGB().

#define CDG_COLOR_G_SHIFT   ( 8)

Referenced by RenderRGB().

#define CDG_COLOR_R_SHIFT   ( 0)

Referenced by RenderRGB().

#define CDG_DISPLAY_HEIGHT   (CDG_SCREEN_HEIGHT-2*CDG_SCREEN_BORDER_HEIGHT)

Referenced by Render().

#define CDG_DISPLAY_WIDTH   (CDG_SCREEN_WIDTH-2*CDG_SCREEN_BORDER_WIDTH)

Referenced by Render().

#define CDG_PACKET_SIZE   (24)

Referenced by Decode(), and DecodePacket().

#define CDG_SCREEN_BORDER_HEIGHT   (12)

#define CDG_SCREEN_BORDER_WIDTH   (6)

#define CDG_SCREEN_HEIGHT   (216)

#define CDG_SCREEN_PITCH   (CDG_SCREEN_WIDTH)

#define CDG_SCREEN_WIDTH   (300)


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 picture_t * Decode ( decoder_t p_dec,
block_t **  pp_block 
) [static]

static int DecodeBorderPreset ( decoder_sys_t p_cdg,
const uint8_t *  p_data 
) [static]

static int DecodeLoadColorTable ( decoder_sys_t p_cdg,
const uint8_t *  p_data,
int  i_base 
) [static]

References b, c, and decoder_sys_t::color.

Referenced by DecodePacket().

static int DecodeMemoryPreset ( decoder_sys_t p_cdg,
const uint8_t *  p_data 
) [static]

static int DecodePacket ( decoder_sys_t p_cdg,
uint8_t *  p_buffer,
int  i_buffer 
) [static]

static int DecodeScroll ( decoder_sys_t p_cdg,
const uint8_t *  p_data,
int  b_copy 
) [static]

static int DecodeTileBlock ( decoder_sys_t p_cdg,
const uint8_t *  p_data,
int  doXor 
) [static]

References CDG_SCREEN_PITCH, idx, and decoder_sys_t::p_screen.

Referenced by DecodePacket().

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

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 int Render ( decoder_sys_t p_cdg,
picture_t p_picture 
) [static]

static void RenderPixel ( picture_t p_picture,
int  x,
int  y,
uint32_t  c 
) [static]

References plane_t::i_pitch, picture_t::p, and plane_t::p_pixels.

Referenced by Render().

static uint32_t RenderRGB ( int  r,
int  g,
int  b 
) [static]

static void ScreenFill ( decoder_sys_t p_cdg,
int  sx,
int  sy,
int  dx,
int  dy,
int  c 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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