mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 01:39:10 +08:00
Merge pull request #26580 from opencv-pushbot:gitee/alalek/videoio_test_filter_unstable_gstreamer
videoio(test): filter unstable GStreamer tests
This commit is contained in:
commit
646e87c728
@ -47,6 +47,14 @@ public:
|
||||
throw SkipTestException(cv::String("Backend is not available/disabled: ") + cv::videoio_registry::getBackendName(apiPref));
|
||||
if (cvtest::skipUnstableTests && apiPref == CAP_MSMF && (ext == "h264" || ext == "h265" || ext == "mpg"))
|
||||
throw SkipTestException("Unstable MSMF test");
|
||||
#ifdef __linux__
|
||||
if (cvtest::skipUnstableTests && apiPref == CAP_GSTREAMER &&
|
||||
(ext == "avi" || ext == "mkv") &&
|
||||
(video_file.find("MPEG") != std::string::npos))
|
||||
{
|
||||
throw SkipTestException("Unstable GSTREAMER test");
|
||||
}
|
||||
#endif
|
||||
writeVideo();
|
||||
VideoCapture cap;
|
||||
ASSERT_NO_THROW(cap.open(video_file, apiPref));
|
||||
@ -852,6 +860,13 @@ TEST_P(videowriter_acceleration, write)
|
||||
std::string backend_name = cv::videoio_registry::getBackendName(backend);
|
||||
if (!videoio_registry::hasBackend(backend))
|
||||
throw SkipTestException(cv::String("Backend is not available/disabled: ") + backend_name);
|
||||
#ifdef __linux__
|
||||
if (cvtest::skipUnstableTests && backend == CAP_GSTREAMER &&
|
||||
(extension == "mkv") && (codecid == "MPEG"))
|
||||
{
|
||||
throw SkipTestException("Unstable GSTREAMER test");
|
||||
}
|
||||
#endif
|
||||
|
||||
const Size sz(640, 480);
|
||||
const int frameNum = 15;
|
||||
|
Loading…
Reference in New Issue
Block a user