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
e0e828ef
Commit
e0e828ef
authored
Nov 12, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videoio: remove using of HAVE_CAMV4L
parent
ab65b974
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
cvconfig.h.in
cmake/templates/cvconfig.h.in
+0
-3
cap_dc1394.cpp
modules/videoio/src/cap_dc1394.cpp
+1
-1
videoio_registry.cpp
modules/videoio/src/videoio_registry.cpp
+2
-4
No files found.
cmake/templates/cvconfig.h.in
View file @
e0e828ef
...
...
@@ -25,9 +25,6 @@
/* AVFoundation video libraries */
#cmakedefine HAVE_AVFOUNDATION
/* V4L capturing support */
#cmakedefine HAVE_CAMV4L
/* V4L2 capturing support */
#cmakedefine HAVE_CAMV4L2
...
...
modules/videoio/src/cap_dc1394.cpp
View file @
e0e828ef
...
...
@@ -28,7 +28,7 @@ Install dc1394 raw1394 - coriander should work with your camera
The build is controlled by the following entries in the videoio Makefile:
libvideoio_la_LIBADD = -L/usr/X11R6/lib -lXm -lMrm -lUil -lpng -ljpeg -lz -ltiff -lavcodec -lraw1394 -ldc1394_control
DEFS = -DHAVE_CONFIG_H -DHAVE_DC1394
HAVE_CAMV4L
DEFS = -DHAVE_CONFIG_H -DHAVE_DC1394
Now it should be possible to use videoio camera functions, works for me.
...
...
modules/videoio/src/videoio_registry.cpp
View file @
e0e828ef
...
...
@@ -82,8 +82,6 @@ static const struct VideoBackendInfo builtin_backends[] =
// Linux, some Unix
#if defined HAVE_CAMV4L2
DECLARE_BACKEND
(
CAP_V4L2
,
"V4L2"
,
MODE_CAPTURE_ALL
),
#elif defined HAVE_CAMV4L
DECLARE_BACKEND
(
CAP_V4L
,
"V4L"
,
MODE_CAPTURE_ALL
),
#elif defined HAVE_VIDEOIO
DECLARE_BACKEND
(
CAP_V4L
,
"V4L_BSD"
,
MODE_CAPTURE_ALL
),
#endif
...
...
@@ -436,7 +434,7 @@ void VideoCapture_create(CvCapture*& capture, Ptr<IVideoCapture>& icap, VideoCap
TRY_OPEN
(
createGPhoto2Capture
(
index
));
break
;
#endif
#if defined HAVE_CAMV4L
|| defined HAVE_CAMV4L
2 || defined HAVE_VIDEOIO
#if defined HAVE_CAMV4L2 || defined HAVE_VIDEOIO
case
CAP_V4L
:
TRY_OPEN_LEGACY
(
cvCreateCameraCapture_V4L
(
index
))
break
;
...
...
@@ -500,7 +498,7 @@ void VideoCapture_create(CvCapture*& capture, Ptr<IVideoCapture>& icap, VideoCap
default
:
CV_LOG_WARNING
(
NULL
,
"VideoCapture(filename="
<<
filename
<<
") was built without support of requested backendID="
<<
(
int
)
api
);
break
;
#if defined HAVE_CAMV4L
|| defined HAVE_CAMV4L
2 || defined HAVE_VIDEOIO
#if defined HAVE_CAMV4L2 || defined HAVE_VIDEOIO
case
CAP_V4L
:
TRY_OPEN_LEGACY
(
cvCreateCameraCapture_V4L
(
filename
.
c_str
()))
break
;
...
...
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