diff --git a/src/utils/video_pattern_generator.cpp b/src/utils/video_pattern_generator.cpp index a6c5bda73..e918ace78 100644 --- a/src/utils/video_pattern_generator.cpp +++ b/src/utils/video_pattern_generator.cpp @@ -334,7 +334,7 @@ class image_pattern_raw : public image_pattern { unique_ptr image_pattern::create(string const &config) { if (config == "help") { cout << "Pattern to use, one of: " << BOLD("bars, blank, ebu_bars, gradient[=0x], gradient2, noise, raw=0xXX[YYZZ..], smpte_bars, 0x\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; } diff --git a/src/video_capture/testcard_common.c b/src/video_capture/testcard_common.c index 7c046a2a5..9942157e3 100644 --- a/src/video_capture/testcard_common.c +++ b/src/video_capture/testcard_common.c @@ -113,7 +113,7 @@ static void toI420(unsigned char *out, const unsigned char *input, int width, in void testcard_convert_buffer(codec_t in_c, codec_t out_c, unsigned char *out, unsigned const char *in, int width, int height) { unsigned char *tmp_buffer = NULL; - if (out_c == I420 || out_c == v210 || out_c == YUYV || out_c == Y216) { + if (out_c == I420 || out_c == YUYV || out_c == Y216) { decoder_t decoder = get_decoder_from_to(in_c, UYVY, true); tmp_buffer = malloc(2L * ((width + 1U) ^ 1U) * height); long in_linesize = vc_get_linesize(width, in_c);