X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc-module.c;h=41b841ace53225802b93e9f36b0370e214ba6ba9;hb=145903d05b94462eaa309575e46c3cbafb853a42;hp=2f6b80c2dec219b58fb2af669447cda212f85b9f;hpb=efd8144e169d0cc9b71e1d90ccc329e75753361f;p=vlc diff --git a/src/libvlc-module.c b/src/libvlc-module.c index 2f6b80c2de..41b841ace5 100644 --- a/src/libvlc-module.c +++ b/src/libvlc-module.c @@ -451,15 +451,25 @@ static const char *const ppsz_align_descriptions[] = "Hide mouse cursor and fullscreen controller after " \ "n milliseconds, default is 3000 ms (3 sec.)") +#define DEINTERLACE_TEXT N_("Deinterlace") +#define DEINTERLACE_LONGTEXT N_(\ + "Deinterlace") +static const int pi_deinterlace[] = { + 0, -1, 1 +}; +static const char * const ppsz_deinterlace_text[] = { + "Off", "Automatic", "On" +}; + #define DEINTERLACE_MODE_TEXT N_("Deinterlace mode") #define DEINTERLACE_MODE_LONGTEXT N_( \ "Deinterlace method to use for video processing.") static const char * const ppsz_deinterlace_mode[] = { - "", "discard", "blend", "mean", "bob", + "discard", "blend", "mean", "bob", "linear", "x", "yadif", "yadif2x" }; static const char * const ppsz_deinterlace_mode_text[] = { - N_("Disable"), N_("Discard"), N_("Blend"), N_("Mean"), N_("Bob"), + N_("Discard"), N_("Blend"), N_("Mean"), N_("Bob"), N_("Linear"), "X", "Yadif", "Yadif (2x)" }; @@ -1001,11 +1011,6 @@ static const char *const ppsz_clock_descriptions[] = "These options allow you to enable special CPU optimizations. " \ "You should always leave all these enabled." ) -#define FPU_TEXT N_("Enable FPU support") -#define FPU_LONGTEXT N_( \ - "If your processor has a floating point calculation unit, VLC can take " \ - "advantage of it.") - #define MMX_TEXT N_("Enable CPU MMX support") #define MMX_LONGTEXT N_( \ "If your processor supports the MMX instructions set, VLC can take " \ @@ -1677,7 +1682,11 @@ vlc_module_begin () add_integer( "align", 0, NULL, ALIGN_TEXT, ALIGN_LONGTEXT, true ) change_integer_list( pi_align_values, ppsz_align_descriptions, NULL ) add_float( "zoom", 1, NULL, ZOOM_TEXT, ZOOM_LONGTEXT, true ) - add_string( "deinterlace-mode", "", NULL, + add_integer( "deinterlace", 0, NULL, + DEINTERLACE_TEXT, DEINTERLACE_LONGTEXT, false ) + change_integer_list( pi_deinterlace, ppsz_deinterlace_text, 0 ) + change_safe() + add_string( "deinterlace-mode", "blend", NULL, DEINTERLACE_MODE_TEXT, DEINTERLACE_MODE_LONGTEXT, false ) change_string_list( ppsz_deinterlace_mode, ppsz_deinterlace_mode_text, 0 ) change_safe() @@ -1945,8 +1954,7 @@ vlc_module_begin () set_category( CAT_ADVANCED ) set_subcategory( SUBCAT_ADVANCED_CPU ) add_category_hint( N_("CPU"), CPU_CAT_LONGTEXT, true ) - add_bool( "fpu", 1, NULL, FPU_TEXT, FPU_LONGTEXT, true ) - change_need_restart () + add_obsolete_bool( "fpu" ) #if defined( __i386__ ) || defined( __x86_64__ ) add_bool( "mmx", 1, NULL, MMX_TEXT, MMX_LONGTEXT, true ) change_need_restart () @@ -2284,7 +2292,7 @@ vlc_module_begin () */ # define KEY_TOGGLE_FULLSCREEN 'f' # define KEY_LEAVE_FULLSCREEN KEY_ESC -# define KEY_PLAY_PAUSE KEY_SPACE +# define KEY_PLAY_PAUSE ' ' # define KEY_PAUSE KEY_UNSET # define KEY_PLAY KEY_UNSET # define KEY_FASTER '+'