mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 02:19:12 +08:00
1acadd363b
Implement Camera Multiplexing API * IdideoCapture + two wrong function function waitAny Add errors catcher Stub for Python added. Sifting warnings One test added Two tests for camera and Perf tests added * Perf sync and async tests for waitAny() added, waitAnyInterior() deleted, getDeviceHandle() deleted * Variable OPENCV_TEST_CAMERA_LIST added * Without fps set * ASSERT_FAILED for environment variable * Perf tests is DISABLED_ * --Trailing whitespace * Return false from cap.cpp deleted * Two functions deleted from interface, +range for, +environment variable in test_camera * Space deleted * printf deleted, perror added * CV_WRAP deleted, cv2 cleared from stubs * -- space * default timeout added * @param changed * place of waitAny changed * --whitespace * ++function description * function description changed * revert unused changes * videoio: rework API for VideoCapture::waitAny()
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html
|
|
#include "perf_precomp.hpp"
|
|
|
|
#include "perf_camera.impl.hpp"
|
|
|
|
namespace opencv_test
|
|
{
|
|
using namespace perf;
|
|
|
|
typedef perf::TestBaseWithParam<std::string> VideoCapture_Reading;
|
|
|
|
const string bunny_files[] = {
|
|
"highgui/video/big_buck_bunny.avi",
|
|
"highgui/video/big_buck_bunny.mov",
|
|
"highgui/video/big_buck_bunny.mp4",
|
|
#ifndef 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
|
|
"highgui/video/big_buck_bunny.mpg",
|
|
#endif
|
|
"highgui/video/big_buck_bunny.wmv"
|
|
};
|
|
|
|
PERF_TEST_P(VideoCapture_Reading, ReadFile, testing::ValuesIn(bunny_files) )
|
|
{
|
|
string filename = getDataPath(GetParam());
|
|
|
|
VideoCapture cap;
|
|
|
|
TEST_CYCLE() cap.open(filename);
|
|
|
|
SANITY_CHECK_NOTHING();
|
|
}
|
|
|
|
} // namespace
|