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
45e18eed
Commit
45e18eed
authored
Nov 30, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7751 from sim642:capture-pref-v4l
parents
c47267ef
6c524e84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cap.cpp
modules/videoio/src/cap.cpp
+4
-4
No files found.
modules/videoio/src/cap.cpp
View file @
45e18eed
...
...
@@ -186,11 +186,11 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
#ifdef HAVE_VFW
TRY_OPEN
(
capture
,
cvCreateCameraCapture_VFW
(
index
))
#endif
if
(
pref
)
break
;
// CV_CAP_VFW
#if defined HAVE_LIBV4L || defined HAVE_CAMV4L || defined HAVE_CAMV4L2 || defined HAVE_VIDEOIO
TRY_OPEN
(
capture
,
cvCreateCameraCapture_V4L
(
index
))
#endif
if
(
pref
)
break
;
// CV_CAP_VFW
#ifdef HAVE_GSTREAMER
TRY_OPEN
(
capture
,
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_V4L2
,
reinterpret_cast
<
char
*>
(
index
)))
...
...
@@ -302,15 +302,15 @@ CV_IMPL CvCapture * cvCreateFileCaptureWithPreference (const char * filename, in
if
(
apiPreference
)
break
;
#endif
#ifdef HAVE_VFW
case
CV_CAP_VFW
:
#ifdef HAVE_VFW
TRY_OPEN
(
result
,
cvCreateFileCapture_VFW
(
filename
))
if
(
apiPreference
)
break
;
#endif
#if defined HAVE_LIBV4L || defined HAVE_CAMV4L || defined HAVE_CAMV4L2 || defined HAVE_VIDEOIO
TRY_OPEN
(
result
,
cvCreateCameraCapture_V4L
(
filename
))
if
(
apiPreference
)
break
;
#endif
if
(
apiPreference
)
break
;
case
CV_CAP_MSMF
:
#ifdef HAVE_MSMF
...
...
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