Path: blob/master/modules/videoio/perf/perf_input.cpp
16337 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html3#include "perf_precomp.hpp"45#ifdef HAVE_VIDEO_INPUT67namespace opencv_test8{9using namespace perf;1011typedef perf::TestBaseWithParam<std::string> VideoCapture_Reading;1213const string bunny_files[] = {14"highgui/video/big_buck_bunny.avi",15"highgui/video/big_buck_bunny.mov",16"highgui/video/big_buck_bunny.mp4",17#ifndef HAVE_MSMF18// MPEG2 is not supported by Media Foundation yet19// http://social.msdn.microsoft.com/Forums/en-US/mediafoundationdevelopment/thread/39a36231-8c01-40af-9af5-3c105d68442920"highgui/video/big_buck_bunny.mpg",21#endif22"highgui/video/big_buck_bunny.wmv"23};2425PERF_TEST_P(VideoCapture_Reading, ReadFile, testing::ValuesIn(bunny_files) )26{27string filename = getDataPath(GetParam());2829VideoCapture cap;3031TEST_CYCLE() cap.open(filename);3233SANITY_CHECK_NOTHING();34}3536} // namespace3738#endif // HAVE_VIDEO_INPUT394041