@@ -261,8 +261,17 @@ void show_help(const char* argv0)
261
261
<< " --tiled-image-height # override image height of tiled image\n "
262
262
<< " --tiled-input-x-y usually, the first number in the input tile filename should be the y position.\n "
263
263
<< " With this option, this can be swapped so that the first number is x, the second number y.\n "
264
+ #if HEIF_ENABLE_EXPERIMENTAL_FEATURES || WITH_UNCOMPRESSED_CODEC
265
+ << " --tiling-method METHOD choose one of these methods: grid"
266
+ #if HEIF_ENABLE_EXPERIMENTAL_FEATURES
267
+ " , tili"
268
+ #endif
269
+ #if WITH_UNCOMPRESSED_CODEC
270
+ " , unci"
271
+ #endif
272
+ " . The default is 'grid'.\n "
273
+ #endif
264
274
#if HEIF_ENABLE_EXPERIMENTAL_FEATURES
265
- << " --tiling-method METHOD choose one of these methods: grid, tili, unci. The default is 'grid'.\n "
266
275
<< " --add-pyramid-group when several images are given, put them into a multi-resolution pyramid group.\n "
267
276
<< " \n "
268
277
<< " sequences:\n "
@@ -892,6 +901,7 @@ heif_image_handle* encode_tiled(heif_context* ctx, heif_encoder* encoder, heif_e
892
901
return nullptr ;
893
902
}
894
903
}
904
+ #endif
895
905
else if (tiling_method == " unci" ) {
896
906
heif_unci_image_parameters params{};
897
907
params.version = 1 ;
@@ -903,13 +913,12 @@ heif_image_handle* encode_tiled(heif_context* ctx, heif_encoder* encoder, heif_e
903
913
904
914
InputImage prototype_image = tile_generator->get_image (0 ,0 , output_bit_depth);
905
915
906
- heif_error error = heif_context_add_unci_image (ctx, ¶ms, options, prototype_image.image .get (), &tiled_image);
916
+ heif_error error = heif_context_add_empty_unci_image (ctx, ¶ms, options, prototype_image.image .get (), &tiled_image);
907
917
if (error.code != 0 ) {
908
918
std::cerr << " Could not generate unci image: " << error.message << " \n " ;
909
919
return nullptr ;
910
920
}
911
921
}
912
- #endif
913
922
else {
914
923
assert (false );
915
924
exit (10 );
@@ -1085,8 +1094,9 @@ int main(int argc, char** argv)
1085
1094
case OPTION_TILING_METHOD:
1086
1095
tiling_method = optarg;
1087
1096
if (tiling_method != " grid"
1097
+ && tiling_method != " unci"
1088
1098
#if HEIF_ENABLE_EXPERIMENTAL_FEATURES
1089
- && tiling_method != " tili" && tiling_method != " unci "
1099
+ && tiling_method != " tili"
1090
1100
#endif
1091
1101
) {
1092
1102
std::cerr << " Invalid tiling method '" << tiling_method << " '\n " ;
0 commit comments