kate.c File Reference

Include dependency graph for kate.c:


Data Structures

struct  decoder_sys_t
struct  subpicture_updater_sys_t

Defines

#define PROFILE_START(name)   ((void)0)
#define PROFILE_STOP(name)   ((void)0)
#define CHECK_TIGER_RET(statement)
#define DEFAULT_NAME   "Default"
#define MAX_LINE   8192
#define FORMAT_TEXT   N_("Formatted Subtitles")
#define FORMAT_LONGTEXT
#define HELP_TEXT

Functions

static int OpenDecoder (vlc_object_t *)
static void CloseDecoder (vlc_object_t *)
static subpicture_tDecodeBlock (decoder_t *p_dec, block_t **pp_block)
static int ProcessHeaders (decoder_t *p_dec)
static subpicture_tProcessPacket (decoder_t *p_dec, kate_packet *p_kp, block_t **pp_block)
static subpicture_tDecodePacket (decoder_t *p_dec, kate_packet *p_kp, block_t *p_block)
static void ParseKateComments (decoder_t *)
static subpicture_tSetupSimpleKateSPU (decoder_t *p_dec, subpicture_t *p_spu, const kate_event *ev)
static void DecSysRelease (decoder_sys_t *p_sys)
static void DecSysHold (decoder_sys_t *p_sys)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void rgb_to_yuv (uint8_t *y, uint8_t *u, uint8_t *v, int r, int g, int b)
static void GetVideoSize (decoder_t *p_dec, int *w, int *h)
static void CreateKateBitmap (picture_t *pic, const kate_bitmap *bitmap)
static void CreateKatePalette (video_palette_t *fmt_palette, const kate_palette *palette)
static void SetupText (decoder_t *p_dec, subpicture_t *p_spu, const kate_event *ev)

Variables

static vlc_mutex_t kate_decoder_list_mutex = PTHREAD_MUTEX_INITIALIZER
static size_t kate_decoder_list_size = 0
static decoder_t ** kate_decoder_list = NULL

Define Documentation

#define CHECK_TIGER_RET ( statement   ) 

Value:

do                                                                 \
    {                                                                  \
        int i_ret = (statement);                                       \
        if( i_ret < 0 )                                                \
        {                                                              \
            msg_Dbg( p_dec, "Error in " #statement ": %d", i_ret );    \
        }                                                              \
    } while( 0 )

Referenced by DecodePacket(), and OpenDecoder().

#define DEFAULT_NAME   "Default"

#define FORMAT_LONGTEXT

Value:

N_("Kate streams allow for text formatting. " \
 "VLC partly implements this, but you can choose to disable all formatting." \
 "Note that this has no effect is rendering via Tiger is enabled.")

#define FORMAT_TEXT   N_("Formatted Subtitles")

#define HELP_TEXT

Value:

N_( \
    "Kate is a codec for text and image based overlays.\n" \
    "The Tiger rendering library is needed to render complex Kate streams, " \
    "but VLC can still render static text and image based subtitles if " \
    "it is not available.\n" \
    "Note that changing settings below will not take effect until a new stream is played. " \
    "This will hopefully be fixed soon." \
    )

#define MAX_LINE   8192

#define PROFILE_START ( name   )     ((void)0)

#define PROFILE_STOP ( name   )     ((void)0)


Function Documentation

static void CloseDecoder ( vlc_object_t p_this  )  [static]

static void CreateKateBitmap ( picture_t pic,
const kate_bitmap *  bitmap 
) [static]

References src.

Referenced by SetupSimpleKateSPU().

static void CreateKatePalette ( video_palette_t fmt_palette,
const kate_palette *  palette 
) [static]

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

static subpicture_t * DecodePacket ( decoder_t p_dec,
kate_packet *  p_kp,
block_t p_block 
) [static]

static void DecSysHold ( decoder_sys_t p_sys  )  [static]

static void DecSysRelease ( decoder_sys_t p_sys  )  [static]

static void GetVideoSize ( decoder_t p_dec,
int *  w,
int *  h 
) [static]

static int OpenDecoder ( vlc_object_t p_this  )  [static]

static void ParseKateComments ( decoder_t p_dec  )  [static]

static int ProcessHeaders ( decoder_t p_dec  )  [static]

static subpicture_t * ProcessPacket ( decoder_t p_dec,
kate_packet *  p_kp,
block_t **  pp_block 
) [static]

static void rgb_to_yuv ( uint8_t *  y,
uint8_t *  u,
uint8_t *  v,
int  r,
int  g,
int  b 
) [inline, static]

static subpicture_t * SetupSimpleKateSPU ( decoder_t p_dec,
subpicture_t p_spu,
const kate_event *  ev 
) [static]

static void SetupText ( decoder_t p_dec,
subpicture_t p_spu,
const kate_event *  ev 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

decoder_t** kate_decoder_list = NULL [static]

vlc_mutex_t kate_decoder_list_mutex = PTHREAD_MUTEX_INITIALIZER [static]

Referenced by CloseDecoder(), and OpenDecoder().

size_t kate_decoder_list_size = 0 [static]

Referenced by CloseDecoder(), and OpenDecoder().


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