Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Aug 18, 2024
1 parent 34b2e2c commit a64ff7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/heif_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int main(int argc, char** argv)

heif_image_tiling tiling = heif_image_handle_get_image_tiling(handle);
if (tiling.num_columns > 0) {
printf(" tiles: %lux%lu, tile size: %dx%d\n", tiling.num_columns, tiling.num_rows, tiling.tile_width, tiling.tile_height);
printf(" tiles: %zux%zu, tile size: %dx%d\n", tiling.num_columns, tiling.num_rows, tiling.tile_width, tiling.tile_height);
}

heif_colorspace colorspace;
Expand Down
2 changes: 1 addition & 1 deletion libheif/api/libheif/heif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ struct heif_error heif_image_handle_decode_image_tile(const struct heif_image_ha
enum heif_colorspace colorspace,
enum heif_chroma chroma,
const struct heif_decoding_options* input_options,
uint64_t x0, uint64_t y0, uint64_t z0)
uint32_t x0, uint32_t y0)
{
if (!in_handle) {
return error_null_parameter;
Expand Down
4 changes: 2 additions & 2 deletions libheif/api/libheif/heif.h
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ struct heif_context* heif_image_handle_get_context(const struct heif_image_handl

struct heif_image_tiling
{
uint64_t num_columns;
uint64_t num_columns; // TODO: 32bit or 64bit ???
uint64_t num_rows;
uint32_t tile_width;
uint32_t tile_height;
Expand Down Expand Up @@ -1173,7 +1173,7 @@ struct heif_error heif_image_handle_decode_image_tile(const struct heif_image_ha
enum heif_colorspace colorspace,
enum heif_chroma chroma,
const struct heif_decoding_options* options,
uint64_t x0, uint64_t y0, uint64_t z0);
uint32_t x0, uint32_t y0);

LIBHEIF_API
struct heif_error heif_image_handle_get_tile_size(const struct heif_image_handle* in_handle,
Expand Down

0 comments on commit a64ff7f

Please sign in to comment.