cc.c File Reference

Include dependency graph for cc.c:


Data Structures

struct  eia608_screen
struct  eia608_t
struct  decoder_sys_t

Defines

#define EIA608_SCREEN_ROWS   15
#define EIA608_SCREEN_COLUMNS   32
#define CC_MAX_REORDER_SIZE   (64)
#define EIA608_COLOR_DEFAULT   EIA608_COLOR_WHITE
#define ON(d2min, d2max, cmd)   do { if( d2 >= d2min && d2 <= d2max ) b_changed = cmd; } while(0)
#define E1(c, u)   { c, { u, '\0' } }
#define E2(c, u1, u2)   { c, { u1, u2, '\0' } }
#define E3(c, u1, u2, u3)   { c, { u1, u2, u3, '\0' } }
#define CAT(t)   Eia608Strlcat( psz_text, t, i_text_max )

Typedefs

typedef struct eia608_screen eia608_screen

Enumerations

enum  eia608_mode_t {
  EIA608_MODE_POPUP = 0, EIA608_MODE_ROLLUP_2 = 1, EIA608_MODE_ROLLUP_3 = 2, EIA608_MODE_ROLLUP_4 = 3,
  EIA608_MODE_PAINTON = 4, EIA608_MODE_TEXT = 5
}
enum  eia608_color_t {
  EIA608_COLOR_WHITE = 0, EIA608_COLOR_GREEN = 1, EIA608_COLOR_BLUE = 2, EIA608_COLOR_CYAN = 3,
  EIA608_COLOR_RED = 4, EIA608_COLOR_YELLOW = 5, EIA608_COLOR_MAGENTA = 6, EIA608_COLOR_USERDEFINED = 7
}
enum  eia608_font_t { EIA608_FONT_REGULAR = 0x00, EIA608_FONT_ITALICS = 0x01, EIA608_FONT_UNDERLINE = 0x02, EIA608_FONT_UNDERLINE_ITALICS = EIA608_FONT_UNDERLINE | EIA608_FONT_ITALICS }

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 void Eia608Init (eia608_t *)
static bool Eia608Parse (eia608_t *h, int i_channel_selected, const uint8_t data[2])
static char * Eia608Text (eia608_t *h, bool b_html)
static void Eia608Exit (eia608_t *)
static subpicture_tDecode (decoder_t *, block_t **)
static void Push (decoder_t *, block_t *)
static block_tPop (decoder_t *)
static subpicture_tConvert (decoder_t *, block_t *)
static subpicture_tSubtitle (decoder_t *p_dec, char *psz_subtitle, char *psz_html, mtime_t i_pts)
static void Eia608Cursor (eia608_t *h, int dx)
static void Eia608ClearScreenRowX (eia608_t *h, int i_screen, int i_row, int x)
static void Eia608ClearScreenRow (eia608_t *h, int i_screen, int i_row)
static void Eia608ClearScreen (eia608_t *h, int i_screen)
static int Eia608GetWritingScreenIndex (eia608_t *h)
static void Eia608EraseScreen (eia608_t *h, bool b_displayed)
static void Eia608Write (eia608_t *h, const uint8_t c)
static void Eia608Erase (eia608_t *h)
static void Eia608EraseToEndOfRow (eia608_t *h)
static void Eia608RollUp (eia608_t *h)
static void Eia608ParseChannel (eia608_t *h, const uint8_t d[2])
static bool Eia608ParseTextAttribute (eia608_t *h, uint8_t d2)
static bool Eia608ParseSingle (eia608_t *h, const uint8_t dx)
static bool Eia608ParseDouble (eia608_t *h, uint8_t d2)
static bool Eia608ParseExtended (eia608_t *h, uint8_t d1, uint8_t d2)
static bool Eia608ParseCommand0x14 (eia608_t *h, uint8_t d2)
static bool Eia608ParseCommand0x17 (eia608_t *h, uint8_t d2)
static bool Eia608ParsePac (eia608_t *h, uint8_t d1, uint8_t d2)
static bool Eia608ParseData (eia608_t *h, uint8_t d1, uint8_t d2)
static void Eia608TextUtf8 (char *psz_utf8, uint8_t c)
static void Eia608Strlcat (char *d, const char *s, int i_max)
static void Eia608TextLine (struct eia608_screen *screen, char *psz_text, int i_text_max, int i_row, bool b_html)

Variables

struct {
   eia608_color_t   i_color
   eia608_font_t   i_font
   int   i_column
pac2_attribs []

Define Documentation

#define CAT (  )     Eia608Strlcat( psz_text, t, i_text_max )

Referenced by Eia608TextLine().

#define CC_MAX_REORDER_SIZE   (64)

Referenced by Push().

#define E1 ( c,
 )     { c, { u, '\0' } }

Referenced by Eia608TextUtf8().

#define E2 ( c,
u1,
u2   )     { c, { u1, u2, '\0' } }

Referenced by Eia608TextUtf8(), and XdsStringUtf8().

