From cb3618af85dcd4a61f048d0e522aecf0b8030cce Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 15 Aug 2022 16:07:40 +0200 Subject: [PATCH] video pattern generator: list only >8-bit pixfmts List only higher bit-dept pixel formats instead of full to which also 8-bit codecs counted. --- src/utils/video_pattern_generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/video_pattern_generator.cpp b/src/utils/video_pattern_generator.cpp index 3390ca4a3..436cc9f4f 100644 --- a/src/utils/video_pattern_generator.cpp +++ b/src/utils/video_pattern_generator.cpp @@ -566,9 +566,9 @@ video_pattern_generator_create(std::string const & config, int width, int height { if (config == "help") { col() << "Pattern to use, one of: " << TBOLD("bars, blank[=0x], ebu_bars, gradient[=0x], gradient2*, gray, noise, raw=0xXX[YYZZ..], smpte_bars, uv_plane[=]\n"); - col() << "\t\t- patterns " TBOLD("'gradient'") ", " TBOLD("'gradient2'") ", " TBOLD("'noise'") " and " TBOLD("'uv_plane'") " generate full bit-depth patterns with"; + col() << "\t\t- patterns " TBOLD("'gradient'") ", " TBOLD("'gradient2'") ", " TBOLD("'noise'") " and " TBOLD("'uv_plane'") " generate higher bit-depth patterns with"; for (codec_t c = VIDEO_CODEC_FIRST; c != VIDEO_CODEC_COUNT; c = static_cast(static_cast(c) + 1)) { - if (get_decoder_from_to(RG48, c) != NULL) { + if (get_decoder_from_to(RG48, c) != NULL && get_bits_per_component(c) > 8) { col() << " " << TERM_BOLD << get_codec_name(c) << TERM_RESET; } }