Skip to content

Commit 7693d5e

Browse files
committed
Mark advanced configurations in cudacodecs as unstable as not all GPUs support it.
1 parent 04c05a1 commit 7693d5e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/cudacodec/test/test_video.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,13 @@ CUDA_TEST_P(YUVFormats, Transcode)
10701070
const std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "../highgui/video/big_buck_bunny.h265";
10711071
const cv::cudacodec::ColorFormat writerColorFormat = static_cast<cudacodec::ColorFormat>(static_cast<int>(GET_PARAM(1)));
10721072
const bool fullRange = GET_PARAM(2);
1073+
1074+
if (cvtest::skipUnstableTests &&
1075+
(writerColorFormat == cudacodec::ColorFormat::NV_YUV444 || writerColorFormat == cudacodec::ColorFormat::NV_YUV444_10BIT))
1076+
{
1077+
throw SkipTestException("Not all GPUs support NV_YUV444 and NV_YUV444_10BIT color space");
1078+
}
1079+
10731080
constexpr double fps = 25;
10741081
const cudacodec::Codec codec = cudacodec::Codec::HEVC;
10751082
const std::string ext = ".mp4";

0 commit comments

Comments
 (0)