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
4dff974e
Commit
4dff974e
authored
Mar 20, 2012
by
Alexander Reshetnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored new ffmpeg wrapper
parent
d4fb5027
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
cap_ffmpeg_impl_v2.hpp
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
+0
-0
cap_ffmpeg_v2.cpp
modules/highgui/src/cap_ffmpeg_v2.cpp
+13
-13
No files found.
modules/highgui/src/cap_ffmpeg_impl_v2.hpp
View file @
4dff974e
This diff is collapsed.
Click to expand it.
modules/highgui/src/cap_ffmpeg_v2.cpp
View file @
4dff974e
...
@@ -74,17 +74,17 @@ icvInitFFMPEG(void)
...
@@ -74,17 +74,17 @@ icvInitFFMPEG(void)
if
(
icvFFOpenCV
)
if
(
icvFFOpenCV
)
{
{
icvCreateFileCapture_FFMPEG_p
=
icvCreateFileCapture_FFMPEG_p
=
(
CvCreateFileCapture_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvCreateFileCapture_FFMPEG
_2
"
);
(
CvCreateFileCapture_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvCreateFileCapture_FFMPEG"
);
icvReleaseCapture_FFMPEG_p
=
icvReleaseCapture_FFMPEG_p
=
(
CvReleaseCapture_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvReleaseCapture_FFMPEG
_2
"
);
(
CvReleaseCapture_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvReleaseCapture_FFMPEG"
);
icvGrabFrame_FFMPEG_p
=
icvGrabFrame_FFMPEG_p
=
(
CvGrabFrame_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvGrabFrame_FFMPEG
_2
"
);
(
CvGrabFrame_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvGrabFrame_FFMPEG"
);
icvRetrieveFrame_FFMPEG_p
=
icvRetrieveFrame_FFMPEG_p
=
(
CvRetrieveFrame_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvRetrieveFrame_FFMPEG
_2
"
);
(
CvRetrieveFrame_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvRetrieveFrame_FFMPEG"
);
icvSetCaptureProperty_FFMPEG_p
=
icvSetCaptureProperty_FFMPEG_p
=
(
CvSetCaptureProperty_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvSetCaptureProperty_FFMPEG
_2
"
);
(
CvSetCaptureProperty_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvSetCaptureProperty_FFMPEG"
);
icvGetCaptureProperty_FFMPEG_p
=
icvGetCaptureProperty_FFMPEG_p
=
(
CvGetCaptureProperty_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvGetCaptureProperty_FFMPEG
_2
"
);
(
CvGetCaptureProperty_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvGetCaptureProperty_FFMPEG"
);
icvCreateVideoWriter_FFMPEG_p
=
icvCreateVideoWriter_FFMPEG_p
=
(
CvCreateVideoWriter_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvCreateVideoWriter_FFMPEG"
);
(
CvCreateVideoWriter_Plugin
)
GetProcAddress
(
icvFFOpenCV
,
"cvCreateVideoWriter_FFMPEG"
);
icvReleaseVideoWriter_FFMPEG_p
=
icvReleaseVideoWriter_FFMPEG_p
=
...
@@ -112,12 +112,12 @@ icvInitFFMPEG(void)
...
@@ -112,12 +112,12 @@ icvInitFFMPEG(void)
#endif
#endif
}
}
#elif defined HAVE_FFMPEG
#elif defined HAVE_FFMPEG
icvCreateFileCapture_FFMPEG_p
=
(
CvCreateFileCapture_Plugin
)
cvCreateFileCapture_FFMPEG
_2
;
icvCreateFileCapture_FFMPEG_p
=
(
CvCreateFileCapture_Plugin
)
cvCreateFileCapture_FFMPEG
;
icvReleaseCapture_FFMPEG_p
=
(
CvReleaseCapture_Plugin
)
cvReleaseCapture_FFMPEG
_2
;
icvReleaseCapture_FFMPEG_p
=
(
CvReleaseCapture_Plugin
)
cvReleaseCapture_FFMPEG
;
icvGrabFrame_FFMPEG_p
=
(
CvGrabFrame_Plugin
)
cvGrabFrame_FFMPEG
_2
;
icvGrabFrame_FFMPEG_p
=
(
CvGrabFrame_Plugin
)
cvGrabFrame_FFMPEG
;
icvRetrieveFrame_FFMPEG_p
=
(
CvRetrieveFrame_Plugin
)
cvRetrieveFrame_FFMPEG
_2
;
icvRetrieveFrame_FFMPEG_p
=
(
CvRetrieveFrame_Plugin
)
cvRetrieveFrame_FFMPEG
;
icvSetCaptureProperty_FFMPEG_p
=
(
CvSetCaptureProperty_Plugin
)
cvSetCaptureProperty_FFMPEG
_2
;
icvSetCaptureProperty_FFMPEG_p
=
(
CvSetCaptureProperty_Plugin
)
cvSetCaptureProperty_FFMPEG
;
icvGetCaptureProperty_FFMPEG_p
=
(
CvGetCaptureProperty_Plugin
)
cvGetCaptureProperty_FFMPEG
_2
;
icvGetCaptureProperty_FFMPEG_p
=
(
CvGetCaptureProperty_Plugin
)
cvGetCaptureProperty_FFMPEG
;
icvCreateVideoWriter_FFMPEG_p
=
(
CvCreateVideoWriter_Plugin
)
cvCreateVideoWriter_FFMPEG
;
icvCreateVideoWriter_FFMPEG_p
=
(
CvCreateVideoWriter_Plugin
)
cvCreateVideoWriter_FFMPEG
;
icvReleaseVideoWriter_FFMPEG_p
=
(
CvReleaseVideoWriter_Plugin
)
cvReleaseVideoWriter_FFMPEG
;
icvReleaseVideoWriter_FFMPEG_p
=
(
CvReleaseVideoWriter_Plugin
)
cvReleaseVideoWriter_FFMPEG
;
icvWriteFrame_FFMPEG_p
=
(
CvWriteFrame_Plugin
)
cvWriteFrame_FFMPEG
;
icvWriteFrame_FFMPEG_p
=
(
CvWriteFrame_Plugin
)
cvWriteFrame_FFMPEG
;
...
@@ -152,7 +152,7 @@ public:
...
@@ -152,7 +152,7 @@ public:
int
step
=
0
,
width
=
0
,
height
=
0
,
cn
=
0
;
int
step
=
0
,
width
=
0
,
height
=
0
,
cn
=
0
;
if
(
!
ffmpegCapture
||
if
(
!
ffmpegCapture
||
!
icvRetrieveFrame_FFMPEG_p
(
ffmpegCapture
,
&
data
,
&
step
,
&
width
,
&
height
,
&
cn
))
!
icvRetrieveFrame_FFMPEG_p
(
ffmpegCapture
,
&
data
,
&
step
,
&
width
,
&
height
,
&
cn
))
return
0
;
return
0
;
cvInitImageHeader
(
&
frame
,
cvSize
(
width
,
height
),
8
,
cn
);
cvInitImageHeader
(
&
frame
,
cvSize
(
width
,
height
),
8
,
cn
);
cvSetData
(
&
frame
,
data
,
step
);
cvSetData
(
&
frame
,
data
,
step
);
...
...
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