Commit 6ca6a8d2 authored by Daniel a Simona Novomeská's avatar Daniel a Simona Novomeská Committed by Jehan

HEIF plug-in: ensure max quality for lossless encoding

There is a possible bug in libheif. Lossless setting is not working
when AVIF is saved via rav1e encoder.
This is a workaround of the problem.
parent e341f008
Pipeline #248038 passed with stages
in 44 minutes and 26 seconds
......@@ -1764,6 +1764,13 @@ save_image (GFile *file,
return FALSE;
}
/* workaround for a bug in libheif when heif_encoder_set_lossless is not working
(known problem with encoding via rav1e) */
if (lossless)
{
quality = 100;
}
heif_encoder_set_lossy_quality (encoder, quality);
heif_encoder_set_lossless (encoder, lossless);
/* heif_encoder_set_logging_level (encoder, logging_level); */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment