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
467f5fc9
Commit
467f5fc9
authored
Sep 24, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3261 from a-wi:CMake_FFMPEG_config
parents
ad018da2
93d1ceae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
CMakeLists.txt
modules/highgui/CMakeLists.txt
+2
-2
cap.cpp
modules/highgui/src/cap.cpp
+17
-0
No files found.
modules/highgui/CMakeLists.txt
View file @
467f5fc9
...
...
@@ -54,13 +54,11 @@ source_group("Src\\grfmts" FILES ${grfmt_hdrs} ${grfmt_srcs})
set
(
highgui_hdrs
src/precomp.hpp
src/utils.hpp
src/cap_ffmpeg_impl.hpp
)
set
(
highgui_srcs
src/cap.cpp
src/cap_images.cpp
src/cap_ffmpeg.cpp
src/loadsave.cpp
src/utils.cpp
src/window.cpp
...
...
@@ -186,6 +184,8 @@ if(HAVE_XIMEA)
endif
(
HAVE_XIMEA
)
if
(
HAVE_FFMPEG
)
list
(
APPEND highgui_hdrs src/cap_ffmpeg_impl.hpp
)
list
(
APPEND highgui_srcs src/cap_ffmpeg.cpp
)
if
(
UNIX AND BZIP2_LIBRARIES
)
list
(
APPEND HIGHGUI_LIBRARIES
${
BZIP2_LIBRARIES
}
)
endif
()
...
...
modules/highgui/src/cap.cpp
View file @
467f5fc9
...
...
@@ -368,8 +368,10 @@ CV_IMPL CvCapture * cvCreateFileCapture (const char * filename)
{
CvCapture
*
result
=
0
;
#ifdef HAVE_FFMPEG
if
(
!
result
)
result
=
cvCreateFileCapture_FFMPEG_proxy
(
filename
);
#endif
#ifdef HAVE_VFW
if
(
!
result
)
...
...
@@ -426,8 +428,10 @@ CV_IMPL CvVideoWriter* cvCreateVideoWriter( const char* filename, int fourcc,
if
(
!
fourcc
||
!
fps
)
result
=
cvCreateVideoWriter_Images
(
filename
);
#ifdef HAVE_FFMPEG
if
(
!
result
)
result
=
cvCreateVideoWriter_FFMPEG_proxy
(
filename
,
fourcc
,
fps
,
frameSize
,
is_color
);
#endif
#ifdef HAVE_VFW
if
(
!
result
)
...
...
@@ -459,6 +463,19 @@ CV_IMPL CvVideoWriter* cvCreateVideoWriter( const char* filename, int fourcc,
result
=
cvCreateVideoWriter_GStreamer
(
filename
,
fourcc
,
fps
,
frameSize
,
is_color
);
#endif
#if !defined(HAVE_FFMPEG) && \
!defined(HAVE_VFW) && \
!defined(HAVE_MSMF) && \
!defined(HAVE_AVFOUNDATION) && \
!defined(HAVE_QUICKTIME) && \
!defined(HAVE_QTKIT) && \
!defined(HAVE_GSTREAMER)
// If none of the writers is used
// these statements suppress 'unused parameter' warnings.
(
void
)
frameSize
;
(
void
)
is_color
;
#endif
if
(
!
result
)
result
=
cvCreateVideoWriter_Images
(
filename
);
...
...
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