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
d60caea5
Commit
d60caea5
authored
Apr 27, 2012
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test to check #1737
parent
2a391282
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
test_ffmpeg.cpp
modules/highgui/test/test_ffmpeg.cpp
+30
-1
No files found.
modules/highgui/test/test_ffmpeg.cpp
View file @
d60caea5
...
@@ -142,6 +142,35 @@ public:
...
@@ -142,6 +142,35 @@ public:
}
}
};
};
TEST
(
Highgui_Video
,
ffmpeg_writebig
)
{
CV_FFmpegWriteBigVideoTest
test
;
test
.
safe_run
();
}
TEST
(
Highgui_Video
,
ffmpeg_writebig
)
{
CV_FFmpegWriteBigVideoTest
test
;
test
.
safe_run
();
}
class
CV_FFmpegReadImageTest
:
public
cvtest
::
BaseTest
{
public
:
void
run
(
int
)
{
try
{
string
filename
=
ts
->
get_data_path
()
+
"../cv/features2d/tsukuba.png"
;
VideoCapture
cap
(
filename
);
Mat
img0
=
imread
(
filename
,
1
);
Mat
img
,
img_next
;
cap
>>
img
;
cap
>>
img_next
;
CV_Assert
(
!
img0
.
empty
()
&&
!
img
.
empty
()
&&
img_next
.
empty
()
);
double
diff
=
norm
(
img0
,
img
,
CV_C
);
CV_Assert
(
diff
==
0
);
}
catch
(...)
{
ts
->
set_failed_test_info
(
ts
->
FAIL_INVALID_OUTPUT
);
}
ts
->
set_failed_test_info
(
cvtest
::
TS
::
OK
);
}
};
TEST
(
Highgui_Video
,
ffmpeg_image
)
{
CV_FFmpegReadImageTest
test
;
test
.
safe_run
();
}
#endif
#endif
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