#define E3 ( c,
u1,
u2,
u3   )     { c, { u1, u2, u3, '\0' } }

Referenced by Eia608TextUtf8().

#define EIA608_COLOR_DEFAULT   EIA608_COLOR_WHITE

#define EIA608_SCREEN_COLUMNS   32

#define EIA608_SCREEN_ROWS   15

#define ON ( d2min,
d2max,
cmd   )     do { if( d2 >= d2min && d2 <= d2max ) b_changed = cmd; } while(0)

Referenced by Eia608ParseData().


Typedef Documentation

typedef struct eia608_screen eia608_screen


Enumeration Type Documentation

Enumerator:
EIA608_COLOR_WHITE 
EIA608_COLOR_GREEN 
EIA608_COLOR_BLUE 
EIA608_COLOR_CYAN 
EIA608_COLOR_RED 
EIA608_COLOR_YELLOW 
EIA608_COLOR_MAGENTA 
EIA608_COLOR_USERDEFINED 

Enumerator:
EIA608_FONT_REGULAR 
EIA608_FONT_ITALICS 
EIA608_FONT_UNDERLINE 
EIA608_FONT_UNDERLINE_ITALICS 

Enumerator:
EIA608_MODE_POPUP 
EIA608_MODE_ROLLUP_2 
EIA608_MODE_ROLLUP_3 
EIA608_MODE_ROLLUP_4 
EIA608_MODE_PAINTON 
EIA608_MODE_TEXT 


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 subpicture_t * Convert ( decoder_t p_dec,
block_t p_block 
) [static]

static subpicture_t * Decode ( decoder_t p_dec,
block_t **  pp_block 
) [static]

References Convert(), Pop(), and Push().

static void Eia608ClearScreen ( eia608_t h,
int  i_screen 
) [static]

static void Eia608ClearScreenRow ( eia608_t h,
int  i_screen,
int  i_row 
) [static]

static void Eia608ClearScreenRowX ( eia608_t h,
int  i_screen,
int  i_row,
int  x 
) [static]

static void Eia608Cursor ( eia608_t h,
int  dx 
) [static]

static void Eia608Erase ( eia608_t h  )  [static]

static void Eia608EraseScreen ( eia608_t h,
bool  b_displayed 
) [static]

static void Eia608EraseToEndOfRow ( eia608_t h  )  [static]

static void Eia608Exit ( eia608_t h  )  [static]

References VLC_UNUSED.

static int Eia608GetWritingScreenIndex ( eia608_t h  )  [static]

static void Eia608Init ( eia608_t h  )  [static]

static bool Eia608Parse ( eia608_t h,
int  i_channel_selected,
const uint8_t  data[2] 
) [static]

static void Eia608ParseChannel ( eia608_t h,
const uint8_t  d[2] 
) [static]

References eia608_t::i_channel.

Referenced by Eia608Parse().

static bool Eia608ParseCommand0x14 ( eia608_t h,
uint8_t  d2 
) [static]

static bool Eia608ParseCommand0x17 ( eia608_t h,
uint8_t  d2 
) [static]

References Eia608Cursor().

Referenced by Eia608ParseData().

static bool Eia608ParseData ( eia608_t h,
uint8_t  d1,
uint8_t  d2 
) [static]

static bool Eia608ParseDouble ( eia608_t h,
uint8_t  d2 
) [static]

References Eia608Write().

Referenced by Eia608ParseData().

static bool Eia608ParseExtended ( eia608_t h,
uint8_t  d1,
uint8_t  d2 
) [static]

References Eia608Cursor(), and Eia608Write().

Referenced by Eia608ParseData().

static bool Eia608ParsePac ( eia608_t h,
uint8_t  d1,
uint8_t  d2 
) [static]

static bool Eia608ParseSingle ( eia608_t h,
const uint8_t  dx 
) [static]

References Eia608Write().

Referenced by Eia608ParseData().

static bool Eia608ParseTextAttribute ( eia608_t h,
uint8_t  d2 
) [static]

static void Eia608RollUp ( eia608_t h  )  [static]

static void Eia608Strlcat ( char *  d,
const char *  s,
int  i_max 
) [static]

References strnlen().

Referenced by Eia608Text().

static char * Eia608Text ( eia608_t h,
bool  b_html 
) [static]

static void Eia608TextLine ( struct eia608_screen screen,
char *  psz_text,
int  i_text_max,
int  i_row,
bool  b_html 
) [static]

static void Eia608TextUtf8 ( char *  psz_utf8,
uint8_t  c 
) [static]

References E1, E2, E3, and utf8.

Referenced by Eia608TextLine().

static void Eia608Write ( eia608_t h,
const uint8_t  c 
) [static]

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 block_t * Pop ( decoder_t p_dec  )  [static]

static void Push ( decoder_t p_dec,
block_t p_block 
) [static]

static subpicture_t* Subtitle ( decoder_t p_dec,
char *  psz_subtitle,
char *  psz_html,
mtime_t  i_pts 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

int i_column

struct { ... } pac2_attribs[] [static]


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