Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/videoio/perf/perf_input.cpp
16337 views
1
// This file is part of OpenCV project.
2
// It is subject to the license terms in the LICENSE file found in the top-level directory
3
// of this distribution and at http://opencv.org/license.html
4
#include "perf_precomp.hpp"
5
6
#ifdef HAVE_VIDEO_INPUT
7
8
namespace opencv_test
9
{
10
using namespace perf;
11
12
typedef perf::TestBaseWithParam<std::string> VideoCapture_Reading;
13
14
const string bunny_files[] = {
15
"highgui/video/big_buck_bunny.avi",
16
"highgui/video/big_buck_bunny.mov",
17
"highgui/video/big_buck_bunny.mp4",
18
#ifndef HAVE_MSMF
19
// MPEG2 is not supported by Media Foundation yet
20
// http://social.msdn.microsoft.com/Forums/en-US/mediafoundationdevelopment/thread/39a36231-8c01-40af-9af5-3c105d684429
21
"highgui/video/big_buck_bunny.mpg",
22
#endif
23
"highgui/video/big_buck_bunny.wmv"
24
};
25
26
PERF_TEST_P(VideoCapture_Reading, ReadFile, testing::ValuesIn(bunny_files) )
27
{
28
string filename = getDataPath(GetParam());
29
30
VideoCapture cap;
31
32
TEST_CYCLE() cap.open(filename);
33
34
SANITY_CHECK_NOTHING();
35
}
36
37
} // namespace
38
39
#endif // HAVE_VIDEO_INPUT
40
41