
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_t * | Filter (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 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") |
| static int CreateFilter | ( | vlc_object_t * | p_this | ) | [static] |
References filter_sys_t::b_need_update, CFG_PREFIX, config_ChainParse, CREATE_VAR, Filter(), text_style_t::i_font_alpha, filter_sys_t::i_refresh, filter_sys_t::last_time, filter_sys_t::lock, MarqueeCallback(), filter_t::p_cfg, filter_sys_t::p_style, filter_t::p_sys, p_sys, ppsz_filter_options, text_style_New(), var_AddCallback, var_CreateGetIntegerCommand, VLC_ENOMEM, vlc_mutex_init(), and VLC_SUCCESS.
| static void DestroyFilter | ( | vlc_object_t * | p_this | ) | [static] |
| static subpicture_t * Filter | ( | filter_t * | p_filter, | |
| mtime_t | date | |||
| ) | [static] |
References subpicture_t::b_absolute, subpicture_t::b_ephemer, filter_sys_t::b_need_update, filter_NewSubpicture(), subpicture_region_t::i_align, video_format_t::i_chroma, video_format_t::i_height, filter_sys_t::i_pos, filter_sys_t::i_refresh, subpicture_t::i_start, subpicture_t::i_stop, filter_sys_t::i_timeout, video_format_t::i_width, subpicture_region_t::i_x, video_format_t::i_x_offset, filter_sys_t::i_xoff, subpicture_region_t::i_y, video_format_t::i_y_offset, filter_sys_t::i_yoff, filter_sys_t::last_time, filter_sys_t::lock, subpicture_t::p_region, filter_sys_t::p_style, subpicture_region_t::p_style, filter_t::p_sys, p_sys, filter_sys_t::psz_marquee, subpicture_region_t::psz_text, str_format, SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_TOP, subpicture_region_New(), text_style_Duplicate(), VLC_CODEC_TEXT, vlc_mutex_lock(), and vlc_mutex_unlock().
| static int MarqueeCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References filter_sys_t::b_need_update, text_style_t::i_font_alpha, text_style_t::i_font_color, text_style_t::i_font_size, vlc_value_t::i_int, filter_sys_t::i_pos, filter_sys_t::i_refresh, filter_sys_t::i_timeout, filter_sys_t::i_xoff, filter_sys_t::i_yoff, filter_sys_t::lock, filter_sys_t::p_style, p_sys, filter_sys_t::psz_marquee, vlc_value_t::psz_string, strdup(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by CreateFilter().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
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] |
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] |
1.5.6