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
4ad0710c
Commit
4ad0710c
authored
Oct 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add undocumented automatic brightness and band-stop V4L2 controls
parent
ba35f732
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
modules/access/v4l2/controls.c
modules/access/v4l2/controls.c
+3
-1
modules/access/v4l2/video.c
modules/access/v4l2/video.c
+12
-1
No files found.
modules/access/v4l2/controls.c
View file @
4ad0710c
...
...
@@ -72,12 +72,14 @@ static const vlc_v4l2_ctrl_name_t controls[] =
{
"rotate"
,
V4L2_CID_ROTATE
},
{
"bg-color"
,
V4L2_CID_BG_COLOR
},
// NOTE: output only
{
"chroma-gain"
,
V4L2_CID_CHROMA_GAIN
},
{
"brightness-auto"
,
V4L2_CID_AUTOBRIGHTNESS
},
{
"band-stop-filter"
,
V4L2_CID_BAND_STOP_FILTER
},
{
"illuminators-1"
,
V4L2_CID_ILLUMINATORS_1
},
// NOTE: don't care?
{
"illuminators-2"
,
V4L2_CID_ILLUMINATORS_2
},
#define CTRL_CID_KNOWN(cid) \
((((uint32_t)cid) - V4L2_CID_BRIGHTNESS) \
<= (V4L2_CID_
VCEN
TER - V4L2_CID_BRIGHTNESS))
<= (V4L2_CID_
BAND_STOP_FIL
TER - V4L2_CID_BRIGHTNESS))
};
struct
vlc_v4l2_ctrl
...
...
modules/access/v4l2/video.c
View file @
4ad0710c
...
...
@@ -92,6 +92,9 @@
#define CTRL_RESET_LONGTEXT N_( "Reset controls to defaults." )
#define BRIGHTNESS_TEXT N_( "Brightness" )
#define BRIGHTNESS_LONGTEXT N_( "Picture brightness or black level." )
#define BRIGHTNESS_AUTO_TEXT N_( "Automatic brightness" )
#define BRIGHTNESS_AUTO_LONGTEXT N_( \
"Automatically adjust the picture brightness." )
#define CONTRAST_TEXT N_( "Contrast" )
#define CONTRAST_LONGTEXT N_( "Picture contrast or luma gain." )
#define SATURATION_TEXT N_( "Saturation" )
...
...
@@ -146,6 +149,9 @@ static const char *const power_freq_user[] = { N_("Unspecified"),
};
#define BKLT_COMPENSATE_TEXT N_( "Backlight compensation" )
#define BKLT_COMPENSATE_LONGTEXT N_( "Backlight compensation." )
#define BAND_STOP_FILTER_TEXT N_( "Band-stop filter" )
#define BAND_STOP_FILTER_LONGTEXT N_( \
"Cut a light band induced by fluorescent lighting (unit undocumented)." )
#define HFLIP_TEXT N_( "Horizontal flip" )
#define HFLIP_LONGTEXT N_( \
"Flip the picture horizontally." )
...
...
@@ -359,13 +365,16 @@ vlc_module_begin ()
change_safe
()
add_integer
(
CFG_PREFIX
"brightness"
,
-
1
,
BRIGHTNESS_TEXT
,
BRIGHTNESS_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"brightness-auto"
,
-
1
,
BRIGHTNESS_AUTO_TEXT
,
BRIGHTNESS_AUTO_LONGTEXT
,
true
)
change_integer_list
(
tristate_vlc
,
tristate_user
)
add_integer
(
CFG_PREFIX
"contrast"
,
-
1
,
CONTRAST_TEXT
,
CONTRAST_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"saturation"
,
-
1
,
SATURATION_TEXT
,
SATURATION_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"hue"
,
-
1
,
HUE_TEXT
,
HUE_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"
auto-hue
"
,
-
1
,
add_integer
(
CFG_PREFIX
"
hue-auto
"
,
-
1
,
HUE_AUTO_TEXT
,
HUE_AUTO_LONGTEXT
,
true
)
change_integer_list
(
tristate_vlc
,
tristate_user
)
add_obsolete_integer
(
CFG_PREFIX
"black-level"
)
/* since Linux 2.6.26 */
...
...
@@ -401,6 +410,8 @@ vlc_module_begin ()
change_integer_list
(
power_freq_vlc
,
power_freq_user
)
add_integer
(
CFG_PREFIX
"backlight-compensation"
,
-
1
,
BKLT_COMPENSATE_TEXT
,
BKLT_COMPENSATE_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"band-stop-filter"
,
-
1
,
BAND_STOP_FILTER_TEXT
,
BAND_STOP_FILTER_LONGTEXT
,
true
)
add_bool
(
CFG_PREFIX
"hflip"
,
false
,
HFLIP_TEXT
,
HFLIP_LONGTEXT
,
true
)
add_bool
(
CFG_PREFIX
"vflip"
,
false
,
VFLIP_TEXT
,
VFLIP_LONGTEXT
,
true
)
add_integer
(
CFG_PREFIX
"rotate"
,
-
1
,
ROTATE_TEXT
,
ROTATE_LONGTEXT
,
true
)
...
...
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