videoio: naming MFX tests
This commit is contained in:
parent
45ee8e2532
commit
688aea6bec
@ -144,10 +144,20 @@ TEST_P(videoio_mfx, read_write_raw)
|
|||||||
remove(filename.c_str());
|
remove(filename.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline static std::string videoio_mfx_name_printer(const testing::TestParamInfo<videoio_mfx::ParamType>& info)
|
||||||
|
{
|
||||||
|
std::ostringstream out;
|
||||||
|
const Size sz = get<0>(info.param);
|
||||||
|
const std::string ext = get<2>(info.param);
|
||||||
|
out << sz.width << "x" << sz.height << "x" << get<1>(info.param) << "x" << ext.substr(1, ext.size() - 1);
|
||||||
|
return out.str();
|
||||||
|
}
|
||||||
|
|
||||||
INSTANTIATE_TEST_CASE_P(videoio, videoio_mfx,
|
INSTANTIATE_TEST_CASE_P(videoio, videoio_mfx,
|
||||||
testing::Combine(
|
testing::Combine(
|
||||||
testing::Values(Size(640, 480), Size(638, 478), Size(636, 476), Size(1920, 1080)),
|
testing::Values(Size(640, 480), Size(638, 478), Size(636, 476), Size(1920, 1080)),
|
||||||
testing::Values(1, 30, 100),
|
testing::Values(1, 30, 100),
|
||||||
testing::Values(".mpeg2", ".264", ".265")));
|
testing::Values(".mpeg2", ".264", ".265")),
|
||||||
|
videoio_mfx_name_printer);
|
||||||
|
|
||||||
}} // namespace
|
}} // namespace
|
||||||
|
|||||||
@ -4,6 +4,8 @@
|
|||||||
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
||||||
#define __OPENCV_TEST_PRECOMP_HPP__
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
||||||
|
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include "opencv2/ts.hpp"
|
#include "opencv2/ts.hpp"
|
||||||
#include "opencv2/videoio.hpp"
|
#include "opencv2/videoio.hpp"
|
||||||
#include "opencv2/videoio/registry.hpp"
|
#include "opencv2/videoio/registry.hpp"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user