Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API headers: fixed warnings including from C/eC #1429

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading