marq.c File Reference

Include dependency graph for marq.c:


Data Structures

struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...

Defines

#define MSG_TEXT   N_("Text")
#define MSG_LONGTEXT
#define POSX_TEXT   N_("X offset")
#define POSX_LONGTEXT   N_("X offset, from the left screen edge." )
#define POSY_TEXT   N_("Y offset")
#define POSY_LONGTEXT   N_("Y offset, down from the top." )
#define TIMEOUT_TEXT   N_("Timeout")
#define TIMEOUT_LONGTEXT
#define REFRESH_TEXT   N_("Refresh period in ms")
#define REFRESH_LONGTEXT
#define OPACITY_TEXT   N_("Opacity")
#define OPACITY_LONGTEXT
#define SIZE_TEXT   N_("Font size, pixels")
#define SIZE_LONGTEXT
#define COLOR_TEXT   N_("Color")
#define COLOR_LONGTEXT
#define POS_TEXT   N_("Marquee position")
#define POS_LONGTEXT
#define CFG_PREFIX   "marq-"
#define MARQUEE_HELP   N_("Display text above the video")
#define CREATE_VAR(stor, type, var)
#define DEL_VAR(var)

Functions

static int CreateFilter (vlc_object_t *)
static void DestroyFilter (vlc_object_t *)
static subpicture_tFilter (filter_t *, mtime_t)
static int MarqueeCallback (vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)

Variables

static const int pi_color_values []
static const char *const ppsz_color_descriptions []
static const int pi_pos_values [] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }
static const char *const ppsz_pos_descriptions []
static const char *const ppsz_filter_options []

Define Documentation

#define CFG_PREFIX   "marq-"

#define COLOR_LONGTEXT

Value:

N_("Color of the text that will be rendered on "\
    "the video. This must be an hexadecimal (like HTML colors). The first two "\
    "chars are for red, then green, then blue. #000000 = black, #FF0000 = red,"\
    " #00FF00 = green, #FFFF00 = yellow (red + green), #FFFFFF = white" )

#define COLOR_TEXT   N_("Color")

#define CREATE_VAR ( stor,
type,
var   ) 

Value:

p_sys->stor = var_CreateGet##type##Command( p_filter, var ); \
    var_AddCallback( p_filter, var, MarqueeCallback, p_sys );

Referenced by CreateFilter().

#define DEL_VAR ( var   ) 

Value:

var_DelCallback( p_filter, var, MarqueeCallback, p_sys ); \
    var_Destroy( p_filter, var );

Referenced by DestroyFilter().

#define MARQUEE_HELP   N_("Display text above the video")

#define MSG_LONGTEXT

Value:

N_( \
    "Marquee text to display. " \
    "(Available format strings: " \
    "Time related: %Y = year, %m = month, %d = day, %H = hour, " \
    "%M = minute, %S = second, ... " \
    "Meta data related: $a = artist, $b = album, $c = copyright, " \
    "$d = description, $e = encoded by, $g = genre, " \
    "$l = language, $n = track num, $p = now playing, " \
    "$r = rating, $s = subtitles language, $t = title, "\
    "$u = url, $A = date, " \
    "$B = audio bitrate (in kb/s), $C = chapter," \
    "$D = duration, $F = full name with path, $I = title, "\
    "$L = time left, " \
    "$N = name, $O = audio language, $P = position (in %), $R = rate, " \
    "$S = audio sample rate (in kHz), " \
    "$T = time, $U = publisher, $V = volume, $_ = new line) ")

#define MSG_TEXT   N_("Text")

#define OPACITY_LONGTEXT

Value:

N_("Opacity (inverse of transparency) of " \
    "overlayed text. 0 = transparent, 255 = totally opaque. " )

#define OPACITY_TEXT   N_("Opacity")

#define POS_LONGTEXT

Value:

N_( \
  "You can enforce the marquee position on the video " \
  "(0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \
  "also use combinations of these values, eg 6 = top-right).")

#define POS_TEXT   N_("Marquee position")

#define POSX_LONGTEXT   N_("X offset, from the left screen edge." )

#define POSX_TEXT   N_("X offset")

#define POSY_LONGTEXT   N_("Y offset, down from the top." )

#define POSY_TEXT   N_("Y offset")

#define REFRESH_LONGTEXT

Value:

N_("Number of milliseconds between string updates. " \
                            "This is mainly useful when using meta data " \
                            "or time format string sequences.")

#define REFRESH_TEXT   N_("Refresh period in ms")

#define SIZE_LONGTEXT

Value:

N_("Font size, in pixels. Default is -1 (use default " \
    "font size)." )

#define SIZE_TEXT   N_("Font size, pixels")

#define TIMEOUT_LONGTEXT

Value:

N_("Number of milliseconds the marquee must remain " \
                            "displayed. Default value is " \
                            "0 (remains forever).")

#define TIMEOUT_TEXT   N_("Timeout")


Function Documentation

static int CreateFilter ( vlc_object_t p_this  )  [static]

static void DestroyFilter ( vlc_object_t p_this  )  [static]

static subpicture_t * Filter ( filter_t p_filter,
mtime_t  date 
) [static]

static int MarqueeCallback ( vlc_object_t p_this,
char const *  psz_var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int pi_color_values[] [static]

Initial value:

 {
               0xf0000000, 0x00000000, 0x00808080, 0x00C0C0C0,
               0x00FFFFFF, 0x00800000, 0x00FF0000, 0x00FF00FF, 0x00FFFF00,
               0x00808000, 0x00008000, 0x00008080, 0x0000FF00, 0x00800080,
               0x00000080, 0x000000FF, 0x0000FFFF}

const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 } [static]

const char* const ppsz_color_descriptions[] [static]

Initial value:

 {
               N_("Default"), N_("Black"), N_("Gray"),
               N_("Silver"), N_("White"), N_("Maroon"), N_("Red"),
               N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"),
               N_("Teal"), N_("Lime"), N_("Purple"), N_("Navy"), N_("Blue"),
               N_("Aqua") }

const char* const ppsz_filter_options[] [static]

Initial value:

 {
    "marquee", "x", "y", "position", "color", "size", "timeout", "refresh",
    NULL
}

const char* const ppsz_pos_descriptions[] [static]

Initial value:

     { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
     N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }


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