
Data Structures | |
| struct | logo_t |
| Structure to hold the set of individual logo image names, times, transparencies. More... | |
| struct | logo_list_t |
| Logo list structure. More... | |
| struct | filter_sys_t |
| filter_sys_t: chroma method descriptor More... | |
Defines | |
| #define | FILE_TEXT N_("Logo filenames") |
| #define | FILE_LONGTEXT |
| #define | REPEAT_TEXT N_("Logo animation # of loops") |
| #define | REPEAT_LONGTEXT |
| #define | DELAY_TEXT N_("Logo individual image time in ms") |
| #define | DELAY_LONGTEXT N_("Individual image display time of 0 - 60000 ms.") |
| #define | POSX_TEXT N_("X coordinate") |
| #define | POSX_LONGTEXT |
| #define | POSY_TEXT N_("Y coordinate") |
| #define | POSY_LONGTEXT |
| #define | OPACITY_TEXT N_("Opacity of the logo") |
| #define | OPACITY_LONGTEXT |
| #define | POS_TEXT N_("Logo position") |
| #define | POS_LONGTEXT |
| #define | LOGO_HELP N_("Use a local picture as logo on the video") |
| #define | CFG_PREFIX "logo-" |
Functions | |
| static int | OpenSub (vlc_object_t *p_this) |
| Open the sub filter. | |
| static int | OpenVideo (vlc_object_t *p_this) |
| Open the video filter. | |
| static void | Close (vlc_object_t *p_this) |
| Common close function. | |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static int | OpenCommon (vlc_object_t *p_this, bool b_sub) |
| Common open function. | |
| static subpicture_t * | FilterSub (filter_t *p_filter, mtime_t date) |
| Sub filter. | |
| static picture_t * | FilterVideo (filter_t *p_filter, picture_t *p_src) |
| Video filter. | |
| static int | Mouse (filter_t *, vlc_mouse_t *, const vlc_mouse_t *, const vlc_mouse_t *) |
| static int | LogoCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *) |
| static void | LogoListLoad (vlc_object_t *p_this, logo_list_t *p_logo_list, const char *psz_filename) |
| It loads the logo images into memory. | |
| static void | LogoListUnload (logo_list_t *p_list) |
| Unload a list of logo and release associated ressources. | |
| static logo_t * | LogoListNext (logo_list_t *p_list, mtime_t i_date) |
| Go to the next logo and return its pointer. | |
| static logo_t * | LogoListCurrent (logo_list_t *p_list) |
| Return the current logo pointer. | |
| static picture_t * | LoadImage (vlc_object_t *p_this, const char *psz_filename) |
| It loads the logo image into memory. | |
Variables | |
| 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 [] |
| static const char *const | ppsz_filter_callbacks [] |
| #define CFG_PREFIX "logo-" |
| #define DELAY_LONGTEXT N_("Individual image display time of 0 - 60000 ms.") |
| #define DELAY_TEXT N_("Logo individual image time in ms") |
| #define FILE_LONGTEXT |
Value:
N_("Full path of the image files to use. Format is " \ "<image>[,<delay in ms>[,<alpha>]][;<image>[,<delay>[,<alpha>]]][;...]. " \ "If you only have one file, simply enter its filename.")
| #define FILE_TEXT N_("Logo filenames") |
| #define LOGO_HELP N_("Use a local picture as logo on the video") |
| #define OPACITY_LONGTEXT |
Value:
N_("Logo opacity value " \ "(from 0 for full transparency to 255 for full opacity)." )
| #define OPACITY_TEXT N_("Opacity of the logo") |
| #define POS_LONGTEXT |
Value:
N_( \ "Enforce the logo 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_("Logo position") |
| #define POSX_LONGTEXT |
Value:
N_("X coordinate of the logo. You can move the logo " \ "by left-clicking it." )
| #define POSX_TEXT N_("X coordinate") |
| #define POSY_LONGTEXT |
Value:
N_("Y coordinate of the logo. You can move the logo " \ "by left-clicking it." )
| #define POSY_TEXT N_("Y coordinate") |
| #define REPEAT_LONGTEXT |
Value:
N_("Number of loops for the logo animation." \ "-1 = continuous, 0 = disabled")
| #define REPEAT_TEXT N_("Logo animation # of loops") |
| static void Close | ( | vlc_object_t * | p_this | ) | [static] |
Common close function.
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.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static subpicture_t * FilterSub | ( | filter_t * | p_filter, | |
| mtime_t | date | |||
| ) | [static] |
Sub filter.
References filter_sys_t::b_absolute, subpicture_t::b_absolute, subpicture_t::b_ephemer, filter_sys_t::b_spu_update, filter_NewSubpicture(), subpicture_region_t::i_align, subpicture_t::i_alpha, logo_list_t::i_alpha, logo_t::i_alpha, video_format_t::i_chroma, logo_list_t::i_counter, video_format_t::i_height, logo_list_t::i_next_pic, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, logo_list_t::i_repeat, video_format_t::i_sar_den, video_format_t::i_sar_num, subpicture_t::i_start, subpicture_t::i_stop, video_format_t::i_visible_height, plane_t::i_visible_lines, plane_t::i_visible_pitch, video_format_t::i_visible_width, video_format_t::i_width, subpicture_region_t::i_x, video_format_t::i_x_offset, subpicture_region_t::i_y, video_format_t::i_y_offset, filter_sys_t::list, filter_sys_t::lock, LogoListNext(), msg_Err, picture_t::p, logo_t::p_pic, subpicture_region_t::p_picture, subpicture_t::p_region, filter_t::p_sys, picture_Copy(), SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, subpicture_region_New(), VLC_CODEC_YUVA, vlc_mutex_lock(), vlc_mutex_unlock(), and Y_PLANE.
Video filter.
References picture_t::date, filter_Blend(), filter_ConfigureBlend(), filter_NewPicture(), filter_t::fmt_out, picture_t::format, logo_list_t::i_alpha, logo_t::i_alpha, logo_list_t::i_next_pic, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, video_format_t::i_visible_height, video_format_t::i_visible_width, filter_sys_t::list, filter_sys_t::lock, LogoListCurrent(), LogoListNext(), msg_Err, filter_sys_t::p_blend, p_dst, logo_t::p_pic, filter_t::p_sys, picture_Copy(), picture_Release(), SUBPICTURE_ALIGN_BOTTOM, SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, es_format_t::video, vlc_mutex_lock(), and vlc_mutex_unlock().
| static picture_t* LoadImage | ( | vlc_object_t * | p_this, | |
| const char * | psz_filename | |||
| ) | [static] |
It loads the logo image into memory.
References image_HandlerCreate, image_HandlerDelete(), image_ReadUrl, video_format_Init(), and VLC_CODEC_YUVA.
| static int LogoCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References __MAX, __MIN, filter_sys_t::b_spu_update, logo_list_t::i_alpha, vlc_value_t::i_int, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, logo_list_t::i_repeat, filter_sys_t::list, filter_sys_t::lock, LogoListLoad(), LogoListUnload(), vlc_value_t::psz_string, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by OpenCommon().
| static logo_t * LogoListCurrent | ( | logo_list_t * | p_list | ) | [static] |
Return the current logo pointer.
References logo_list_t::i_counter, and logo_list_t::p_logo.
Referenced by FilterVideo(), LogoListNext(), and Mouse().
| static void LogoListLoad | ( | vlc_object_t * | p_this, | |
| logo_list_t * | p_logo_list, | |||
| const char * | psz_filename | |||
| ) | [static] |
It loads the logo images into memory.
Read the logo-file input switch, obtaining a list of images and associated durations and transparencies. Store the image(s), and times. An image without a stated time or opacity will use the logo-delay and logo-opacity values.
References logo_t::i_alpha, logo_list_t::i_count, logo_list_t::i_counter, logo_t::i_delay, logo_list_t::i_next_pic, LoadImage(), msg_Dbg, msg_Warn, logo_list_t::p_logo, logo_t::p_pic, and strdup().
Referenced by LogoCallback(), and OpenCommon().
| static logo_t * LogoListNext | ( | logo_list_t * | p_list, | |
| mtime_t | i_date | |||
| ) | [static] |
Go to the next logo and return its pointer.
References logo_list_t::i_count, logo_list_t::i_counter, logo_list_t::i_delay, logo_list_t::i_next_pic, and LogoListCurrent().
Referenced by FilterSub(), and FilterVideo().
| static void LogoListUnload | ( | logo_list_t * | p_list | ) | [static] |
Unload a list of logo and release associated ressources.
References logo_list_t::i_count, logo_list_t::p_logo, logo_t::p_pic, and picture_Release().
Referenced by LogoCallback().
| static int Mouse | ( | filter_t * | p_filter, | |
| vlc_mouse_t * | p_mouse, | |||
| const vlc_mouse_t * | p_old, | |||
| const vlc_mouse_t * | p_new | |||
| ) | [static] |
References __MAX, __MIN, filter_sys_t::b_mouse_grab, filter_t::fmt_in, picture_t::format, video_format_t::i_height, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, vlc_mouse_t::i_x, vlc_mouse_t::i_y, filter_sys_t::list, filter_sys_t::lock, LogoListCurrent(), MOUSE_BUTTON_LEFT, filter_t::p_parent, logo_t::p_pic, filter_t::p_sys, var_SetBool, es_format_t::video, VLC_EGENERIC, vlc_mouse_GetMotion(), vlc_mouse_HasPressed(), vlc_mouse_HasReleased(), vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
| static int OpenCommon | ( | vlc_object_t * | p_this, | |
| bool | b_sub | |||
| ) | [static] |
Common open function.
References __MAX, __MIN, filter_sys_t::b_mouse_grab, filter_sys_t::b_spu_update, CFG_PREFIX, config_ChainParse, es_format_IsSimilar(), filter_DeleteBlend(), filter_NewBlend(), FilterSub(), FilterVideo(), filter_t::fmt_in, filter_t::fmt_out, i, logo_list_t::i_alpha, logo_list_t::i_delay, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, logo_list_t::i_repeat, filter_sys_t::list, filter_sys_t::lock, LogoCallback(), LogoListLoad(), Mouse(), msg_Err, msg_Warn, filter_sys_t::p_blend, filter_t::p_cfg, filter_t::p_sys, p_sys, ppsz_filter_callbacks, ppsz_filter_options, var_AddCallback, var_CreateGetIntegerCommand, var_CreateGetStringCommand, es_format_t::video, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), VLC_OBJECT, and VLC_SUCCESS.
| static int OpenSub | ( | vlc_object_t * | p_this | ) | [static] |
| static int OpenVideo | ( | vlc_object_t * | p_this | ) | [static] |
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 } [static] |
const char* const ppsz_filter_callbacks[] [static] |
Initial value:
{
"logo-file",
"logo-x",
"logo-y",
"logo-position",
"logo-opacity",
"logo-repeat",
NULL
}
const char* const ppsz_filter_options[] [static] |
Initial value:
{
"file", "x", "y", "delay", "repeat", "opacity", "position", NULL
}
const char* const ppsz_pos_descriptions[] [static] |
1.5.6