mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #26948 from mshabunin:fix-videoio-test-params
videoio: print test params instead of indexes #26948 _videoio_ test names changed - use string instead of index. E.g. `videoio_read.threads/0` is now `videoio_read.threads/h264_0_RAW`. It allows to filter tests independently of the platform. **Notes:** - not all tests has been updated - only simpler ones and those which have varying parameters depending on platform
This commit is contained in:
@@ -160,8 +160,9 @@ inline static std::string videoio_mfx_name_printer(const testing::TestParamInfo<
|
||||
{
|
||||
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);
|
||||
out << sz.height << "p" << "_"
|
||||
<< get<1>(info.param) << "FPS" << "_"
|
||||
<< extToStringSafe(get<2>(info.param));
|
||||
return out.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user