From dfda8de84200f58d3094d615928517e5824028c4 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 12 Sep 2024 13:33:32 +0200 Subject: [PATCH] vcomp/cmpto_j2k: advertise `-O j2k-enc-cpu-conv` The GPU conversion should be better choice in general. The situation where it can be useful is when the GPU is working hard to manage the compression alone so that deploying on CPU saves some performance for the encoder. --- src/video_compress/cmpto_j2k.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video_compress/cmpto_j2k.cpp b/src/video_compress/cmpto_j2k.cpp index 583f1da34..ef062db33 100644 --- a/src/video_compress/cmpto_j2k.cpp +++ b/src/video_compress/cmpto_j2k.cpp @@ -466,7 +466,7 @@ static void usage() { } col() << "]"; } - col() << " [--cuda-device ]\n" << TERM_RESET; + col() << "\n\t\t[--cuda-device ] [--param " CPU_CONV_PARAM "]\n" << TERM_RESET; col() << "where:\n"; for(const auto& opt : usage_opts){ @@ -478,6 +478,10 @@ static void usage() { col() << " - " << opt.description << "\n"; } col() << TBOLD("\t") << " - CUDA device(s) to use (comma separated)\n"; + col() << TBOLD("\t--param " CPU_CONV_PARAM) + << " - use CPU for pixfmt conversion (useful if GPU\n\t\tis fully " + "occupied by the encoder; an option for decoder exists as " + "well)\n"; } #define ASSIGN_CHECK_VAL(var, str, minval) \