Skip to content

Commit

Permalink
vcomp/cmpto_j2k: advertise -O j2k-enc-cpu-conv
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MartinPulec committed Sep 12, 2024
1 parent 34b6ffb commit dfda8de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video_compress/cmpto_j2k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ static void usage() {
}
col() << "]";
}
col() << " [--cuda-device <c_index>]\n" << TERM_RESET;
col() << "\n\t\t[--cuda-device <c_index>] [--param " CPU_CONV_PARAM "]\n" << TERM_RESET;

col() << "where:\n";
for(const auto& opt : usage_opts){
Expand All @@ -478,6 +478,10 @@ static void usage() {
col() << " - " << opt.description << "\n";
}
col() << TBOLD("\t<c_index>") << " - 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) \
Expand Down

0 comments on commit dfda8de

Please sign in to comment.