Skip to content

Commit

Permalink
vcomp/cmpto_j2k: print used parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Sep 12, 2024
1 parent 0a8467b commit db348ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/video_compress/cmpto_j2k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,14 @@ static bool configure_with(struct state_video_compress_j2k *s, struct video_desc
"Setting MCT",
NOOP);

char rate[100];
snprintf_ch(rate, "%s", s->rate == 0 ? "unset" : format_in_si_units(s->rate));
MSG(INFO,
"Using parameters: quality=%.2f, bitrate=%s, mem_limit=%s, "
"tile_limit=%u, pool_size=%u, mct=%d\n",
s->quality, rate, format_in_si_units(s->mem_limit), s->tile_limit,
s->max_in_frames, mct);

set_pool(s, cuda_convert_func != nullptr);

s->compressed_desc = desc;
Expand Down

0 comments on commit db348ae

Please sign in to comment.