Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f4816ca7
Commit
f4816ca7
authored
Jan 06, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2: add automatic power line frequency detection
parent
61994f33
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
modules/access/v4l2/v4l2.h
modules/access/v4l2/v4l2.h
+1
-0
modules/access/v4l2/video.c
modules/access/v4l2/video.c
+2
-1
No files found.
modules/access/v4l2/v4l2.h
View file @
f4816ca7
...
...
@@ -32,6 +32,7 @@
#ifndef V4L2_CTRL_FLAG_VOLATILE
/* 3.2 */
# warning Please update Video4Linux2 headers!
# define V4L2_CTRL_FLAG_VOLATILE 0x0080
# define V4L2_CID_POWER_LINE_FREQUENCY_AUTO 3
# define V4L2_STD_G (V4L2_STD_PAL_G|V4L2_STD_SECAM_G)
# define V4L2_STD_H (V4L2_STD_PAL_H|V4L2_STD_SECAM_H)
# define V4L2_STD_L (V4L2_STD_SECAM_L|V4L2_STD_SECAM_LC)
...
...
modules/access/v4l2/video.c
View file @
f4816ca7
...
...
@@ -140,9 +140,10 @@ static const int power_freq_vlc[] = { -1,
V4L2_CID_POWER_LINE_FREQUENCY_DISABLED
,
V4L2_CID_POWER_LINE_FREQUENCY_50HZ
,
V4L2_CID_POWER_LINE_FREQUENCY_60HZ
,
V4L2_CID_POWER_LINE_FREQUENCY_AUTO
,
};
static
const
char
*
const
power_freq_user
[]
=
{
N_
(
"Unspecified"
),
N_
(
"Off"
),
N_
(
"50 Hz"
),
N_
(
"60 Hz"
),
N_
(
"Off"
),
N_
(
"50 Hz"
),
N_
(
"60 Hz"
),
N_
(
"Automatic"
),
};
#define BKLT_COMPENSATE_TEXT N_( "Backlight compensation" )
#define BKLT_COMPENSATE_LONGTEXT N_( "Backlight compensation." )
...
...
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