CLAHE Python bindings
[profile/ivi/opencv.git] / modules / highgui / perf / perf_input.cpp
1 #include "perf_precomp.hpp"
2
3 #if BUILD_WITH_VIDEO_INPUT_SUPPORT
4
5 using namespace std;
6 using namespace cv;
7 using namespace perf;
8 using std::tr1::make_tuple;
9 using std::tr1::get;
10
11
12 typedef perf::TestBaseWithParam<String> VideoCapture_Reading;
13
14 PERF_TEST_P(VideoCapture_Reading, ReadFile, testing::Values( "highgui/video/big_buck_bunny.avi",
15                                                "highgui/video/big_buck_bunny.mov",
16                                                "highgui/video/big_buck_bunny.mp4",
17                                                "highgui/video/big_buck_bunny.mpg",
18                                                "highgui/video/big_buck_bunny.wmv" ) )
19 {
20   string filename = getDataPath(GetParam());
21
22   VideoCapture cap;
23
24   TEST_CYCLE() cap.open(filename);
25
26   bool dummy = cap.isOpened();
27   SANITY_CHECK(dummy);
28 }
29
30 #endif // BUILD_WITH_VIDEO_INPUT_SUPPORT