Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
4fc0e980
Commit
4fc0e980
authored
Jun 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add integer config item type for RGB values
parent
20692b9c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
include/vlc_configuration.h
include/vlc_configuration.h
+1
-0
include/vlc_plugin.h
include/vlc_plugin.h
+4
-0
src/config/cmdline.c
src/config/cmdline.c
+1
-0
src/libvlc.c
src/libvlc.c
+1
-0
No files found.
include/vlc_configuration.h
View file @
4fc0e980
...
...
@@ -53,6 +53,7 @@ extern "C" {
/* Configuration item types */
#define CONFIG_ITEM_FLOAT 0x20
/* Float option */
#define CONFIG_ITEM_INTEGER 0x40
/* Integer option */
#define CONFIG_ITEM_RGB 0x41
/* RGB color option */
#define CONFIG_ITEM_BOOL 0x60
/* Bool option */
#define CONFIG_ITEM_STRING 0x80
/* String option */
#define CONFIG_ITEM_PASSWORD 0x81
/* Password option (*) */
...
...
include/vlc_plugin.h
View file @
4fc0e980
...
...
@@ -345,6 +345,10 @@ enum vlc_module_properties
#define add_integer( name, value, text, longtext, advc ) \
add_int_inner( CONFIG_ITEM_INTEGER, name, text, longtext, advc, value )
#define add_rgb( name, value, text, longtext, advc ) \
add_int_inner( CONFIG_ITEM_RGB, name, text, longtext, advc, value ) \
change_integer_range( 0, 0xFFFFFF )
#define add_key( name, value, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_KEY, "global-" name, text, longtext, advc, \
KEY_UNSET ) \
...
...
src/config/cmdline.c
View file @
4fc0e980
...
...
@@ -258,6 +258,7 @@ int config_LoadCmdLine( vlc_object_t *p_this, int i_argc,
var_SetString
(
p_this
,
psz_name
,
state
.
arg
);
break
;
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_RGB
:
var_Create
(
p_this
,
psz_name
,
VLC_VAR_INTEGER
);
var_SetInteger
(
p_this
,
psz_name
,
strtoll
(
state
.
arg
,
NULL
,
0
));
...
...
src/libvlc.c
View file @
4fc0e980
...
...
@@ -1545,6 +1545,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
}
break
;
case
CONFIG_ITEM_INTEGER
:
case
CONFIG_ITEM_RGB
:
print_help_section
(
p_parser
,
p_section
,
b_color
,
b_description
);
p_section
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment