Commit 81b09baa for libheif
commit 81b09baa38ac8654d34d0f8b7780c44addfc7893
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Sun Dec 28 23:30:40 2025 +0100
last released heif_decoding_options struct was version 7, we only have to increase to 8
diff --git a/libheif/api/libheif/heif_decoding.cc b/libheif/api/libheif/heif_decoding.cc
index 6f0b2cd3..23ffa9b4 100644
--- a/libheif/api/libheif/heif_decoding.cc
+++ b/libheif/api/libheif/heif_decoding.cc
@@ -43,7 +43,7 @@ int heif_have_decoder_for_format(heif_compression_format format)
static void fill_default_decoding_options(heif_decoding_options& options)
{
- options.version = 10;
+ options.version = 8;
options.ignore_transformations = false;
@@ -82,13 +82,7 @@ static void fill_default_decoding_options(heif_decoding_options& options)
// version 8
options.ignore_sequence_editlist = false;
-
- // version 9
-
options.output_image_nclx_profile = nullptr;
-
- // version 10
-
options.num_codec_threads = 0;
options.num_library_threads = 0;
}
@@ -115,14 +109,10 @@ void heif_decoding_options_copy(heif_decoding_options* dst,
int min_version = std::min(dst->version, src->version);
switch (min_version) {
- case 10:
+ case 8:
dst->num_library_threads = src->num_library_threads;
dst->num_codec_threads = src->num_codec_threads;
- [[fallthrough]];
- case 9:
dst->output_image_nclx_profile = src->output_image_nclx_profile;
- [[fallthrough]];
- case 8:
dst->ignore_sequence_editlist = src->ignore_sequence_editlist;
[[fallthrough]];
case 7:
diff --git a/libheif/api/libheif/heif_decoding.h b/libheif/api/libheif/heif_decoding.h
index cb03383f..26118dec 100644
--- a/libheif/api/libheif/heif_decoding.h
+++ b/libheif/api/libheif/heif_decoding.h
@@ -102,17 +102,13 @@ typedef struct heif_decoding_options
// When set to NULL, default options will be used
heif_color_conversion_options_ext* color_conversion_options_ext;
- // version 8 options
+ // version 8 options (v1.21.0)
// If enabled, it will decode the media timeline, ignoring the sequence tracks edit-list.
int ignore_sequence_editlist; // bool
- // version 9 options
-
heif_color_profile_nclx* output_image_nclx_profile;
- // version 10 options (v1.21.0)
-
int num_library_threads; // 0 = let libheif decide (TODO, currently ignored)
int num_codec_threads; // 0 = use decoder default
} heif_decoding_options;