Commit fcec9fa7 authored by Francois Cartegnie's avatar Francois Cartegnie

add vout sub-text-scale variable

For cross renderers spu text sizing
parent 7000d76f
......@@ -694,6 +694,9 @@ static const char *const ppsz_prefres[] = {
"You can use this option to place the subtitles under the movie, " \
"instead of over the movie. Try several positions.")
#define SUB_TEXT_SCALE_TEXT N_("Subtitles text scaling factor")
#define SUB_TEXT_SCALE_LONGTEXT N_("Set value to alter subtitles size where possible")
#define SPU_TEXT N_("Enable sub-pictures")
#define SPU_LONGTEXT N_( \
"You can completely disable the sub-picture processing.")
......@@ -1625,6 +1628,9 @@ vlc_module_begin ()
SUB_PATH_TEXT, SUB_PATH_LONGTEXT, true )
add_integer( "sub-margin", 0, SUB_MARGIN_TEXT,
SUB_MARGIN_LONGTEXT, true )
add_integer_with_range( "sub-text-scale", 100, 10, 500,
SUB_TEXT_SCALE_TEXT, SUB_TEXT_SCALE_LONGTEXT, false )
change_volatile ()
set_section( N_( "Overlays" ) , NULL )
add_module_list( "sub-source", "sub source", NULL,
SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT, false )
......
......@@ -144,12 +144,12 @@ static vout_thread_t *VoutCreate(vlc_object_t *object,
vlc_mutex_init(&vout->p->filter.lock);
vlc_mutex_init(&vout->p->spu_lock);
/* Initialize subpicture unit */
vout->p->spu = spu_Create(vout);
/* Take care of some "interface/control" related initialisations */
vout_IntfInit(vout);
/* Initialize subpicture unit */
vout->p->spu = spu_Create(vout);
vout->p->title.show = var_InheritBool(vout, "video-title-show");
vout->p->title.timeout = var_InheritInteger(vout, "video-title-timeout");
vout->p->title.position = var_InheritInteger(vout, "video-title-position");
......
......@@ -293,6 +293,9 @@ void vout_IntfInit( vout_thread_t *p_vout )
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
var_AddCallback( p_vout, "sub-margin", SubMarginCallback, NULL );
var_Create( p_vout, "sub-text-scale",
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT | VLC_VAR_ISCOMMAND );
/* Mouse coordinates */
var_Create( p_vout, "mouse-button-down", VLC_VAR_INTEGER );
var_Create( p_vout, "mouse-moved", VLC_VAR_COORDS );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment