Skip to content

Commit

Permalink
API headers: fixed warnings including from C/eC
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Dec 17, 2024
1 parent 7b9d980 commit 47424c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions libheif/api/libheif/heif_experimental.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ extern "C" {
heif_item_property_type_camera_extrinsic_matrix = heif_fourcc('c', 'm', 'e', 'x')
*/

struct heif_property_camera_intrinsic_matrix;
struct heif_property_camera_extrinsic_matrix;

//LIBHEIF_API
struct heif_error heif_item_get_property_camera_intrinsic_matrix(const struct heif_context* context,
heif_item_id itemId,
Expand Down Expand Up @@ -380,7 +383,7 @@ int heif_is_tai_clock_info_drift_rate_undefined(int32_t drift_rate);
LIBHEIF_API
struct heif_error heif_property_set_clock_info(struct heif_context* ctx,
heif_item_id itemId,
const heif_tai_clock_info* clock,
const struct heif_tai_clock_info* clock,
heif_property_id* out_propertyId);

// The `out_clock` struct passed in needs to have the `version` field set so that this
Expand All @@ -389,7 +392,7 @@ struct heif_error heif_property_set_clock_info(struct heif_context* ctx,
LIBHEIF_API
struct heif_error heif_property_get_clock_info(const struct heif_context* ctx,
heif_item_id itemId,
heif_tai_clock_info* out_clock);
struct heif_tai_clock_info* out_clock);
#endif

struct heif_tai_timestamp_packet
Expand All @@ -411,13 +414,13 @@ struct heif_tai_timestamp_packet
LIBHEIF_API
struct heif_error heif_property_set_tai_timestamp(struct heif_context* ctx,
heif_item_id itemId,
heif_tai_timestamp_packet* timestamp,
struct heif_tai_timestamp_packet* timestamp,
heif_property_id* out_propertyId);

LIBHEIF_API
struct heif_error heif_property_get_tai_timestamp(const struct heif_context* ctx,
heif_item_id itemId,
heif_tai_timestamp_packet* out_timestamp);
struct heif_tai_timestamp_packet* out_timestamp);

#endif

Expand Down
4 changes: 2 additions & 2 deletions libheif/api/libheif/heif_items.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ struct heif_error heif_item_set_item_name(struct heif_context* ctx,
LIBHEIF_API
struct heif_error heif_item_get_item_data(const struct heif_context* ctx,
heif_item_id item_id,
heif_metadata_compression* out_compression_format,
enum heif_metadata_compression* out_compression_format,
uint8_t** out_data, size_t* out_data_size);

/**
Expand Down Expand Up @@ -213,7 +213,7 @@ struct heif_error heif_context_add_item(struct heif_context* ctx,
LIBHEIF_API
struct heif_error heif_context_add_mime_item(struct heif_context* ctx,
const char* content_type,
heif_metadata_compression content_encoding,
enum heif_metadata_compression content_encoding,
const void* data, int size,
heif_item_id* out_item_id);

Expand Down

0 comments on commit 47424c6

Please sign in to comment.