subsdec.c File Reference

Include dependency graph for subsdec.c:


Defines

#define ENCODING_TEXT   N_("Subtitles text encoding")
#define ENCODING_LONGTEXT   N_("Set the encoding used in text subtitles")
#define ALIGN_TEXT   N_("Subtitles justification")
#define ALIGN_LONGTEXT   N_("Set the justification of subtitles")
#define AUTODETECT_UTF8_TEXT   N_("UTF-8 subtitles autodetection")
#define AUTODETECT_UTF8_LONGTEXT
#define FORMAT_TEXT   N_("Formatted Subtitles")
#define FORMAT_LONGTEXT

Functions

static int OpenDecoder (vlc_object_t *)
static void CloseDecoder (vlc_object_t *)
static subpicture_tDecodeBlock (decoder_t *, block_t **)
static subpicture_tParseText (decoder_t *, block_t *)
static char * StripTags (char *)
static char * CreateHtmlSubtitle (int *pi_align, char *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
char * GotoNextLine (char *psz_text)
static void HtmlNPut (char **ppsz_html, const char *psz_text, int i_max)
static void HtmlPut (char **ppsz_html, const char *psz_text)
static void HtmlCopy (char **ppsz_html, char **ppsz_subtitle, const char *psz_text)

Variables

static const char *const ppsz_encodings []
static const char *const ppsz_encoding_names []
static const int pi_justification [] = { 0, 1, 2 }
static const char *const ppsz_justification_text []

Define Documentation

#define ALIGN_LONGTEXT   N_("Set the justification of subtitles")

#define ALIGN_TEXT   N_("Subtitles justification")

#define AUTODETECT_UTF8_LONGTEXT

Value:

N_("This enables automatic detection of " \
            "UTF-8 encoding within subtitles files.")

#define AUTODETECT_UTF8_TEXT   N_("UTF-8 subtitles autodetection")

#define ENCODING_LONGTEXT   N_("Set the encoding used in text subtitles")

#define ENCODING_TEXT   N_("Subtitles text encoding")

#define FORMAT_LONGTEXT

Value:

N_("Some subtitle formats allow for text formatting. " \
 "VLC partly implements this, but you can choose to disable all formatting.")

#define FORMAT_TEXT   N_("Formatted Subtitles")


Function Documentation

static void CloseDecoder ( vlc_object_t p_this  )  [static]

static char * CreateHtmlSubtitle ( int *  pi_align,
char *  psz_subtitle 
) [static]

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

char* GotoNextLine ( char *  psz_text  ) 

Referenced by ParseSSAHeader().

static void HtmlCopy ( char **  ppsz_html,
char **  ppsz_subtitle,
const char *  psz_text 
) [static]

References HtmlPut().

Referenced by CreateHtmlSubtitle().

static void HtmlNPut ( char **  ppsz_html,
const char *  psz_text,
int  i_max 
) [static]

References __MIN.

Referenced by CreateHtmlSubtitle().

static void HtmlPut ( char **  ppsz_html,
const char *  psz_text 
) [static]

Referenced by CreateHtmlSubtitle(), and HtmlCopy().

static int OpenDecoder ( vlc_object_t p_this  )  [static]

static subpicture_t * ParseText ( decoder_t p_dec,
block_t p_block 
) [static]

static char * StripTags ( char *  psz_subtitle  )  [static]

References strncasecmp().

Referenced by CreatePlainText(), and ParseText().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int pi_justification[] = { 0, 1, 2 } [static]

const char* const ppsz_encoding_names[] [static]

const char* const ppsz_encodings[] [static]

const char* const ppsz_justification_text[] [static]

Initial value:

 {
    N_("Center"),N_("Left"),N_("Right")}


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