Skip to content

Commit

Permalink
heif-dec: do not show progress when --quiet is given (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 13, 2024
1 parent 1a7f674 commit 2a764da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/heif_dec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,12 @@ int main(int argc, char** argv)

decode_options->strict_decoding = strict_decoding;
decode_options->decoder_id = decoder_id;
decode_options->start_progress = start_progress;
decode_options->on_progress = on_progress;
decode_options->end_progress = end_progress;

if (!option_quiet) {
decode_options->start_progress = start_progress;
decode_options->on_progress = on_progress;
decode_options->end_progress = end_progress;
}

if (chroma_upsampling=="nearest-neighbor") {
decode_options->color_conversion_options.preferred_chroma_upsampling_algorithm = heif_chroma_upsampling_nearest_neighbor;
Expand Down

0 comments on commit 2a764da

Please sign in to comment.