@@ -18,8 +18,8 @@ diff --git a/libvips/foreign/heifsave.c b/libvips/foreign/heifsave.c
1818index 1111111..2222222 100644
1919--- a/libvips/foreign/heifsave.c
2020+++ b/libvips/foreign/heifsave.c
21- @@ -533 ,20 +533 ,9 @@ vips_foreign_save_heif_build(VipsObject *object)
22- !vips_object_argument_isset(object, "subsample_mode") )
21+ @@ -539 ,20 +539 ,9 @@ vips_foreign_save_heif_build(VipsObject *object)
22+ if (heif->lossless )
2323 heif->subsample_mode = VIPS_FOREIGN_SUBSAMPLE_OFF;
2424
2525- /* Default 12 bit save for 16-bit images.
@@ -41,7 +41,7 @@ index 1111111..2222222 100644
4141 vips_error("heifsave", _("%d-bit colour depth not supported"),
4242 heif->bitdepth);
4343 return -1;
44- @@ -730 ,14 +719 ,10 @@ vips_foreign_save_heif_build(VipsObject *object)
44+ @@ -756 ,14 +745 ,10 @@ vips_foreign_save_heif_build(VipsObject *object)
4545 }
4646
4747 #define UC VIPS_FORMAT_UCHAR
@@ -57,7 +57,7 @@ index 1111111..2222222 100644
5757 };
5858
5959 static void
60- @@ -772 ,7 +757 ,7 @@ vips_foreign_save_heif_class_init(VipsForeignSaveHeifClass *class)
60+ @@ -798 ,7 +783 ,7 @@ vips_foreign_save_heif_class_init(VipsForeignSaveHeifClass *class)
6161 _("Number of bits per pixel"),
6262 VIPS_ARGUMENT_OPTIONAL_INPUT,
6363 G_STRUCT_OFFSET(VipsForeignSaveHeif, bitdepth),
@@ -66,7 +66,7 @@ index 1111111..2222222 100644
6666
6767 VIPS_ARG_BOOL(class, "lossless", 13,
6868 _("Lossless"),
69- @@ -825 ,7 +810 ,7 @@ vips_foreign_save_heif_init(VipsForeignSaveHeif *heif)
69+ @@ -851 ,7 +836 ,7 @@ vips_foreign_save_heif_init(VipsForeignSaveHeif *heif)
7070 {
7171 heif->ctx = heif_context_alloc();
7272 heif->Q = 50;
0 commit comments