Commit 231b08e8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove dummy plugin config item parameter

parent 95aeef3e
......@@ -320,23 +320,23 @@ enum vlc_module_properties
add_string_inner( CONFIG_ITEM_FONT, name, text, longtext, advc, \
value )
#define add_module( name, psz_caps, value, p_callback, text, longtext, advc ) \
#define add_module( name, psz_caps, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE, name, text, longtext, advc, \
value ) \
vlc_config_set (p_config, VLC_CONFIG_CAPABILITY, (const char *)(psz_caps));
#define add_module_list( name, psz_caps, value, p_callback, text, longtext, advc ) \
#define add_module_list( name, psz_caps, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE_LIST, name, text, longtext, advc, \
value ) \
vlc_config_set (p_config, VLC_CONFIG_CAPABILITY, (const char *)(psz_caps));
#ifndef __PLUGIN__
#define add_module_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \
#define add_module_cat( name, i_subcategory, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE_CAT, name, text, longtext, advc, \
value ) \
change_integer_range (i_subcategory /* gruik */, 0);
#define add_module_list_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \
#define add_module_list_cat( name, i_subcategory, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, \
advc, value ) \
change_integer_range (i_subcategory /* gruik */, 0);
......@@ -350,7 +350,7 @@ enum vlc_module_properties
KEY_UNSET ) \
add_string_inner( CONFIG_ITEM_KEY, name, text, longtext, advc, value )
#define add_integer_with_range( name, value, i_min, i_max, p_callback, text, longtext, advc ) \
#define add_integer_with_range( name, value, i_min, i_max, text, longtext, advc ) \
add_integer( name, value, text, longtext, advc ) \
change_integer_range( i_min, i_max )
......@@ -358,7 +358,7 @@ enum vlc_module_properties
add_typename_inner( CONFIG_ITEM_FLOAT, name, text, longtext, advc ) \
vlc_config_set (p_config, VLC_CONFIG_VALUE, (double)(v));
#define add_float_with_range( name, value, f_min, f_max, p_callback, text, longtext, advc ) \
#define add_float_with_range( name, value, f_min, f_max, text, longtext, advc ) \
add_float( name, value, text, longtext, advc ) \
change_float_range( f_min, f_max )
......
......@@ -108,7 +108,7 @@ vlc_module_begin ()
CACHING_TEXT, CACHING_LONGTEXT, true )
add_integer( "vdr-chapter-offset", 0,
CHAPTER_OFFSET_TEXT, CHAPTER_OFFSET_LONGTEXT, true )
add_float_with_range( "vdr-fps", 25, 1, 1000, NULL,
add_float_with_range( "vdr-fps", 25, 1, 1000,
FPS_TEXT, FPS_LONGTEXT, true )
set_capability( "access", 60 )
add_shortcut( "vdr" )
......
......@@ -88,11 +88,11 @@ vlc_module_begin ()
add_float( "sweep-rate", 6, N_("Sweep Rate"),
N_("Rate of change of sweep depth in milliseconds shift per second "
"of play"), true )
add_float_with_range( "feedback-gain", 0.5, -0.9, 0.9, NULL,
add_float_with_range( "feedback-gain", 0.5, -0.9, 0.9,
N_("Feedback Gain"), N_("Gain on Feedback loop"), true )
add_float_with_range( "wet-mix", 0.4, -0.999, 0.999, NULL,
add_float_with_range( "wet-mix", 0.4, -0.999, 0.999,
N_("Wet mix"), N_("Level of delayed signal"), true )
add_float_with_range( "dry-mix", 0.4, -0.999, 0.999, NULL,
add_float_with_range( "dry-mix", 0.4, -0.999, 0.999,
N_("Dry Mix"), N_("Level of input signal"), true )
set_capability( "audio filter", 0 )
set_callbacks( Open, Close )
......
......@@ -56,25 +56,25 @@ vlc_module_begin ()
set_subcategory( SUBCAT_AUDIO_AFILTER )
add_float( "param-eq-lowf", 100, N_("Low freq (Hz)"),NULL, false )
add_float_with_range( "param-eq-lowgain", 0, -20.0, 20.0, NULL,
add_float_with_range( "param-eq-lowgain", 0, -20.0, 20.0,
N_("Low freq gain (dB)"), NULL,false )
add_float( "param-eq-highf", 10000, N_("High freq (Hz)"),NULL, false )
add_float_with_range( "param-eq-highgain", 0, -20.0, 20.0, NULL,
add_float_with_range( "param-eq-highgain", 0, -20.0, 20.0,
N_("High freq gain (dB)"),NULL,false )
add_float( "param-eq-f1", 300, N_("Freq 1 (Hz)"),NULL, false )
add_float_with_range( "param-eq-gain1", 0, -20.0, 20.0, NULL,
add_float_with_range( "param-eq-gain1", 0, -20.0, 20.0,
N_("Freq 1 gain (dB)"), NULL,false )
add_float_with_range( "param-eq-q1", 3, 0.1, 100.0, NULL,
add_float_with_range( "param-eq-q1", 3, 0.1, 100.0,
N_("Freq 1 Q"), NULL,false )
add_float( "param-eq-f2", 1000, N_("Freq 2 (Hz)"),NULL, false )
add_float_with_range( "param-eq-gain2", 0, -20.0, 20.0, NULL,
add_float_with_range( "param-eq-gain2", 0, -20.0, 20.0,
N_("Freq 2 gain (dB)"),NULL,false )
add_float_with_range( "param-eq-q2", 3, 0.1, 100.0, NULL,
add_float_with_range( "param-eq-q2", 3, 0.1, 100.0,
N_("Freq 2 Q"),NULL,false )
add_float( "param-eq-f3", 3000, N_("Freq 3 (Hz)"),NULL, false )
add_float_with_range( "param-eq-gain3", 0, -20.0, 20.0, NULL,
add_float_with_range( "param-eq-gain3", 0, -20.0, 20.0,
N_("Freq 3 gain (dB)"),NULL,false )
add_float_with_range( "param-eq-q3", 3, 0.1, 100.0, NULL,
add_float_with_range( "param-eq-q3", 3, 0.1, 100.0,
N_("Freq 3 Q"),NULL,false )
set_callbacks( Open, Close )
......
......@@ -50,11 +50,11 @@ vlc_module_begin ()
set_category( CAT_AUDIO )
set_subcategory( SUBCAT_AUDIO_AFILTER )
add_integer_with_range( "scaletempo-stride", 30, 1, 2000, NULL,
add_integer_with_range( "scaletempo-stride", 30, 1, 2000,
N_("Stride Length"), N_("Length in milliseconds to output each stride"), true )
add_float_with_range( "scaletempo-overlap", .20, 0.0, 1.0, NULL,
add_float_with_range( "scaletempo-overlap", .20, 0.0, 1.0,
N_("Overlap Length"), N_("Percentage of stride to overlap"), true )
add_integer_with_range( "scaletempo-search", 14, 0, 200, NULL,
add_integer_with_range( "scaletempo-search", 14, 0, 200,
N_("Search Length"), N_("Length in milliseconds to search for best overlap position"), true )
set_callbacks( Open, Close )
......
......@@ -284,7 +284,7 @@ vlc_module_begin ()
add_bool( "kate-use-tiger", true, TIGER_TEXT, TIGER_LONGTEXT,
true )
add_float_with_range( "kate-tiger-quality",
TIGER_QUALITY_DEFAULT, 0.0f, 1.0f, TigerConfigurationCallback,
TIGER_QUALITY_DEFAULT, 0.0f, 1.0f,
TIGER_QUALITY_TEXT, TIGER_QUALITY_LONGTEXT,
true )
......@@ -293,30 +293,30 @@ vlc_module_begin ()
TIGER_DEFAULT_FONT_DESC_TEXT, TIGER_DEFAULT_FONT_DESC_LONGTEXT, true);
add_integer_with_range( "kate-tiger-default-font-effect",
TIGER_DEFAULT_FONT_EFFECT_DEFAULT,
0, sizeof(pi_font_effects)/sizeof(pi_font_effects[0])-1, TigerConfigurationCallback,
0, sizeof(pi_font_effects)/sizeof(pi_font_effects[0])-1,
TIGER_DEFAULT_FONT_EFFECT_TEXT, TIGER_DEFAULT_FONT_EFFECT_LONGTEXT,
true )
change_integer_list( pi_font_effects, ppsz_font_effect_names );
add_float_with_range( "kate-tiger-default-font-effect-strength",
TIGER_DEFAULT_FONT_EFFECT_STRENGTH_DEFAULT, 0.0f, 1.0f, TigerConfigurationCallback,
TIGER_DEFAULT_FONT_EFFECT_STRENGTH_DEFAULT, 0.0f, 1.0f,
TIGER_DEFAULT_FONT_EFFECT_STRENGTH_TEXT, TIGER_DEFAULT_FONT_EFFECT_STRENGTH_LONGTEXT,
true )
add_integer_with_range( "kate-tiger-default-font-color",
TIGER_DEFAULT_FONT_COLOR_DEFAULT, 0, 0x00ffffff, TigerConfigurationCallback,
TIGER_DEFAULT_FONT_COLOR_DEFAULT, 0, 0x00ffffff,
TIGER_DEFAULT_FONT_COLOR_TEXT, TIGER_DEFAULT_FONT_COLOR_LONGTEXT,
true);
change_integer_list( pi_color_values, ppsz_color_descriptions );
add_integer_with_range( "kate-tiger-default-font-alpha",
TIGER_DEFAULT_FONT_ALPHA_DEFAULT, 0, 255, TigerConfigurationCallback,
TIGER_DEFAULT_FONT_ALPHA_DEFAULT, 0, 255,
TIGER_DEFAULT_FONT_ALPHA_TEXT, TIGER_DEFAULT_FONT_ALPHA_LONGTEXT,
true);
add_integer_with_range( "kate-tiger-default-background-color",
TIGER_DEFAULT_BACKGROUND_COLOR_DEFAULT, 0, 0x00ffffff, TigerConfigurationCallback,
TIGER_DEFAULT_BACKGROUND_COLOR_DEFAULT, 0, 0x00ffffff,
TIGER_DEFAULT_BACKGROUND_COLOR_TEXT, TIGER_DEFAULT_BACKGROUND_COLOR_LONGTEXT,
true);
change_integer_list( pi_color_values, ppsz_color_descriptions );
add_integer_with_range( "kate-tiger-default-background-alpha",
TIGER_DEFAULT_BACKGROUND_ALPHA_DEFAULT, 0, 255, TigerConfigurationCallback,
TIGER_DEFAULT_BACKGROUND_ALPHA_DEFAULT, 0, 255,
TIGER_DEFAULT_BACKGROUND_ALPHA_TEXT, TIGER_DEFAULT_BACKGROUND_ALPHA_LONGTEXT,
true);
#endif
......
......@@ -80,23 +80,23 @@ vlc_module_begin ()
add_bool( "mod-reverb", false, N_("Reverb"),
REVERB_LONGTEXT, false )
add_integer_with_range( "mod-reverb-level", 0, 0, 100, NULL,
add_integer_with_range( "mod-reverb-level", 0, 0, 100,
N_("Reverberation level"), REVERB_LEVEL_LONGTEXT, true )
add_integer_with_range( "mod-reverb-delay", 40, 0, 1000, NULL,
add_integer_with_range( "mod-reverb-delay", 40, 0, 1000,
N_("Reverberation delay"), REVERB_DELAY_LONGTEXT, true )
add_bool( "mod-megabass", false, N_("Mega bass"),
MEGABASS_LONGTEXT, false )
add_integer_with_range( "mod-megabass-level", 0, 0, 100, NULL,
add_integer_with_range( "mod-megabass-level", 0, 0, 100,
N_("Mega bass level"), MEGABASS_LEVEL_LONGTEXT, true )
add_integer_with_range( "mod-megabass-range", 10, 10, 100, NULL,
add_integer_with_range( "mod-megabass-range", 10, 10, 100,
N_("Mega bass cutoff"), MEGABASS_RANGE_LONGTEXT, true )
add_bool( "mod-surround", false, N_("Surround"), N_("Surround"),
false )
add_integer_with_range( "mod-surround-level", 0, 0, 100, NULL,
add_integer_with_range( "mod-surround-level", 0, 0, 100,
N_("Surround level"), SURROUND_LEVEL_LONGTEXT, true )
add_integer_with_range( "mod-surround-delay", 5, 0, 1000, NULL,
add_integer_with_range( "mod-surround-delay", 5, 0, 1000,
N_("Surround delay (ms)"), SURROUND_DELAY_LONGTEXT, true )
set_callbacks( Open, Close )
......
......@@ -190,7 +190,7 @@ vlc_module_begin ()
add_string( "fbosd-text", NULL, FBOSD_TEXT,
FBOSD_LONGTEXT, true )
add_integer_with_range( "fbosd-alpha", 255, 0, 255, NULL, ALPHA_TEXT,
add_integer_with_range( "fbosd-alpha", 255, 0, 255, ALPHA_TEXT,
ALPHA_LONGTEXT, true )
set_section( N_("Position"), NULL )
......@@ -202,7 +202,7 @@ vlc_module_begin ()
change_integer_list( pi_pos_values, ppsz_pos_descriptions );
set_section( N_("Font"), NULL )
add_integer_with_range( "fbosd-font-opacity", 255, 0, 255, NULL,
add_integer_with_range( "fbosd-font-opacity", 255, 0, 255,
OPACITY_TEXT, OPACITY_LONGTEXT, false )
add_integer( "fbosd-font-color", 0x00FFFFFF, COLOR_TEXT, COLOR_LONGTEXT,
false )
......
......@@ -127,7 +127,7 @@ vlc_module_begin ()
false )
add_bool( "macosx-stretch", false, STRETCH_TEXT, STRETCH_LONGTEXT,
false )
add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL,
add_float_with_range( "macosx-opaqueness", 1, 0, 1,
OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, true );
add_bool( "macosx-black", true, BLACK_TEXT, BLACK_LONGTEXT,
false )
......
......@@ -211,9 +211,9 @@ vlc_module_begin ()
add_bool( "qt-pause-minimized", true, QT_PAUSE_MINIMIZED_TEXT,
QT_PAUSE_MINIMIZED_LONGTEXT, false )
add_float_with_range( "qt-opacity", 1., 0.1, 1., NULL, OPACITY_TEXT,
add_float_with_range( "qt-opacity", 1., 0.1, 1., OPACITY_TEXT,
OPACITY_LONGTEXT, false )
add_float_with_range( "qt-fs-opacity", 0.8, 0.1, 1., NULL, OPACITY_FS_TEXT,
add_float_with_range( "qt-fs-opacity", 0.8, 0.1, 1., OPACITY_FS_TEXT,
OPACITY_FS_LONGTEXT, false )
add_bool( "qt-video-autoresize", true, KEEPSIZE_TEXT,
......@@ -240,7 +240,7 @@ vlc_module_begin ()
add_bool( "qt-autosave-volume", false, SAVEVOL_TEXT,
SAVEVOL_TEXT, true )
add_integer_with_range( "qt-startvolume", QT_VOLUME_DEFAULT, 0,
QT_VOLUME_MAX, NULL, STARTVOL_TEXT, STARTVOL_TEXT, true )
QT_VOLUME_MAX, STARTVOL_TEXT, STARTVOL_TEXT, true )
#ifdef WIN32
add_bool( "qt-disable-volume-keys" /* name */,
......
......@@ -163,7 +163,7 @@ vlc_module_begin ()
change_safe()
/* opacity valid on 0..255, with default 255 = fully opaque */
add_integer_with_range( "freetype-opacity", 255, 0, 255, NULL,
add_integer_with_range( "freetype-opacity", 255, 0, 255,
OPACITY_TEXT, OPACITY_LONGTEXT, false )
change_safe()
......
......@@ -99,7 +99,7 @@ vlc_module_begin ()
FONTSIZE_LONGTEXT, true )
/* opacity valid on 0..255, with default 255 = fully opaque */
add_integer_with_range( "win32-opacity", 255, 0, 255, NULL,
add_integer_with_range( "win32-opacity", 255, 0, 255,
OPACITY_TEXT, OPACITY_LONGTEXT, false )
/* hook to the color values list, with default 0x00ffffff = white */
......
......@@ -158,9 +158,9 @@ vlc_module_begin ()
false )
add_module_list( CFG_PREFIX "vfilter", "video filter2",
NULL, NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "alpha", 255, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "alpha", 255, 0, 255,
ALPHA_TEXT, ALPHA_LONGTEXT, false )
add_integer( CFG_PREFIX "x", -1, X_TEXT, X_LONGTEXT, false )
add_integer( CFG_PREFIX "y", -1, Y_TEXT, Y_LONGTEXT, false )
......
......@@ -170,7 +170,7 @@ vlc_module_begin();
PASSWORD_TEXT, PASSWORD_LONGTEXT, false )
add_loadfile( SOUT_CFG_PREFIX "password-file", NULL,
PASSWORD_FILE_TEXT, PASSWORD_FILE_LONGTEXT, false )
add_integer_with_range( SOUT_CFG_PREFIX "volume", 100, 0, 255, NULL,
add_integer_with_range( SOUT_CFG_PREFIX "volume", 100, 0, 255,
VOLUME_TEXT, VOLUME_LONGTEXT, false )
set_callbacks( Open, Close )
vlc_module_end()
......
......@@ -159,7 +159,7 @@ vlc_module_begin ()
set_category( CAT_SOUT )
set_subcategory( SUBCAT_SOUT_STREAM )
set_section( N_("Video"), NULL )
add_module( SOUT_CFG_PREFIX "venc", "encoder", NULL, NULL, VENC_TEXT,
add_module( SOUT_CFG_PREFIX "venc", "encoder", NULL, VENC_TEXT,
VENC_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "vcodec", NULL, VCODEC_TEXT,
VCODEC_LONGTEXT, false )
......@@ -186,11 +186,10 @@ vlc_module_begin ()
add_integer( SOUT_CFG_PREFIX "maxheight", 0, MAXHEIGHT_TEXT,
MAXHEIGHT_LONGTEXT, true )
add_module_list( SOUT_CFG_PREFIX "vfilter", "video filter2",
NULL, NULL,
VFILTER_TEXT, VFILTER_LONGTEXT, false )
NULL, VFILTER_TEXT, VFILTER_LONGTEXT, false )
set_section( N_("Audio"), NULL )
add_module( SOUT_CFG_PREFIX "aenc", "encoder", NULL, NULL, AENC_TEXT,
add_module( SOUT_CFG_PREFIX "aenc", "encoder", NULL, AENC_TEXT,
AENC_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "acodec", NULL, ACODEC_TEXT,
ACODEC_LONGTEXT, false )
......@@ -205,19 +204,17 @@ vlc_module_begin ()
add_bool( SOUT_CFG_PREFIX "audio-sync", false, ASYNC_TEXT,
ASYNC_LONGTEXT, false )
add_module_list( SOUT_CFG_PREFIX "afilter", "audio filter",
NULL, NULL,
AFILTER_TEXT, AFILTER_LONGTEXT, false )
NULL, AFILTER_TEXT, AFILTER_LONGTEXT, false )
set_section( N_("Overlays/Subtitles"), NULL )
add_module( SOUT_CFG_PREFIX "senc", "encoder", NULL, NULL, SENC_TEXT,
add_module( SOUT_CFG_PREFIX "senc", "encoder", NULL, SENC_TEXT,
SENC_LONGTEXT, false )
add_string( SOUT_CFG_PREFIX "scodec", NULL, SCODEC_TEXT,
SCODEC_LONGTEXT, false )
add_bool( SOUT_CFG_PREFIX "soverlay", false, SCODEC_TEXT,
SCODEC_LONGTEXT, false )
add_module_list( SOUT_CFG_PREFIX "sfilter", "video filter",
NULL, NULL,
SFILTER_TEXT, SFILTER_LONGTEXT, false )
NULL, SFILTER_TEXT, SFILTER_LONGTEXT, false )
set_section( N_("On Screen Display"), NULL )
add_bool( SOUT_CFG_PREFIX "osd", false, OSD_TEXT,
......
......@@ -83,15 +83,15 @@ vlc_module_begin ()
set_subcategory( SUBCAT_VIDEO_VFILTER )
set_capability( "video filter2", 0 )
add_float_with_range( "contrast", 1.0, 0.0, 2.0, NULL,
add_float_with_range( "contrast", 1.0, 0.0, 2.0,
CONT_TEXT, CONT_LONGTEXT, false )
add_float_with_range( "brightness", 1.0, 0.0, 2.0, NULL,
add_float_with_range( "brightness", 1.0, 0.0, 2.0,
LUM_TEXT, LUM_LONGTEXT, false )
add_integer_with_range( "hue", 0, 0, 360, NULL,
add_integer_with_range( "hue", 0, 0, 360,
HUE_TEXT, HUE_LONGTEXT, false )
add_float_with_range( "saturation", 1.0, 0.0, 3.0, NULL,
add_float_with_range( "saturation", 1.0, 0.0, 3.0,
SAT_TEXT, SAT_LONGTEXT, false )
add_float_with_range( "gamma", 1.0, 0.01, 10.0, NULL,
add_float_with_range( "gamma", 1.0, 0.01, 10.0,
GAMMA_TEXT, GAMMA_LONGTEXT, false )
add_bool( "brightness-threshold", false,
......
......@@ -397,13 +397,13 @@ add_string(CFG_PREFIX "serialdev", "/dev/ttyUSB0",
set_section( N_("Illuminate the room with this color on pause" ), 0 )
add_bool(CFG_PREFIX "usepausecolor", false,
PCOLOR_TEXT, PCOLOR_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "pcolor-red", 0, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "pcolor-red", 0, 0, 255,
PCOLOR_RED_TEXT, PCOLOR_RED_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "pcolor-green", 0, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "pcolor-green", 0, 0, 255,
PCOLOR_GREEN_TEXT, PCOLOR_GREEN_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "pcolor-blue", 192, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "pcolor-blue", 192, 0, 255,
PCOLOR_BLUE_TEXT, PCOLOR_BLUE_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "fadesteps", 50, 1, 250, NULL,
add_integer_with_range(CFG_PREFIX "fadesteps", 50, 1, 250,
FADESTEPS_TEXT, FADESTEPS_LONGTEXT, false)
/*
......@@ -411,31 +411,31 @@ add_integer_with_range(CFG_PREFIX "fadesteps", 50, 1, 250, NULL,
used for both buildin / external
*/
set_section( N_("Illuminate the room with this color on shutdown" ), 0 )
add_integer_with_range(CFG_PREFIX "ecolor-red", 192, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "ecolor-red", 192, 0, 255,
ECOLOR_RED_TEXT, ECOLOR_RED_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "ecolor-green", 192, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "ecolor-green", 192, 0, 255,
ECOLOR_GREEN_TEXT, ECOLOR_GREEN_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "ecolor-blue", 192, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "ecolor-blue", 192, 0, 255,
ECOLOR_BLUE_TEXT, ECOLOR_BLUE_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "efadesteps", 50, 1, 250, NULL,
add_integer_with_range(CFG_PREFIX "efadesteps", 50, 1, 250,
EFADESTEPS_TEXT, EFADESTEPS_LONGTEXT, false)
set_section( N_("DMX options" ), 0 )
add_integer_with_range(CFG_PREFIX "dmx-channels", 5, 1, 64, NULL,
add_integer_with_range(CFG_PREFIX "dmx-channels", 5, 1, 64,
DMX_CHANNELS_TEXT, DMX_CHANNELS_LONGTEXT, false)
add_string(CFG_PREFIX "dmx-chbase", "0,3,6,9,12",
DMX_CHBASE_TEXT, DMX_CHBASE_LONGTEXT, false )
set_section( N_("MoMoLight options" ), 0 )
add_integer_with_range(CFG_PREFIX "momo-channels", 3, 3, 4, NULL,
add_integer_with_range(CFG_PREFIX "momo-channels", 3, 3, 4,
MOMO_CHANNELS_TEXT, MOMO_CHANNELS_LONGTEXT, false)
/* 2,2,4 means 2 is the default value, 1 minimum amount,
4 maximum amount
*/
set_section( N_("fnordlicht options" ), 0 )
add_integer_with_range(CFG_PREFIX "fnordlicht-amount", 2, 1, 254, NULL,
add_integer_with_range(CFG_PREFIX "fnordlicht-amount", 2, 1, 254,
FNORDLICHT_AMOUNT_TEXT,
FNORDLICHT_AMOUNT_LONGTEXT, false)
......@@ -477,11 +477,11 @@ add_integer_with_range(CFG_PREFIX "fnordlicht-amount", 2, 1, 254, NULL,
*/
set_section( N_("Zone Layout for the build-in Atmo" ), 0 )
add_integer_with_range(CFG_PREFIX "zones-top", 1, 0, 16, NULL,
add_integer_with_range(CFG_PREFIX "zones-top", 1, 0, 16,
ZONE_TOP_TEXT, ZONE_TOP_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "zones-bottom", 1, 0, 16, NULL,
add_integer_with_range(CFG_PREFIX "zones-bottom", 1, 0, 16,
ZONE_BOTTOM_TEXT, ZONE_BOTTOM_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "zones-lr", 1, 0, 16, NULL,
add_integer_with_range(CFG_PREFIX "zones-lr", 1, 0, 16,
ZONE_LR_TEXT, ZONE_LR_LONGTEXT, false)
add_bool(CFG_PREFIX "zone-summary", false,
ZONE_SUMMARY_TEXT, ZONE_SUMMARY_LONGTEXT, false)
......@@ -494,19 +494,19 @@ add_bool(CFG_PREFIX "zone-summary", false,
*/
set_section( N_("Settings for the built-in Live Video Processor only" ), 0 )
add_integer_with_range(CFG_PREFIX "edgeweightning", 3, 1, 30, NULL,
add_integer_with_range(CFG_PREFIX "edgeweightning", 3, 1, 30,
EDGE_TEXT, EDGE_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "brightness", 100, 50, 300, NULL,
add_integer_with_range(CFG_PREFIX "brightness", 100, 50, 300,
BRIGHTNESS_TEXT, BRIGHTNESS_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "darknesslimit", 3, 0, 10, NULL,
add_integer_with_range(CFG_PREFIX "darknesslimit", 3, 0, 10,
DARKNESS_TEXT, DARKNESS_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "huewinsize", 3, 0, 5, NULL,
add_integer_with_range(CFG_PREFIX "huewinsize", 3, 0, 5,
HUEWINSIZE_TEXT, HUEWINSIZE_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "satwinsize", 3, 0, 5, NULL,
add_integer_with_range(CFG_PREFIX "satwinsize", 3, 0, 5,
SATWINSIZE_TEXT, SATWINSIZE_LONGTEXT, false)
add_integer(CFG_PREFIX "filtermode", (int)afmCombined,
......@@ -514,16 +514,16 @@ add_integer(CFG_PREFIX "filtermode", (int)afmCombined,
change_integer_list(pi_filtermode_values, ppsz_filtermode_descriptions )
add_integer_with_range(CFG_PREFIX "meanlength", 300, 300, 5000, NULL,
add_integer_with_range(CFG_PREFIX "meanlength", 300, 300, 5000,
MEANLENGTH_TEXT, MEANLENGTH_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "meanthreshold", 40, 1, 100, NULL,
add_integer_with_range(CFG_PREFIX "meanthreshold", 40, 1, 100,
MEANTHRESHOLD_TEXT, MEANTHRESHOLD_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "percentnew", 50, 1, 100, NULL,
add_integer_with_range(CFG_PREFIX "percentnew", 50, 1, 100,
MEANPERCENTNEW_TEXT, MEANPERCENTNEW_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "framedelay", 18, 0, 200, NULL,
add_integer_with_range(CFG_PREFIX "framedelay", 18, 0, 200,
FRAMEDELAY_TEXT, FRAMEDELAY_LONGTEXT, false)
/*
......@@ -565,13 +565,13 @@ add_string(CFG_PREFIX "channels", "",
set_section( N_("Adjust the white light to your LED stripes" ), 0 )
add_bool(CFG_PREFIX "whiteadj", true,
USEWHITEADJ_TEXT, USEWHITEADJ_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "white-red", 255, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "white-red", 255, 0, 255,
WHITE_RED_TEXT, WHITE_RED_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "white-green", 255, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "white-green", 255, 0, 255,
WHITE_GREEN_TEXT, WHITE_GREEN_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "white-blue", 255, 0, 255, NULL,
add_integer_with_range(CFG_PREFIX "white-blue", 255, 0, 255,
WHITE_BLUE_TEXT, WHITE_BLUE_LONGTEXT, false)
/* end of definition of parameter for the buildin filter ... part 1 */
......@@ -608,9 +608,9 @@ add_string(CFG_PREFIX "framepath", "",
may be later if computers gets more power ;-) than now we increase
the samplesize from which we do the stats for output color calculation
*/
add_integer_with_range(CFG_PREFIX "width", 64, 64, 512, NULL,
add_integer_with_range(CFG_PREFIX "width", 64, 64, 512,
WIDTH_TEXT, WIDTH_LONGTEXT, true)
add_integer_with_range(CFG_PREFIX "height", 48, 48, 384, NULL,
add_integer_with_range(CFG_PREFIX "height", 48, 48, 384,
HEIGHT_TEXT, HEIGHT_LONGTEXT, true)
add_bool(CFG_PREFIX "showdots", false,
SHOW_DOTS_TEXT, SHOW_DOTS_LONGTEXT, false)
......
......@@ -91,7 +91,7 @@ vlc_module_begin ()
add_string( CFG_PREFIX "i_values", NULL, I_VALUES_TEXT, I_VALUES_LONGTEXT, false )
add_integer( CFG_PREFIX "x", 0, POSX_TEXT, POSX_LONGTEXT, true )
add_integer( CFG_PREFIX "y", 0, POSY_TEXT, POSY_LONGTEXT, true )
add_integer_with_range( CFG_PREFIX "transparency", 255, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "transparency", 255, 0, 255,
TRANS_TEXT, TRANS_LONGTEXT, false )
add_integer( CFG_PREFIX "position", -1, POS_TEXT, POS_LONGTEXT, false )
change_integer_list( pi_pos_values, ppsz_pos_descriptions )
......
......@@ -141,13 +141,13 @@ vlc_module_begin ()
BALL_COLOR_TEXT, BALL_COLOR_LONGTEXT, false )
change_string_list( mode_list, mode_list_text, 0 )
add_integer_with_range( FILTER_PREFIX "speed", 4, 1, 15, NULL,
add_integer_with_range( FILTER_PREFIX "speed", 4, 1, 15,
BALL_SPEED_TEXT, BALL_SPEED_LONGTEXT, false )
add_integer_with_range( FILTER_PREFIX "size", 10, 5, 30, NULL,
add_integer_with_range( FILTER_PREFIX "size", 10, 5, 30,
BALL_SIZE_TEXT, BALL_SIZE_LONGTEXT, false )
add_integer_with_range( FILTER_PREFIX "gradient-threshold", 40, 1, 200, NULL,
add_integer_with_range( FILTER_PREFIX "gradient-threshold", 40, 1, 200,
GRAD_THRESH_TEXT, GRAD_THRESH_LONGTEXT, false )
add_bool( FILTER_PREFIX "edge-visible", true,
......
......@@ -80,7 +80,7 @@ vlc_module_begin ()
set_section( N_("Benchmarking"), NULL )
add_integer( CFG_PREFIX "loops", 1000, LOOPS_TEXT,
LOOPS_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "alpha", 128, 0, 255, NULL, ALPHA_TEXT,
add_integer_with_range( CFG_PREFIX "alpha", 128, 0, 255, ALPHA_TEXT,
ALPHA_LONGTEXT, false )
set_section( N_("Base image"), NULL )
......
......@@ -83,14 +83,14 @@ vlc_module_begin ()
add_shortcut( "bluescreen" )
set_callbacks( Create, Destroy )
add_integer_with_range( CFG_PREFIX "u", 120, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "u", 120, 0, 255,
BLUESCREENU_TEXT, BLUESCREENU_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "v", 90, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "v", 90, 0, 255,
BLUESCREENV_TEXT, BLUESCREENV_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "ut", 17, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "ut", 17, 0, 255,
BLUESCREENUTOL_TEXT, BLUESCREENUTOL_LONGTEXT,
false )
add_integer_with_range( CFG_PREFIX "vt", 17, 0, 255, NULL,
add_integer_with_range( CFG_PREFIX "vt", 17, 0, 255,
BLUESCREENVTOL_TEXT, BLUESCREENVTOL_LONGTEXT,
false )
vlc_module_end ()
......
......@@ -111,9 +111,9 @@ vlc_module_begin ()
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
add_integer_with_range( CFG_PREFIX "width", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "width", 0, 0, INT_MAX,
WIDTH_TEXT, WIDTH_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "height", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "height", 0, 0, INT_MAX,
HEIGHT_TEXT, HEIGHT_LONGTEXT, false )
add_string( CFG_PREFIX "aspect", NULL,
......
......@@ -114,10 +114,10 @@ vlc_module_begin ()
AUTOCROP_LONGTEXT, false )
#ifdef BEST_AUTOCROP
add_integer_with_range( "autocrop-ratio-max", 2405, 0, RATIO_MAX, NULL,
add_integer_with_range( "autocrop-ratio-max", 2405, 0, RATIO_MAX,
RATIOMAX_TEXT, RATIOMAX_LONGTEXT, true )
add_integer_with_range( "crop-ratio", 0, 0, RATIO_MAX, NULL, RATIO_TEXT,
add_integer_with_range( "crop-ratio", 0, 0, RATIO_MAX, RATIO_TEXT,
RATIO_LONGTEXT, false )
add_integer( "autocrop-time", 25, TIME_TEXT,
TIME_LONGTEXT, true )
......@@ -127,10 +127,10 @@ vlc_module_begin ()
add_integer( "autocrop-non-black-pixels", 3,
NBP_TEXT, NBP_LONGTEXT, true )
add_integer_with_range( "autocrop-skip-percent", 17, 0, 100, NULL,
add_integer_with_range( "autocrop-skip-percent", 17, 0, 100,
SKIP_TEXT, SKIP_LONGTEXT, true )
add_integer_with_range( "autocrop-luminance-threshold", 40, 0, 128, NULL,
add_integer_with_range( "autocrop-luminance-threshold", 40, 0, 128,
LUM_TEXT, LUM_LONGTEXT, true )
#endif //BEST_AUTOCROP
......
......@@ -84,23 +84,23 @@ vlc_module_begin ()
set_subcategory( SUBCAT_VIDEO_VFILTER );
set_section( N_("Crop"), NULL )
add_integer_with_range( CFG_PREFIX "croptop", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "croptop", 0, 0, INT_MAX,
CROPTOP_TEXT, CROPTOP_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "cropbottom", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "cropbottom", 0, 0, INT_MAX,
CROPBOTTOM_TEXT, CROPBOTTOM_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "cropleft", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "cropleft", 0, 0, INT_MAX,
CROPLEFT_TEXT, CROPLEFT_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "cropright", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "cropright", 0, 0, INT_MAX,
CROPRIGHT_TEXT, CROPRIGHT_LONGTEXT, false )
set_section( N_("Padd"), NULL )
add_integer_with_range( CFG_PREFIX "paddtop", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "paddtop", 0, 0, INT_MAX,
PADDTOP_TEXT, PADDTOP_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "paddbottom", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "paddbottom", 0, 0, INT_MAX,
PADDBOTTOM_TEXT, PADDBOTTOM_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "paddleft", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "paddleft", 0, 0, INT_MAX,
PADDLEFT_TEXT, PADDLEFT_LONGTEXT, false )
add_integer_with_range( CFG_PREFIX "paddright", 0, 0, INT_MAX, NULL,
add_integer_with_range( CFG_PREFIX "paddright", 0, 0, INT_MAX,
PADDRIGHT_TEXT, PADDRIGHT_LONGTEXT, false )
vlc_module_end ()
......
......@@ -79,7 +79,7 @@ vlc_module_begin ()
add_shortcut( "extract" )
add_integer_with_range( FILTER_PREFIX "component", 0xFF0000, 1, 0xFFFFFF,
NULL, COMPONENT_TEXT, COMPONENT_LONGTEXT, false )
COMPONENT_TEXT, COMPONENT_LONGTEXT, false )
change_integer_list( pi_component_values, ppsz_component_descriptions )
set_callbacks( Create, Destroy )
......
......@@ -60,9 +60,9 @@ vlc_module_begin()
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VFILTER)
add_integer_with_range(CFG_PREFIX "radius", 16, RADIUS_MIN, RADIUS_MAX,
NULL, RADIUS_TEXT, RADIUS_LONGTEXT, false)
RADIUS_TEXT, RADIUS_LONGTEXT, false)
add_float_with_range(CFG_PREFIX "strength", 1.2, STRENGTH_MIN, STRENGTH_MAX,
NULL, STRENGTH_TEXT, STRENGTH_LONGTEXT, false)
STRENGTH_TEXT, STRENGTH_LONGTEXT, false)
set_callbacks(Open, Close)
vlc_module_end()
......
......@@ -89,7 +89,7 @@ vlc_module_begin ()
MODE_TEXT, MODE_LONGTEXT, false )
change_string_list( mode_list, mode_list_text, 0 )
add_integer_with_range( FILTER_PREFIX "type", 0, 0, 1, NULL,
add_integer_with_range( FILTER_PREFIX "type", 0, 0, 1,
GRADIENT_TEXT, GRADIENT_LONGTEXT, false )
add_bool( FILTER_PREFIX "cartoon", true,
CARTOON_TEXT, CARTOON_LONGTEXT, false )
......
......@@ -68,11 +68,11 @@ vlc_module_begin()
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VFILTER)
add_float_with_range(CFG_PREFIX "variance", 2.0, VARIANCE_MIN, VARIANCE_MAX,
NULL, VARIANCE_TEXT, VARIANCE_LONGTEXT, false)
VARIANCE_TEXT, VARIANCE_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "period-min", 1, PERIOD_MIN, PERIOD_MAX,
NULL, PERIOD_MIN_TEXT, PERIOD_MIN_LONGTEXT, false)
PERIOD_MIN_TEXT, PERIOD_MIN_LONGTEXT, false)
add_integer_with_range(CFG_PREFIX "period-max", 3*PERIOD_MAX/4, PERIOD_MIN, PERIOD_MAX,
NULL, PERIOD_MAX_TEXT, PERIOD_MAX_LONGTEXT, false)
PERIOD_MAX_TEXT, PERIOD_MAX_LONGTEXT, false)
set_callbacks(Open, Close)
vlc_module_end()
......
......@@ -99,7 +99,7 @@ vlc_module_begin ()