testcard, pattern generator: generate full-depth v210

This commit is contained in:
Martin Pulec
2022-05-06 09:58:36 +02:00
parent be2dd026d3
commit 6aacbccdcf
2 changed files with 3 additions and 3 deletions

View File

@@ -334,7 +334,7 @@ class image_pattern_raw : public image_pattern {
unique_ptr<image_pattern> image_pattern::create(string const &config) {
if (config == "help") {
cout << "Pattern to use, one of: " << BOLD("bars, blank, ebu_bars, gradient[=0x<AABBGGRR>], gradient2, noise, raw=0xXX[YYZZ..], smpte_bars, 0x<AABBGGRR>\n");
cout << "\t\t- patterns 'gradient2' and 'noise' generate full bit-depth patterns with " << BOLD("RG48") << ", " << BOLD("R12L") << " and " << BOLD("R10k\n");
cout << "\t\t- patterns 'gradient2' and 'noise' generate full bit-depth patterns with " << BOLD("RG48") << ", " << BOLD("R12L") << ", " << BOLD("R10k\n") << " and " << BOLD("v210") << "\n";
cout << "\t\t- pattern 'raw' generates repeating sequence of given bytes without any color conversion\n";
cout << "\t\t- pattern 'smpte' uses the top bars from top 2 thirds only (doesn't render bottom third differently)\n";
return {};
@@ -411,7 +411,7 @@ video_pattern_generate(std::string const & config, int width, int height, codec_
auto data = generator->init(width, height, generator_depth::bits8);
codec_t codec_src = RGBA;
if (color_spec == RG48 || color_spec == R12L || color_spec == R10k) {
if (color_spec == RG48 || color_spec == R12L || color_spec == R10k || color_spec == v210) {
data = generator->init(width, height, generator_depth::bits16);
codec_src = RG48;
}