Commit 42386043 for libheif
commit 42386043accc75060fc058677e8a96917ce4c513
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Fri May 15 02:33:33 2026 +0200
guard mini-format tests
diff --git a/tests/component_descriptions.cc b/tests/component_descriptions.cc
index 61097894..c08b35c5 100644
--- a/tests/component_descriptions.cc
+++ b/tests/component_descriptions.cc
@@ -215,6 +215,12 @@ TEST_CASE("unci with cpat: handle and decoded image agree on component IDs")
}
+// The following three test cases load files in the experimental low-overhead MINI box
+// format (lightning_mini.heif, simple_osm_tile_meta.avif, simple_osm_tile_alpha.avif).
+// The mini box is only parsed when ENABLE_EXPERIMENTAL_MINI_FORMAT is compiled in
+// (consistent with mini_box / mini_decode which are CMake-gated the same way).
+#if ENABLE_EXPERIMENTAL_MINI_FORMAT
+
TEST_CASE("HEVC YUV 4:2:0 component IDs match between handle and decoded image")
{
if (!heif_have_decoder_for_format(heif_compression_HEVC)) {
@@ -371,3 +377,5 @@ TEST_CASE("AVIF with alpha: handle exposes alpha as the 4th component")
check_alpha_handle_matches_decoded_image("simple_osm_tile_alpha.avif",
heif_compression_AV1);
}
+
+#endif // ENABLE_EXPERIMENTAL_MINI_FORMAT