Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f351540e
Commit
f351540e
authored
Mar 06, 2014
by
Roman Donchenko
Committed by
OpenCV Buildbot
Mar 06, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2443 from waveform80:issue-3554
parents
ba451350
b184d7f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
53 deletions
+0
-53
cap_libv4l.cpp
modules/highgui/src/cap_libv4l.cpp
+0
-29
cap_v4l.cpp
modules/highgui/src/cap_v4l.cpp
+0
-24
No files found.
modules/highgui/src/cap_libv4l.cpp
View file @
f351540e
...
...
@@ -321,7 +321,6 @@ typedef struct CvCaptureCAM_V4L
struct
v4l2_control
control
;
enum
v4l2_buf_type
type
;
struct
v4l2_queryctrl
queryctrl
;
struct
v4l2_querymenu
querymenu
;
/* V4L2 control variables */
v4l2_ctrl_range
**
v4l2_ctrl_ranges
;
...
...
@@ -491,25 +490,6 @@ static int try_init_v4l2(CvCaptureCAM_V4L* capture, char *deviceName)
}
static
void
v4l2_scan_controls_enumerate_menu
(
CvCaptureCAM_V4L
*
capture
)
{
// printf (" Menu items:\n");
CLEAR
(
capture
->
querymenu
);
capture
->
querymenu
.
id
=
capture
->
queryctrl
.
id
;
for
(
capture
->
querymenu
.
index
=
capture
->
queryctrl
.
minimum
;
(
int
)
capture
->
querymenu
.
index
<=
capture
->
queryctrl
.
maximum
;
capture
->
querymenu
.
index
++
)
{
if
(
0
==
xioctl
(
capture
->
deviceHandle
,
VIDIOC_QUERYMENU
,
&
capture
->
querymenu
))
{
//printf (" %s\n", capture->querymenu.name);
}
else
{
perror
(
"VIDIOC_QUERYMENU"
);
}
}
}
static
void
v4l2_free_ranges
(
CvCaptureCAM_V4L
*
capture
)
{
int
i
;
if
(
capture
->
v4l2_ctrl_ranges
!=
NULL
)
{
...
...
@@ -590,9 +570,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
if
(
capture
->
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
{
continue
;
}
if
(
capture
->
queryctrl
.
type
==
V4L2_CTRL_TYPE_MENU
)
{
v4l2_scan_controls_enumerate_menu
(
capture
);
}
if
(
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_INTEGER
&&
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_BOOLEAN
&&
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_MENU
)
{
...
...
@@ -613,9 +590,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
if
(
capture
->
queryctrl
.
flags
&
V4L2_CTRL_FLAG_DISABLED
)
{
continue
;
}
if
(
capture
->
queryctrl
.
type
==
V4L2_CTRL_TYPE_MENU
)
{
v4l2_scan_controls_enumerate_menu
(
capture
);
}
if
(
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_INTEGER
&&
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_BOOLEAN
&&
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_MENU
)
{
...
...
@@ -637,9 +611,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
continue
;
}
if
(
capture
->
queryctrl
.
type
==
V4L2_CTRL_TYPE_MENU
)
{
v4l2_scan_controls_enumerate_menu
(
capture
);
}
if
(
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_INTEGER
&&
capture
->
queryctrl
.
type
!=
V4L2_CTRL_TYPE_BOOLEAN
&&
...
...
modules/highgui/src/cap_v4l.cpp
View file @
f351540e
...
...
@@ -325,7 +325,6 @@ typedef struct CvCaptureCAM_V4L
struct
v4l2_control
control
;
enum
v4l2_buf_type
type
;
struct
v4l2_queryctrl
queryctrl
;
struct
v4l2_querymenu
querymenu
;
struct
timeval
timestamp
;
...
...
@@ -641,24 +640,6 @@ static int autosetup_capture_mode_v4l(CvCaptureCAM_V4L* capture)
#ifdef HAVE_CAMV4L2
static
void
v4l2_scan_controls_enumerate_menu
(
CvCaptureCAM_V4L
*
capture
)
{
// printf (" Menu items:\n");
CLEAR
(
capture
->
querymenu
);
capture
->
querymenu
.
id
=
capture
->
queryctrl
.
id
;
for
(
capture
->
querymenu
.
index
=
capture
->
queryctrl
.
minimum
;
(
int
)
capture
->
querymenu
.
index
<=
capture
->
queryctrl
.
maximum
;
capture
->
querymenu
.
index
++
)
{
if
(
0
==
ioctl
(
capture
->
deviceHandle
,
VIDIOC_QUERYMENU
,
&
capture
->
querymenu
))
{
// printf (" %s\n", capture->querymenu.name);
}
else
{
perror
(
"VIDIOC_QUERYMENU"
);
}
}
}
static
void
v4l2_scan_controls
(
CvCaptureCAM_V4L
*
capture
)
{
...
...
@@ -723,8 +704,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
capture
->
v4l2_exposure_max
=
capture
->
queryctrl
.
maximum
;
}
if
(
capture
->
queryctrl
.
type
==
V4L2_CTRL_TYPE_MENU
)
v4l2_scan_controls_enumerate_menu
(
capture
);
}
else
{
...
...
@@ -793,9 +772,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
capture
->
v4l2_exposure_max
=
capture
->
queryctrl
.
maximum
;
}
if
(
capture
->
queryctrl
.
type
==
V4L2_CTRL_TYPE_MENU
)
v4l2_scan_controls_enumerate_menu
(
capture
);
}
else
{
if
(
errno
==
EINVAL
)
...
...
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