[gimp/gimp-2-10] Updated HEIF plug-in



commit 5d76ae7db2a2c3105b0c62e820fb656a851865ed
Author: Daniel Novomesky <dnovomesky gmail com>
Date:   Thu Dec 17 13:46:09 2020 +0100

    Updated HEIF plug-in
    
    With libheif 1.10, visually lossless export is possible
    for 10/12 bit depths too.

 plug-ins/common/file-heif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index e79419d5f0..43a7650f67 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -1540,8 +1540,8 @@ save_image (GFile                        *file,
   heif_encoder_set_lossless (encoder, params->lossless);
   /* heif_encoder_set_logging_level (encoder, logging_level); */
 
-#if LIBHEIF_HAVE_VERSION(1,9,0)
-  if (params->lossless && params->save_bit_depth == 8)
+#if LIBHEIF_HAVE_VERSION(1,10,0)
+  if (params->lossless)
     {
       err = heif_encoder_set_parameter_string (encoder, "chroma", "444");
       if (err.code != 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]