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
60a689d2
Commit
60a689d2
authored
Sep 24, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5202 from ilya-lavrenov:gstreamer-v4l2
parents
134a3f16
75fcedf0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+3
-3
cap.cpp
modules/highgui/src/cap.cpp
+4
-2
cap_gstreamer.cpp
modules/highgui/src/cap_gstreamer.cpp
+0
-0
No files found.
cmake/OpenCVFindLibsVideo.cmake
View file @
60a689d2
...
@@ -12,8 +12,8 @@ endif(WITH_VFW)
...
@@ -12,8 +12,8 @@ endif(WITH_VFW)
# --- GStreamer ---
# --- GStreamer ---
ocv_clear_vars
(
HAVE_GSTREAMER
)
ocv_clear_vars
(
HAVE_GSTREAMER
)
# try to find gstreamer 1.x first
# try to find gstreamer 1.x first
if 0.10 was not requested
if
(
WITH_GSTREAMER
)
if
(
WITH_GSTREAMER
AND NOT WITH_GSTREAMER_0_10
)
CHECK_MODULE
(
gstreamer-base-1.0 HAVE_GSTREAMER_BASE
)
CHECK_MODULE
(
gstreamer-base-1.0 HAVE_GSTREAMER_BASE
)
CHECK_MODULE
(
gstreamer-video-1.0 HAVE_GSTREAMER_VIDEO
)
CHECK_MODULE
(
gstreamer-video-1.0 HAVE_GSTREAMER_VIDEO
)
CHECK_MODULE
(
gstreamer-app-1.0 HAVE_GSTREAMER_APP
)
CHECK_MODULE
(
gstreamer-app-1.0 HAVE_GSTREAMER_APP
)
...
@@ -29,7 +29,7 @@ if(WITH_GSTREAMER)
...
@@ -29,7 +29,7 @@ if(WITH_GSTREAMER)
set
(
GSTREAMER_PBUTILS_VERSION
${
ALIASOF_gstreamer-pbutils-1.0_VERSION
}
)
set
(
GSTREAMER_PBUTILS_VERSION
${
ALIASOF_gstreamer-pbutils-1.0_VERSION
}
)
endif
()
endif
()
endif
(
WITH_GSTREAMER
)
endif
()
# gstreamer support was requested but could not find gstreamer 1.x,
# gstreamer support was requested but could not find gstreamer 1.x,
# so fallback/try to find gstreamer 0.10
# so fallback/try to find gstreamer 0.10
...
...
modules/highgui/src/cap.cpp
View file @
60a689d2
...
@@ -238,10 +238,12 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
...
@@ -238,10 +238,12 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
#endif
#endif
#ifdef HAVE_GSTREAMER
#ifdef HAVE_GSTREAMER
capture
=
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_V4L2
,
0
);
capture
=
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_V4L2
,
reinterpret_cast
<
char
*>
(
index
));
if
(
capture
)
if
(
capture
)
return
capture
;
return
capture
;
capture
=
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_V4L
,
0
);
capture
=
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_V4L
,
reinterpret_cast
<
char
*>
(
index
));
if
(
capture
)
if
(
capture
)
return
capture
;
return
capture
;
#endif
#endif
...
...
modules/highgui/src/cap_gstreamer.cpp
View file @
60a689d2
This diff is collapsed.
Click to expand it.
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