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
0dd4386d
Commit
0dd4386d
authored
Mar 21, 2012
by
Alexander Reshetnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated new ffmpeg wrapper; restored NEW_FFMPEG in the root cmake file
parent
41158ab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
CMakeLists.txt
CMakeLists.txt
+3
-3
cap_ffmpeg_impl_v2.hpp
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
+7
-14
No files found.
CMakeLists.txt
View file @
0dd4386d
...
...
@@ -394,9 +394,9 @@ if(UNIX)
endif
()
endif
()
#
if(HAVE_FFMPEG)
#
CHECK_MODULE(libavformat>=52.111.0 NEW_FFMPEG)
#
endif()
if
(
HAVE_FFMPEG
)
CHECK_MODULE
(
libavformat>=52.111.0 NEW_FFMPEG
)
endif
()
if
(
WITH_1394
)
CHECK_MODULE
(
libdc1394-2 HAVE_DC1394_2
)
...
...
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
View file @
0dd4386d
...
...
@@ -545,11 +545,11 @@ bool CvCapture_FFMPEG::reopen()
#endif
AVCodec
*
codec
=
avcodec_find_decoder
(
enc
->
codec_id
);
#if FF_API_AVCODEC_OPEN
avcodec_open
(
enc
,
codec
);
#else
avcodec_open_2
(
enc
,
codec
,
NULL
);
#endif
#if LIBAVCODEC_VERSION_INT >= ((53<<16)+(8<<8)+0)
avcodec_open2
(
enc
,
codec
,
NULL
);
#else
avcodec_open
(
enc
,
codec
);
#endif
video_st
=
ic
->
streams
[
video_stream
];
// reset framenumber to zero
...
...
@@ -742,15 +742,8 @@ bool CvCapture_FFMPEG::retrieveFrame(int, unsigned char** data, int* step, int*
avpicture_fill
((
AVPicture
*
)
&
rgb_picture
,
rgb_picture
.
data
[
0
],
PIX_FMT_RGB24
,
video_st
->
codec
->
width
,
video_st
->
codec
->
height
);
#if LIBAVCODEC_VERSION_INT >= ((52<<16)+(123<<8)+0)
frame
.
width
=
picture
->
width
;
frame
.
height
=
picture
->
height
;
#else
frame
.
width
=
video_st
->
codec
->
width
;
frame
.
height
=
video_st
->
codec
->
height
;
#endif
frame
.
width
=
video_st
->
codec
->
width
;
frame
.
height
=
video_st
->
codec
->
height
;
img_convert_ctx
=
sws_getContext
(
video_st
->
codec
->
width
,
video_st
->
codec
->
height
,
...
...
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