Skip to content

Commit d84f58f

Browse files
committed
heif_enc: disable 'unci' tiling method if not compiled in
1 parent eeda132 commit d84f58f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/heif_enc.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ heif_image_handle* encode_tiled(heif_context* ctx, heif_encoder* encoder, heif_e
902902
}
903903
}
904904
#endif
905+
#if WITH_UNCOMPRESSED_CODEC
905906
else if (tiling_method == "unci") {
906907
heif_unci_image_parameters params{};
907908
params.version = 1;
@@ -919,6 +920,7 @@ heif_image_handle* encode_tiled(heif_context* ctx, heif_encoder* encoder, heif_e
919920
return nullptr;
920921
}
921922
}
923+
#endif
922924
else {
923925
assert(false);
924926
exit(10);
@@ -1094,7 +1096,9 @@ int main(int argc, char** argv)
10941096
case OPTION_TILING_METHOD:
10951097
tiling_method = optarg;
10961098
if (tiling_method != "grid"
1099+
#if WITH_UNCOMPRESSED_CODEC
10971100
&& tiling_method != "unci"
1101+
#endif
10981102
#if HEIF_ENABLE_EXPERIMENTAL_FEATURES
10991103
&& tiling_method != "tili"
11001104
#endif

0 commit comments

Comments
 (0)