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
34c65987
Commit
34c65987
authored
May 24, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perf test failure fixes for Media Foundation.
parent
2bc1d370
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
perf_input.cpp
modules/highgui/perf/perf_input.cpp
+10
-0
perf_output.cpp
modules/highgui/perf/perf_output.cpp
+10
-4
perf_precomp.hpp
modules/highgui/perf/perf_precomp.hpp
+2
-0
No files found.
modules/highgui/perf/perf_input.cpp
View file @
34c65987
...
...
@@ -11,11 +11,21 @@ using std::tr1::get;
typedef
perf
::
TestBaseWithParam
<
String
>
VideoCapture_Reading
;
#if defined(HAVE_MSMF)
// MPEG2 is not supported by Media Foundation yet
// http://social.msdn.microsoft.com/Forums/en-US/mediafoundationdevelopment/thread/39a36231-8c01-40af-9af5-3c105d684429
PERF_TEST_P
(
VideoCapture_Reading
,
ReadFile
,
testing
::
Values
(
"highgui/video/big_buck_bunny.avi"
,
"highgui/video/big_buck_bunny.mov"
,
"highgui/video/big_buck_bunny.mp4"
,
"highgui/video/big_buck_bunny.wmv"
)
)
#else
PERF_TEST_P
(
VideoCapture_Reading
,
ReadFile
,
testing
::
Values
(
"highgui/video/big_buck_bunny.avi"
,
"highgui/video/big_buck_bunny.mov"
,
"highgui/video/big_buck_bunny.mp4"
,
"highgui/video/big_buck_bunny.mpg"
,
"highgui/video/big_buck_bunny.wmv"
)
)
#endif
{
string
filename
=
getDataPath
(
GetParam
());
...
...
modules/highgui/perf/perf_output.cpp
View file @
34c65987
...
...
@@ -22,10 +22,16 @@ PERF_TEST_P(VideoWriter_Writing, WriteFrame,
{
string
filename
=
getDataPath
(
get
<
0
>
(
GetParam
()));
bool
isColor
=
get
<
1
>
(
GetParam
());
VideoWriter
writer
(
cv
::
tempfile
(
".avi"
),
CV_FOURCC
(
'X'
,
'V'
,
'I'
,
'D'
),
25
,
cv
::
Size
(
640
,
480
),
isColor
);
TEST_CYCLE
()
{
Mat
image
=
imread
(
filename
,
1
);
writer
<<
image
;
}
Mat
image
=
imread
(
filename
,
1
);
#if defined(HAVE_MSMF) && !defined(HAVE_VFW) && !defined(HAVE_FFMPEG) // VFW has greater priority
VideoWriter
writer
(
cv
::
tempfile
(
".wmv"
),
CV_FOURCC
(
'W'
,
'M'
,
'V'
,
'3'
),
25
,
cv
::
Size
(
image
.
cols
,
image
.
rows
),
isColor
);
#else
VideoWriter
writer
(
cv
::
tempfile
(
".avi"
),
CV_FOURCC
(
'X'
,
'V'
,
'I'
,
'D'
),
25
,
cv
::
Size
(
image
.
cols
,
image
.
rows
),
isColor
);
#endif
TEST_CYCLE
()
{
image
=
imread
(
filename
,
1
);
writer
<<
image
;
}
bool
dummy
=
writer
.
isOpened
();
SANITY_CHECK
(
dummy
);
...
...
modules/highgui/perf/perf_precomp.hpp
View file @
34c65987
...
...
@@ -21,6 +21,7 @@
defined(HAVE_QUICKTIME) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_FFMPEG) || \
defined(HAVE_MSMF) || \
defined(HAVE_VFW)
/*defined(HAVE_OPENNI) too specialized */
\
...
...
@@ -34,6 +35,7 @@
defined(HAVE_QUICKTIME) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_FFMPEG) || \
defined(HAVE_MSMF) || \
defined(HAVE_VFW)
# define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 1
#else
...
...
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