packages feed

libheif-hs-0.1.0.0: src-native/Codec/HEIF/Bindings/Generated/Unsafe.hs

{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}

module Codec.HEIF.Bindings.Generated.Unsafe
    ( Codec.HEIF.Bindings.Generated.Unsafe.heif_get_version
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_version_number
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_version_number_major
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_version_number_minor
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_version_number_maintenance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_string_release
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_init
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_deinit
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_load_plugin
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_load_plugins
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_unload_plugin
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_plugin_directories
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_free_plugin_directories
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_register_decoder_plugin
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_register_encoder_plugin
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_register_decoder
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_colorspace
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_chroma_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_width
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_height
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_primary_width
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_primary_height
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_crop
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_extract_area
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_bits_per_pixel_range
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_has_channel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_plane_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_plane
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_plane_readonly2
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_plane2
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_scale_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_extend_to_size_fill_with_zero
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_decoding_warnings
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_add_decoding_warning
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_release
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_create
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_add_plane
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_add_plane_safe
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_is_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_extend_padding_to_size
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_color_conversion_options_set_defaults
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_color_conversion_options_ext_alloc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_color_conversion_options_ext_copy
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_color_conversion_options_ext_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_color_profile_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_raw_color_profile_size
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_nclx_color_profile_set_color_primaries
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_nclx_color_profile_set_transfer_characteristics
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_nclx_color_profile_set_matrix_coefficients
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_nclx_color_profile_alloc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_nclx_color_profile_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_color_profile_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_raw_color_profile_size
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_has_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_content_light_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_has_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_has_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_has_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_mastering_display_colour_volume_decode
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_read_main_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_read_minor_version_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_fourcc_to_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_brand_to_fourcc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_has_compatible_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_list_compatible_brands
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_free_list_of_compatible_brands
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_file_mime_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_check_filetype
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_has_compatible_filetype
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_check_jpeg_filetype
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_main_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_metadata_compression_method_supported
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_metadata_blocks
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_list_of_metadata_block_IDs
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_metadata_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_metadata_content_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_metadata_size
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_metadata
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_metadata_item_uri_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_exif_metadata
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_XMP_metadata
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_XMP_metadata2
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_generic_metadata
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_generic_uri_metadata
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_depth_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_depth_images
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_list_of_depth_image_IDs
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_depth_image_handle
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_depth_representation_info_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_depth_image_representation_info
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_thumbnails
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_list_of_thumbnail_IDs
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_thumbnail
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_encode_thumbnail
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_assign_thumbnail
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_auxiliary_images
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_list_of_auxiliary_image_IDs
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_auxiliary_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_release_auxiliary_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_auxiliary_image_handle
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_free_auxiliary_types
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_entity_groups
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_entity_groups_release
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_global_security_limits
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_disabled_security_limits
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_security_limits
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_security_limits
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_maximum_image_size_limit
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_alloc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_read_from_file
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_read_from_memory
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_read_from_memory_without_copy
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_read_from_reader
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_number_of_top_level_images
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_is_top_level_image_ID
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_list_of_top_level_image_IDs
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_primary_image_ID
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_primary_image_handle
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_image_handle
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_debug_dump_boxes_to_file
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_write_mini_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_write_to_file
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_write
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_have_encoder_for_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_encoder_descriptors
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_get_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_get_id_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_get_compression_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_supports_lossy_compression
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_supports_lossless_compression
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_encoder
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_encoder_for_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_release
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_get_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_lossy_quality
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_lossless
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_logging_level
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_list_parameters
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_get_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_get_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_get_valid_integer_range
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_get_valid_integer_values
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_get_valid_string_values
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_parameter_integer
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_get_parameter_integer
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_integer_valid_range
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_parameter_boolean
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_get_parameter_boolean
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_parameter_string
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_get_parameter_string
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_string_valid_values
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_parameter_integer_valid_values
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_set_parameter
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_get_parameter
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_has_default
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_orientation_concat
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoding_options_alloc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoding_options_copy
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoding_options_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_encode_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_overlay_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_primary_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_major_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_compatible_brand
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_unif
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_supportes_lossy_compression
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_encoder_descriptor_supportes_lossless_compression
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_encoder_descriptors
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_set_max_decoding_threads
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_get_max_decoding_threads
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_have_decoder_for_format
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decoding_options_alloc
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decoding_options_copy
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decoding_options_free
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_get_decoder_descriptors
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decoder_descriptor_get_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decoder_descriptor_get_id_name
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_decode_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_release
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_is_primary_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_item_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_width
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_height
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_alpha_channel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_is_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_luma_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_chroma_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_preferred_decoding_colorspace
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_ispe_width
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_ispe_height
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_context
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_gimi_content_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_gimi_content_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_cmpd_components
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_cmpd_component_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_cmpd_component_type_uri
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_has_gimi_component_content_ids
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_image_tiling
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_grid_image_tile_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_decode_image_tile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_encode_grid
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_grid_image
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_context_add_image_tile
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_number_of_used_components
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_used_component_ids
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_channel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_width
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_height
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_datatype
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_number_of_components
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_used_component_ids
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_component_type
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_component_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_component_datatype
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_add_component
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint16_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint16
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint32_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint32
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint64_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_uint64
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int8_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int8
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int16_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int16
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int32_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int32
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int64_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_int64
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_float32_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_float32
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_float64_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_float64
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_complex32_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_complex32
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_complex64_readonly
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_component_complex64
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_get_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_handle_set_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_get_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Unsafe.heif_image_set_omaf_image_projection
    )
  where

import qualified HsBindgen.Runtime.ConstantArray as CA
import qualified HsBindgen.Runtime.IsArray as IsA
import qualified HsBindgen.Runtime.LibC
import qualified HsBindgen.Runtime.PtrConst as PtrConst
import qualified HsBindgen.Runtime.Support as BG
import qualified HsBindgen.Runtime.Support.CAPI
import Codec.HEIF.Bindings.Generated

$(HsBindgen.Runtime.Support.CAPI.addCSource (HsBindgen.Runtime.Support.CAPI.unlines
  [ "#include <libheif/heif.h>"
  , "char const *hs_bindgen_e3bffa314a90058b (void)"
  , "{"
  , "  return (heif_get_version)();"
  , "}"
  , "uint32_t hs_bindgen_5ac80c1443aa4448 (void)"
  , "{"
  , "  return (heif_get_version_number)();"
  , "}"
  , "signed int hs_bindgen_55e4521e93626126 (void)"
  , "{"
  , "  return (heif_get_version_number_major)();"
  , "}"
  , "signed int hs_bindgen_145a4f240219e0a9 (void)"
  , "{"
  , "  return (heif_get_version_number_minor)();"
  , "}"
  , "signed int hs_bindgen_58fbe8d31194675b (void)"
  , "{"
  , "  return (heif_get_version_number_maintenance)();"
  , "}"
  , "void hs_bindgen_5305381a834858f6 ("
  , "  char const *arg1"
  , ")"
  , "{"
  , "  (heif_string_release)(arg1);"
  , "}"
  , "void hs_bindgen_c6cf67a7df25bdec ("
  , "  heif_init_params *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_init)(arg1);"
  , "}"
  , "void hs_bindgen_e1615a4fb170ecfe (void)"
  , "{"
  , "  (heif_deinit)();"
  , "}"
  , "void hs_bindgen_7e4ae8064e7fa414 ("
  , "  char const *arg1,"
  , "  heif_plugin_info const **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_load_plugin)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8d1c6ca731acead9 ("
  , "  char const *arg1,"
  , "  heif_plugin_info const **arg2,"
  , "  signed int *arg3,"
  , "  signed int arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_load_plugins)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_538500d1fad0b893 ("
  , "  heif_plugin_info const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_unload_plugin)(arg1);"
  , "}"
  , "char const *const *hs_bindgen_9ed471f495e48c49 (void)"
  , "{"
  , "  return (heif_get_plugin_directories)();"
  , "}"
  , "void hs_bindgen_9d2405417393e657 ("
  , "  char const *const *arg1"
  , ")"
  , "{"
  , "  (heif_free_plugin_directories)(arg1);"
  , "}"
  , "void hs_bindgen_835dc3bcc6b1f285 ("
  , "  heif_decoder_plugin const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_register_decoder_plugin)(arg1);"
  , "}"
  , "void hs_bindgen_12b9be4adedf03bd ("
  , "  heif_encoder_plugin const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_register_encoder_plugin)(arg1);"
  , "}"
  , "void hs_bindgen_5f60338dadf21f69 ("
  , "  heif_context *arg1,"
  , "  heif_decoder_plugin const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_register_decoder)(arg1, arg2);"
  , "}"
  , "heif_colorspace hs_bindgen_6eefe02d29f57a47 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_colorspace)(arg1);"
  , "}"
  , "heif_chroma hs_bindgen_53faf2b1fc8a2156 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_chroma_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_e633bfc0672b32e7 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_width)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_c0cbbfe9b797da51 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_height)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_c79ddf7426928ec2 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_primary_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_fc1202e0c5cd3d09 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_primary_height)(arg1);"
  , "}"
  , "void hs_bindgen_298d1d9ee3c4f3f2 ("
  , "  heif_image *arg1,"
  , "  signed int arg2,"
  , "  signed int arg3,"
  , "  signed int arg4,"
  , "  signed int arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_image_crop)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_9fd687f6d6aa62dc ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3,"
  , "  uint32_t arg4,"
  , "  uint32_t arg5,"
  , "  heif_security_limits const *arg6,"
  , "  heif_image **arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_image_extract_area)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "signed int hs_bindgen_4c57056151b51120 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_740f2cdd311ad0b7 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_bits_per_pixel_range)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_682212294f338906 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_has_channel)(arg1, arg2);"
  , "}"
  , "uint8_t const *hs_bindgen_5037c6505fb52d39 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2,"
  , "  signed int *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_1f037f5c1d43593b ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  signed int *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t const *hs_bindgen_f7454f02bed93ef8 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane_readonly2)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_4a13b7033c17548d ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane2)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_cd8be1577d7b3a2b ("
  , "  heif_image const *arg1,"
  , "  heif_image **arg2,"
  , "  signed int arg3,"
  , "  signed int arg4,"
  , "  heif_scaling_options const *arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_image_scale_image)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_f994012d02172f02 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_extend_to_size_fill_with_zero)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_591b95f3625fb1f3 ("
  , "  heif_image *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3,"
  , "  signed int arg4"
  , ")"
  , "{"
  , "  return (heif_image_get_decoding_warnings)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_e0050d3b1bf5d002 ("
  , "  heif_image *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  (heif_image_add_decoding_warning)(arg1, *arg2);"
  , "}"
  , "void hs_bindgen_f8b0209a7ec37965 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  (heif_image_release)(arg1);"
  , "}"
  , "void hs_bindgen_58b6b25baf69f6bb ("
  , "  heif_image const *arg1,"
  , "  uint32_t *arg2,"
  , "  uint32_t *arg3"
  , ")"
  , "{"
  , "  (heif_image_get_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_64ef88c5f4227050 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3"
  , ")"
  , "{"
  , "  (heif_image_set_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_1021dce469e1b127 ("
  , "  heif_image_handle *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3"
  , ")"
  , "{"
  , "  (heif_image_handle_set_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_e6de35774b2629f8 ("
  , "  signed int arg1,"
  , "  signed int arg2,"
  , "  heif_colorspace arg3,"
  , "  heif_chroma arg4,"
  , "  heif_image **arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_image_create)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_ded84e4fb2693ccb ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  signed int arg3,"
  , "  signed int arg4,"
  , "  signed int arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_image_add_plane)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_14c07f3c95c4d2a1 ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  signed int arg3,"
  , "  signed int arg4,"
  , "  signed int arg5,"
  , "  heif_security_limits const *arg6,"
  , "  heif_error *arg7"
  , ")"
  , "{"
  , "  *arg7 = (heif_image_add_plane_safe)(arg1, arg2, arg3, arg4, arg5, arg6);"
  , "}"
  , "void hs_bindgen_0cb37fdfaf80d23d ("
  , "  heif_image *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_image_set_premultiplied_alpha)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_95281e4bf5195e90 ("
  , "  heif_image *arg1"
  , ")"
  , "{"
  , "  return (heif_image_is_premultiplied_alpha)(arg1);"
  , "}"
  , "void hs_bindgen_e7bd2b9f79bce485 ("
  , "  heif_image *arg1,"
  , "  signed int arg2,"
  , "  signed int arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_extend_padding_to_size)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_fa886f69180c9b13 ("
  , "  heif_color_conversion_options *arg1"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_set_defaults)(arg1);"
  , "}"
  , "heif_color_conversion_options_ext *hs_bindgen_3498384f565db0bf (void)"
  , "{"
  , "  return (heif_color_conversion_options_ext_alloc)();"
  , "}"
  , "void hs_bindgen_a5a41101b51031e5 ("
  , "  heif_color_conversion_options_ext *arg1,"
  , "  heif_color_conversion_options_ext const *arg2"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_ext_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_b151c814d468583c ("
  , "  heif_color_conversion_options_ext *arg1"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_ext_free)(arg1);"
  , "}"
  , "heif_color_profile_type hs_bindgen_3d62c61f9da0c21f ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_color_profile_type)(arg1);"
  , "}"
  , "size_t hs_bindgen_e524b9c333f3e6f9 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_raw_color_profile_size)(arg1);"
  , "}"
  , "void hs_bindgen_df7ddd74d35a1d70 ("
  , "  heif_image_handle const *arg1,"
  , "  void *arg2,"
  , "  struct heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_handle_get_raw_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_9bd2c76f24a46069 ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_color_primaries)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_55f3e8ab84a6b8ef ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_transfer_characteristics)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8e5fd31a41ae1cdd ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_matrix_coefficients)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8546dd13ed062f1c ("
  , "  heif_image_handle const *arg1,"
  , "  heif_color_profile_nclx **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_handle_get_nclx_color_profile)(arg1, arg2);"
  , "}"
  , "heif_color_profile_nclx *hs_bindgen_ae248e74768fcbe7 (void)"
  , "{"
  , "  return (heif_nclx_color_profile_alloc)();"
  , "}"
  , "void hs_bindgen_e5cdf6772bff08ab ("
  , "  heif_color_profile_nclx *arg1"
  , ")"
  , "{"
  , "  (heif_nclx_color_profile_free)(arg1);"
  , "}"
  , "heif_color_profile_type hs_bindgen_698c659a583ecfcf ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_color_profile_type)(arg1);"
  , "}"
  , "size_t hs_bindgen_899b31b8f4d0b139 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_raw_color_profile_size)(arg1);"
  , "}"
  , "void hs_bindgen_dd6958f1991911be ("
  , "  heif_image const *arg1,"
  , "  void *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_get_raw_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_066842cfad9d7788 ("
  , "  heif_image const *arg1,"
  , "  heif_color_profile_nclx **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_get_nclx_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_e39706130308fb22 ("
  , "  heif_image *arg1,"
  , "  char const *arg2,"
  , "  void const *arg3,"
  , "  size_t const arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_image_set_raw_color_profile)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_c4e7050d9db10e9a ("
  , "  heif_image *arg1,"
  , "  heif_color_profile_nclx const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_set_nclx_color_profile)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_be6ee6da0546d110 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_content_light_level)(arg1);"
  , "}"
  , "signed int hs_bindgen_d7e2ebf32ac53fac ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_content_light_level)(arg1);"
  , "}"
  , "void hs_bindgen_9d82218a99d2d392 ("
  , "  heif_image const *arg1,"
  , "  heif_content_light_level *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_content_light_level)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_b6298e4a5fe44f46 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_content_light_level *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_content_light_level)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_1b896f9f9ad9433d ("
  , "  heif_image const *arg1,"
  , "  heif_content_light_level const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_content_light_level)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_0fe67c68b9c30832 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_content_light_level const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_content_light_level)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_082b5ffbdb05d279 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_mastering_display_colour_volume)(arg1);"
  , "}"
  , "signed int hs_bindgen_fbcaca522f00d549 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_mastering_display_colour_volume)(arg1);"
  , "}"
  , "void hs_bindgen_26de052b332f6318 ("
  , "  heif_image const *arg1,"
  , "  heif_mastering_display_colour_volume *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_e82eb51924715179 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_mastering_display_colour_volume *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_ffad573ff1d2e1b4 ("
  , "  heif_image const *arg1,"
  , "  heif_mastering_display_colour_volume const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_e55ed00c652e3fea ("
  , "  heif_image_handle const *arg1,"
  , "  heif_mastering_display_colour_volume const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_d6b8dd7ef6008c82 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_ambient_viewing_environment)(arg1);"
  , "}"
  , "signed int hs_bindgen_e0f6f90369de190f ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_ambient_viewing_environment)(arg1);"
  , "}"
  , "signed int hs_bindgen_03f4b4f3734ca3eb ("
  , "  heif_image const *arg1,"
  , "  heif_ambient_viewing_environment *arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_dd1f30e9a69dbd49 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_ambient_viewing_environment *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_81030adb575665fe ("
  , "  heif_image const *arg1,"
  , "  heif_ambient_viewing_environment const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_13c2a075b1cf7bd8 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_ambient_viewing_environment const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_7dd186fbfd6b464a ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "uint32_t hs_bindgen_edcedf5e2ff9fd31 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "void hs_bindgen_a37f8bb02787e019 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  (heif_image_set_nominal_diffuse_white_luminance)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_11ca3842cb553804 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "uint32_t hs_bindgen_24cee4290ffa0920 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "void hs_bindgen_4e00c9ca70a6fd07 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_nominal_diffuse_white_luminance)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_9c0e93af53ba356a ("
  , "  heif_mastering_display_colour_volume const *arg1,"
  , "  heif_decoded_mastering_display_colour_volume *arg2,"
  , "  struct heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_mastering_display_colour_volume_decode)(arg1, arg2);"
  , "}"
  , "heif_brand2 hs_bindgen_cb3b0a44d4aad6a4 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_read_main_brand)(arg1, arg2);"
  , "}"
  , "heif_brand2 hs_bindgen_46a8a8e54f91d91a ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_read_minor_version_brand)(arg1, arg2);"
  , "}"
  , "heif_brand2 hs_bindgen_ec7439ef34aa82ca ("
  , "  char const *arg1"
  , ")"
  , "{"
  , "  return (heif_fourcc_to_brand)(arg1);"
  , "}"
  , "void hs_bindgen_f3063904ab900b28 ("
  , "  heif_brand2 arg1,"
  , "  char *arg2"
  , ")"
  , "{"
  , "  (heif_brand_to_fourcc)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_f9382ea7accf2318 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2,"
  , "  char const *arg3"
  , ")"
  , "{"
  , "  return (heif_has_compatible_brand)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_db37863ff0bc30e9 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2,"
  , "  heif_brand2 **arg3,"
  , "  signed int *arg4,"
  , "  struct heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_list_compatible_brands)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_0bf00e8ab2fd5553 ("
  , "  heif_brand2 *arg1"
  , ")"
  , "{"
  , "  (heif_free_list_of_compatible_brands)(arg1);"
  , "}"
  , "char const *hs_bindgen_083f69c89da808ac ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_get_file_mime_type)(arg1, arg2);"
  , "}"
  , "enum heif_filetype_result hs_bindgen_2c11695134f8ae7a ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_check_filetype)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_2e7bbe04a9324a3c ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_has_compatible_filetype)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_38f46e68912e8abc ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_check_jpeg_filetype)(arg1, arg2);"
  , "}"
  , "enum heif_brand hs_bindgen_fdd065dc05fa657e ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_main_brand)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_99b5ad50a3519f42 ("
  , "  enum heif_metadata_compression arg1"
  , ")"
  , "{"
  , "  return (heif_metadata_compression_method_supported)(arg1);"
  , "}"
  , "signed int hs_bindgen_ed1b3c7730ce9adc ("
  , "  heif_image_handle const *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_metadata_blocks)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_ff545c340ebcc9e1 ("
  , "  heif_image_handle const *arg1,"
  , "  char const *arg2,"
  , "  heif_item_id *arg3,"
  , "  signed int arg4"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_list_of_metadata_block_IDs)(arg1, arg2, arg3, arg4);"
  , "}"
  , "char const *hs_bindgen_5b79154e3bf116be ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_type)(arg1, arg2);"
  , "}"
  , "char const *hs_bindgen_93d17d0350046b0f ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_content_type)(arg1, arg2);"
  , "}"
  , "size_t hs_bindgen_e0031552d6b50a40 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_size)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_bf83eab617592597 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2,"
  , "  void *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_metadata)(arg1, arg2, arg3);"
  , "}"
  , "char const *hs_bindgen_2bda88c8a294819f ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_item_uri_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8cc5bc61773d6f99 ("
  , "  heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  void const *arg3,"
  , "  signed int arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_context_add_exif_metadata)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_43ab7c8e6e51b6f6 ("
  , "  heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  void const *arg3,"
  , "  signed int arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_context_add_XMP_metadata)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_690fe9f2d3331fbe ("
  , "  heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  void const *arg3,"
  , "  signed int arg4,"
  , "  enum heif_metadata_compression arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_context_add_XMP_metadata2)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_43798e780a11e8ae ("
  , "  heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  void const *arg3,"
  , "  signed int arg4,"
  , "  char const *arg5,"
  , "  char const *arg6,"
  , "  heif_error *arg7"
  , ")"
  , "{"
  , "  *arg7 = (heif_context_add_generic_metadata)(arg1, arg2, arg3, arg4, arg5, arg6);"
  , "}"
  , "void hs_bindgen_6f6e7853ece6bfaf ("
  , "  heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  void const *arg3,"
  , "  signed int arg4,"
  , "  char const *arg5,"
  , "  heif_item_id *arg6,"
  , "  heif_error *arg7"
  , ")"
  , "{"
  , "  *arg7 = (heif_context_add_generic_uri_metadata)(arg1, arg2, arg3, arg4, arg5, arg6);"
  , "}"
  , "signed int hs_bindgen_ef96d03b5ecf889c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_depth_image)(arg1);"
  , "}"
  , "signed int hs_bindgen_4c02e1b7273148ce ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_depth_images)(arg1);"
  , "}"
  , "signed int hs_bindgen_46dac6a04d58d802 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id *arg2,"
  , "  signed int arg3"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_list_of_depth_image_IDs)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_530a9c047a8545b8 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2,"
  , "  heif_image_handle **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_depth_image_handle)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_029d797a2655b5de ("
  , "  heif_depth_representation_info const *arg1"
  , ")"
  , "{"
  , "  (heif_depth_representation_info_free)(arg1);"
  , "}"
  , "signed int hs_bindgen_a73687120cab3c71 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2,"
  , "  heif_depth_representation_info const **arg3"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_depth_image_representation_info)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_3b94607899266366 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_thumbnails)(arg1);"
  , "}"
  , "signed int hs_bindgen_12436f324557ab0b ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id *arg2,"
  , "  signed int arg3"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_list_of_thumbnail_IDs)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_cbd2548e91d4b099 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2,"
  , "  heif_image_handle **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_thumbnail)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_d7fa83d73e654632 ("
  , "  heif_context *arg1,"
  , "  heif_image const *arg2,"
  , "  heif_image_handle const *arg3,"
  , "  heif_encoder *arg4,"
  , "  heif_encoding_options const *arg5,"
  , "  signed int arg6,"
  , "  heif_image_handle **arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_context_encode_thumbnail)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "void hs_bindgen_b6b843db159f83b1 ("
  , "  struct heif_context *arg1,"
  , "  heif_image_handle const *arg2,"
  , "  heif_image_handle const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_assign_thumbnail)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_a07388633c39d124 ("
  , "  heif_image_handle const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_auxiliary_images)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_7826be70e6d91574 ("
  , "  heif_image_handle const *arg1,"
  , "  signed int arg2,"
  , "  heif_item_id *arg3,"
  , "  signed int arg4"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_list_of_auxiliary_image_IDs)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_f6bf51713dbde24e ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_handle_get_auxiliary_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_03aca62850d5d65f ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_release_auxiliary_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_38168275ff826772 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2,"
  , "  heif_image_handle **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_auxiliary_image_handle)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_6f5a921cd33ac8ee ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_free_auxiliary_types)(arg1, arg2);"
  , "}"
  , "heif_entity_group *hs_bindgen_ae6bb46cb10ef49b ("
  , "  heif_context const *arg1,"
  , "  uint32_t arg2,"
  , "  heif_item_id arg3,"
  , "  signed int *arg4"
  , ")"
  , "{"
  , "  return (heif_context_get_entity_groups)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_ccbaf41a25b5fc17 ("
  , "  heif_entity_group *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_entity_groups_release)(arg1, arg2);"
  , "}"
  , "heif_security_limits const *hs_bindgen_0bd62767a85d72e4 (void)"
  , "{"
  , "  return (heif_get_global_security_limits)();"
  , "}"
  , "heif_security_limits const *hs_bindgen_1898bc2f36224985 (void)"
  , "{"
  , "  return (heif_get_disabled_security_limits)();"
  , "}"
  , "heif_security_limits *hs_bindgen_2a5ca5c742b8d454 ("
  , "  heif_context const *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_security_limits)(arg1);"
  , "}"
  , "void hs_bindgen_8ac69b76d966cf30 ("
  , "  heif_context *arg1,"
  , "  heif_security_limits const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_set_security_limits)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_63f91ddf3fdf9157 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_maximum_image_size_limit)(arg1, arg2);"
  , "}"
  , "heif_context *hs_bindgen_5072fed60822f439 (void)"
  , "{"
  , "  return (heif_context_alloc)();"
  , "}"
  , "void hs_bindgen_d4224d2b144531cf ("
  , "  heif_context *arg1"
  , ")"
  , "{"
  , "  (heif_context_free)(arg1);"
  , "}"
  , "void hs_bindgen_6a121ee485ba22bf ("
  , "  heif_context *arg1,"
  , "  char const *arg2,"
  , "  heif_reading_options const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_read_from_file)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_174457bbb7c8bbd2 ("
  , "  heif_context *arg1,"
  , "  void const *arg2,"
  , "  size_t arg3,"
  , "  heif_reading_options const *arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_context_read_from_memory)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_fcf75bd82a2068c9 ("
  , "  heif_context *arg1,"
  , "  void const *arg2,"
  , "  size_t arg3,"
  , "  heif_reading_options const *arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_context_read_from_memory_without_copy)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_30a7fb98ea82638e ("
  , "  heif_context *arg1,"
  , "  heif_reader const *arg2,"
  , "  void *arg3,"
  , "  heif_reading_options const *arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_context_read_from_reader)(arg1, arg2, arg3, arg4);"
  , "}"
  , "signed int hs_bindgen_d022237e551807f9 ("
  , "  heif_context *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_number_of_top_level_images)(arg1);"
  , "}"
  , "signed int hs_bindgen_42c1e4344d442b11 ("
  , "  heif_context *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_context_is_top_level_image_ID)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_563deefc7bdc5b71 ("
  , "  heif_context *arg1,"
  , "  heif_item_id *arg2,"
  , "  signed int arg3"
  , ")"
  , "{"
  , "  return (heif_context_get_list_of_top_level_image_IDs)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_e211461a4b3d3f0b ("
  , "  heif_context *arg1,"
  , "  heif_item_id *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_get_primary_image_ID)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_47dc3223f11aefec ("
  , "  heif_context *arg1,"
  , "  heif_image_handle **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_get_primary_image_handle)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_b49b56d6f03fcaf8 ("
  , "  heif_context *arg1,"
  , "  heif_item_id arg2,"
  , "  heif_image_handle **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_get_image_handle)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_8d375594ebb1037b ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_debug_dump_boxes_to_file)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_64075557c6a39094 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_write_mini_format)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4fcabf8d41da421f ("
  , "  heif_context *arg1,"
  , "  char const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_write_to_file)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_dcde2d838b9789eb ("
  , "  heif_context *arg1,"
  , "  heif_writer *arg2,"
  , "  void *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_write)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_8b4419bc4eb2363d ("
  , "  heif_compression_format arg1"
  , ")"
  , "{"
  , "  return (heif_have_encoder_for_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_20792e040c32e0e8 ("
  , "  heif_compression_format arg1,"
  , "  char const *arg2,"
  , "  heif_encoder_descriptor const **arg3,"
  , "  signed int arg4"
  , ")"
  , "{"
  , "  return (heif_get_encoder_descriptors)(arg1, arg2, arg3, arg4);"
  , "}"
  , "char const *hs_bindgen_7378a87d06f64c7f ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_name)(arg1);"
  , "}"
  , "char const *hs_bindgen_32132b83ae93dd0d ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_id_name)(arg1);"
  , "}"
  , "heif_compression_format hs_bindgen_516b3c831a5935aa ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_compression_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_387691abb58c5a8c ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supports_lossy_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_c3eff547363f97b7 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supports_lossless_compression)(arg1);"
  , "}"
  , "void hs_bindgen_4c48d2c2a159ab39 ("
  , "  heif_context *arg1,"
  , "  heif_encoder_descriptor const *arg2,"
  , "  heif_encoder **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_get_encoder)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_5bab8f03475ec97b ("
  , "  heif_context *arg1,"
  , "  heif_compression_format arg2,"
  , "  heif_encoder **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_get_encoder_for_format)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_5be4df5257e0d63e ("
  , "  heif_encoder *arg1"
  , ")"
  , "{"
  , "  (heif_encoder_release)(arg1);"
  , "}"
  , "char const *hs_bindgen_55e2efba5427c071 ("
  , "  heif_encoder const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_get_name)(arg1);"
  , "}"
  , "void hs_bindgen_9700eae02c9f1b08 ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_lossy_quality)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_0d4543b236bd057c ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_lossless)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_528ef0518bd8ed17 ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_logging_level)(arg1, arg2);"
  , "}"
  , "heif_encoder_parameter const *const *hs_bindgen_8ba729e891d005fb ("
  , "  heif_encoder *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_list_parameters)(arg1);"
  , "}"
  , "char const *hs_bindgen_0b37fad3bcbc1032 ("
  , "  heif_encoder_parameter const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_parameter_get_name)(arg1);"
  , "}"
  , "enum heif_encoder_parameter_type hs_bindgen_effc6448978f082b ("
  , "  heif_encoder_parameter const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_parameter_get_type)(arg1);"
  , "}"
  , "void hs_bindgen_9cc90071aaec91f3 ("
  , "  heif_encoder_parameter const *arg1,"
  , "  signed int *arg2,"
  , "  signed int *arg3,"
  , "  signed int *arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_encoder_parameter_get_valid_integer_range)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_050ff9ca987786fb ("
  , "  heif_encoder_parameter const *arg1,"
  , "  signed int *arg2,"
  , "  signed int *arg3,"
  , "  signed int *arg4,"
  , "  signed int *arg5,"
  , "  signed int *arg6,"
  , "  signed int const **arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_encoder_parameter_get_valid_integer_values)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "void hs_bindgen_349b7bf99e396f16 ("
  , "  heif_encoder_parameter const *arg1,"
  , "  char const *const **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_parameter_get_valid_string_values)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_d653763347d1d09b ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_integer)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_2ad63a212716469e ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_get_parameter_integer)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_d43bc70645423305 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  signed int *arg4,"
  , "  signed int *arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_encoder_parameter_integer_valid_range)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_d8ed4c246561cc69 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_boolean)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_ca3fbaeda04e9582 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_get_parameter_boolean)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_908cf213e79a8290 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_string)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_7285de07553fd7c4 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char *arg3,"
  , "  signed int arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_encoder_get_parameter_string)(arg1, arg2, arg3, arg4);"
  , "}"
  , "void hs_bindgen_67b0a8f7e96abb96 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char const *const **arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_parameter_string_valid_values)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_837fd04e76a07e3c ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  signed int *arg4,"
  , "  signed int *arg5,"
  , "  signed int *arg6,"
  , "  signed int *arg7,"
  , "  signed int const **arg8,"
  , "  heif_error *arg9"
  , ")"
  , "{"
  , "  *arg9 = (heif_encoder_parameter_integer_valid_values)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);"
  , "}"
  , "void hs_bindgen_26a36653bf79dc5e ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_badf4585dea9cce8 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char *arg3,"
  , "  signed int arg4,"
  , "  heif_error *arg5"
  , ")"
  , "{"
  , "  *arg5 = (heif_encoder_get_parameter)(arg1, arg2, arg3, arg4);"
  , "}"
  , "signed int hs_bindgen_5f05e81fb1017506 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  return (heif_encoder_has_default)(arg1, arg2);"
  , "}"
  , "heif_orientation hs_bindgen_5de65368b622937b ("
  , "  heif_orientation arg1,"
  , "  heif_orientation arg2"
  , ")"
  , "{"
  , "  return (heif_orientation_concat)(arg1, arg2);"
  , "}"
  , "heif_encoding_options *hs_bindgen_a63382036a0c2ed6 (void)"
  , "{"
  , "  return (heif_encoding_options_alloc)();"
  , "}"
  , "void hs_bindgen_3a1ae325c063e780 ("
  , "  heif_encoding_options *arg1,"
  , "  heif_encoding_options const *arg2"
  , ")"
  , "{"
  , "  (heif_encoding_options_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_7e49924263fcce32 ("
  , "  heif_encoding_options *arg1"
  , ")"
  , "{"
  , "  (heif_encoding_options_free)(arg1);"
  , "}"
  , "void hs_bindgen_6ac3b36ffb994fd2 ("
  , "  heif_context *arg1,"
  , "  heif_image const *arg2,"
  , "  heif_encoder *arg3,"
  , "  heif_encoding_options const *arg4,"
  , "  heif_image_handle **arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_context_encode_image)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_1d9fc34edd017e95 ("
  , "  heif_context *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3,"
  , "  uint16_t arg4,"
  , "  heif_item_id const *arg5,"
  , "  int32_t *arg6,"
  , "  uint16_t const *arg7,"
  , "  heif_image_handle **arg8,"
  , "  heif_error *arg9"
  , ")"
  , "{"
  , "  *arg9 = (heif_context_add_overlay_image)(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);"
  , "}"
  , "void hs_bindgen_a78d763f0e72894b ("
  , "  heif_context *arg1,"
  , "  heif_image_handle *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_set_primary_image)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_7cfa31db45c6d2e0 ("
  , "  heif_context *arg1,"
  , "  heif_brand2 arg2"
  , ")"
  , "{"
  , "  (heif_context_set_major_brand)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_53369da73974a5c8 ("
  , "  heif_context *arg1,"
  , "  heif_brand2 arg2"
  , ")"
  , "{"
  , "  (heif_context_add_compatible_brand)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_ee19be3747255a78 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_unif)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_6aa908eebd2da1c7 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supportes_lossy_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_ae780e3f1353c894 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supportes_lossless_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_2c76e06503a77574 ("
  , "  heif_context *arg1,"
  , "  heif_compression_format arg2,"
  , "  char const *arg3,"
  , "  heif_encoder_descriptor const **arg4,"
  , "  signed int arg5"
  , ")"
  , "{"
  , "  return (heif_context_get_encoder_descriptors)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_87200925476eeec7 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_max_decoding_threads)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_0c7154c9354fd286 ("
  , "  heif_context const *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_max_decoding_threads)(arg1);"
  , "}"
  , "signed int hs_bindgen_42f0650f86196b25 ("
  , "  heif_compression_format arg1"
  , ")"
  , "{"
  , "  return (heif_have_decoder_for_format)(arg1);"
  , "}"
  , "heif_decoding_options *hs_bindgen_9c5874c5219718b8 (void)"
  , "{"
  , "  return (heif_decoding_options_alloc)();"
  , "}"
  , "void hs_bindgen_3b86db3999f11506 ("
  , "  heif_decoding_options *arg1,"
  , "  heif_decoding_options const *arg2"
  , ")"
  , "{"
  , "  (heif_decoding_options_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_cf88ca791cd899fe ("
  , "  heif_decoding_options *arg1"
  , ")"
  , "{"
  , "  (heif_decoding_options_free)(arg1);"
  , "}"
  , "signed int hs_bindgen_ab1f907a34ddc140 ("
  , "  heif_compression_format arg1,"
  , "  heif_decoder_descriptor const **arg2,"
  , "  signed int arg3"
  , ")"
  , "{"
  , "  return (heif_get_decoder_descriptors)(arg1, arg2, arg3);"
  , "}"
  , "char const *hs_bindgen_b5afa8de744aaab5 ("
  , "  heif_decoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_decoder_descriptor_get_name)(arg1);"
  , "}"
  , "char const *hs_bindgen_7203e9b04a7a74dd ("
  , "  heif_decoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_decoder_descriptor_get_id_name)(arg1);"
  , "}"
  , "void hs_bindgen_9c566de5c30f008a ("
  , "  heif_image_handle const *arg1,"
  , "  heif_image **arg2,"
  , "  heif_colorspace arg3,"
  , "  heif_chroma arg4,"
  , "  heif_decoding_options const *arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_decode_image)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_28bf4adaa29e960b ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  (heif_image_handle_release)(arg1);"
  , "}"
  , "signed int hs_bindgen_9cd66a4acc781749 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_is_primary_image)(arg1);"
  , "}"
  , "heif_item_id hs_bindgen_883fc3dc3fc5532a ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_item_id)(arg1);"
  , "}"
  , "signed int hs_bindgen_0bcd25e50e8763ba ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_bd94a464a89cccfb ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_height)(arg1);"
  , "}"
  , "signed int hs_bindgen_019a58dabf17e62f ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_alpha_channel)(arg1);"
  , "}"
  , "signed int hs_bindgen_07e4281a42d682d8 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_is_premultiplied_alpha)(arg1);"
  , "}"
  , "signed int hs_bindgen_bd8920bbdfc607cb ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_luma_bits_per_pixel)(arg1);"
  , "}"
  , "signed int hs_bindgen_4a9b5e4f4022f165 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_chroma_bits_per_pixel)(arg1);"
  , "}"
  , "void hs_bindgen_5866c7e268ce84a7 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_colorspace *arg2,"
  , "  heif_chroma *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_preferred_decoding_colorspace)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_4ac86f0a6dddfea5 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ispe_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_d6a6f34b63a7c18c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ispe_height)(arg1);"
  , "}"
  , "signed int hs_bindgen_5b65c4e9e89d0618 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t *arg2,"
  , "  uint32_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "heif_context *hs_bindgen_416f140cd405607c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_context)(arg1);"
  , "}"
  , "char const *hs_bindgen_9d6713702978e3f4 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_gimi_content_id)(arg1);"
  , "}"
  , "void hs_bindgen_f107d82f17708377 ("
  , "  heif_image_handle *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_gimi_content_id)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_d241b0dabaa4529a ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_cmpd_components)(arg1);"
  , "}"
  , "uint16_t hs_bindgen_f849f5a5579d0d53 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_cmpd_component_type)(arg1, arg2);"
  , "}"
  , "char const *hs_bindgen_f0f8fe1e51403813 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_cmpd_component_type_uri)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_8f5d4dfd76b35269 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_gimi_component_content_ids)(arg1);"
  , "}"
  , "char const *hs_bindgen_4c964b2acbe2715a ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_gimi_component_content_id)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_b545cf8f497992ae ("
  , "  heif_image_handle *arg1,"
  , "  uint32_t arg2,"
  , "  char const *arg3"
  , ")"
  , "{"
  , "  (heif_image_handle_set_gimi_component_content_id)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_44591d28e788d50c ("
  , "  heif_image_handle const *arg1,"
  , "  signed int arg2,"
  , "  struct heif_image_tiling *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_handle_get_image_tiling)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_aaf84ee2e27e5f15 ("
  , "  heif_image_handle const *arg1,"
  , "  signed int arg2,"
  , "  uint32_t arg3,"
  , "  uint32_t arg4,"
  , "  heif_item_id *arg5,"
  , "  heif_error *arg6"
  , ")"
  , "{"
  , "  *arg6 = (heif_image_handle_get_grid_image_tile_id)(arg1, arg2, arg3, arg4, arg5);"
  , "}"
  , "void hs_bindgen_71d50457a2e7f14b ("
  , "  heif_image_handle const *arg1,"
  , "  heif_image **arg2,"
  , "  heif_colorspace arg3,"
  , "  heif_chroma arg4,"
  , "  heif_decoding_options const *arg5,"
  , "  uint32_t arg6,"
  , "  uint32_t arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_image_handle_decode_image_tile)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "void hs_bindgen_b6f1896d3842bb1b ("
  , "  heif_context *arg1,"
  , "  heif_image **arg2,"
  , "  uint16_t arg3,"
  , "  uint16_t arg4,"
  , "  heif_encoder *arg5,"
  , "  heif_encoding_options const *arg6,"
  , "  heif_image_handle **arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_context_encode_grid)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "void hs_bindgen_c0099c7d4964643d ("
  , "  heif_context *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3,"
  , "  uint32_t arg4,"
  , "  uint32_t arg5,"
  , "  heif_encoding_options const *arg6,"
  , "  heif_image_handle **arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_context_add_grid_image)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "void hs_bindgen_188355cccd5fdf14 ("
  , "  heif_context *arg1,"
  , "  heif_image_handle *arg2,"
  , "  uint32_t arg3,"
  , "  uint32_t arg4,"
  , "  heif_image const *arg5,"
  , "  heif_encoder *arg6,"
  , "  heif_error *arg7"
  , ")"
  , "{"
  , "  *arg7 = (heif_context_add_image_tile)(arg1, arg2, arg3, arg4, arg5, arg6);"
  , "}"
  , "uint32_t hs_bindgen_92d950ffdc2de847 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_number_of_used_components)(arg1);"
  , "}"
  , "void hs_bindgen_50b42d71ed1d2033 ("
  , "  heif_image const *arg1,"
  , "  uint32_t *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_used_component_ids)(arg1, arg2);"
  , "}"
  , "heif_channel hs_bindgen_d7d8117bfd051b7c ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_channel)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_d27f543b4e39211d ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_width)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_a5924fcf635470b3 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_height)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_212a3558eb9bbb38 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "uint16_t hs_bindgen_2a65608da4a96b45 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_type)(arg1, arg2);"
  , "}"
  , "heif_component_datatype hs_bindgen_5d0c49abeb7489aa ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_datatype)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_3e577779e550a986 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_components)(arg1);"
  , "}"
  , "void hs_bindgen_3de5a3a45cf894db ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_get_used_component_ids)(arg1, arg2);"
  , "}"
  , "uint16_t hs_bindgen_a672d180928a4092 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_type)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_d6755ff0da5d47f0 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "heif_component_datatype hs_bindgen_4b42fd1e2f6c1b06 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_datatype)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_97edbd3d5283c85d ("
  , "  heif_image *arg1,"
  , "  signed int arg2,"
  , "  signed int arg3,"
  , "  uint16_t arg4,"
  , "  heif_component_datatype arg5,"
  , "  signed int arg6,"
  , "  uint32_t *arg7,"
  , "  heif_error *arg8"
  , ")"
  , "{"
  , "  *arg8 = (heif_image_add_component)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
  , "}"
  , "uint8_t const *hs_bindgen_41c5204933fd6b05 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_c588ded2a4e43ed3 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component)(arg1, arg2, arg3);"
  , "}"
  , "uint16_t const *hs_bindgen_a0c133d2f6cf6ecb ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint16_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint16_t *hs_bindgen_df23dc13cfbceb66 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint16)(arg1, arg2, arg3);"
  , "}"
  , "uint32_t const *hs_bindgen_04f19447334809a3 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint32_t *hs_bindgen_685261e63a2699dc ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint32)(arg1, arg2, arg3);"
  , "}"
  , "uint64_t const *hs_bindgen_d36a1f5767c400a9 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint64_t *hs_bindgen_54efeef674e4787a ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint64)(arg1, arg2, arg3);"
  , "}"
  , "int8_t const *hs_bindgen_6d8f578fb4b8f599 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int8_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int8_t *hs_bindgen_0571e5bd586c7239 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int8)(arg1, arg2, arg3);"
  , "}"
  , "int16_t const *hs_bindgen_75635c2481355b9d ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int16_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int16_t *hs_bindgen_c1e147a254585429 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int16)(arg1, arg2, arg3);"
  , "}"
  , "int32_t const *hs_bindgen_c63eb568cec8ad9f ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int32_t *hs_bindgen_dd8ada136a08e398 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int32)(arg1, arg2, arg3);"
  , "}"
  , "int64_t const *hs_bindgen_3f4ad7985062f4b4 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int64_t *hs_bindgen_0ec9f92992fb98b3 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int64)(arg1, arg2, arg3);"
  , "}"
  , "float const *hs_bindgen_23f11ff4a331711a ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "float *hs_bindgen_4b3f20877e3bea63 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float32)(arg1, arg2, arg3);"
  , "}"
  , "double const *hs_bindgen_f12ea4b15194e665 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "double *hs_bindgen_ca1c705a0dd0055e ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float64)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex32 const *hs_bindgen_a98fe7eded61994f ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex32 *hs_bindgen_d6ca0ebc868780f0 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex32)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex64 const *hs_bindgen_bad0deef2747e198 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex64 *hs_bindgen_d421676f6243ada6 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex64)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_e6f35aaf095c291e ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  char const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_image_set_gimi_component_content_id)(arg1, arg2, arg3);"
  , "}"
  , "heif_omaf_image_projection hs_bindgen_8c10fbaea42a19e7 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_omaf_image_projection)(arg1);"
  , "}"
  , "void hs_bindgen_3affee0f8870d4ec ("
  , "  heif_image_handle *arg1,"
  , "  heif_omaf_image_projection arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_omaf_image_projection)(arg1, arg2);"
  , "}"
  , "heif_omaf_image_projection hs_bindgen_a29dc52a1e29118f ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_omaf_image_projection)(arg1);"
  , "}"
  , "void hs_bindgen_5ca071150556330e ("
  , "  heif_image *arg1,"
  , "  heif_omaf_image_projection arg2"
  , ")"
  , "{"
  , "  (heif_image_set_omaf_image_projection)(arg1, arg2);"
  , "}"
  ]))

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version@
foreign import ccall unsafe "hs_bindgen_e3bffa314a90058b" hs_bindgen_e3bffa314a90058b_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version@
hs_bindgen_e3bffa314a90058b :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_e3bffa314a90058b =
  BG.fromFFIType hs_bindgen_e3bffa314a90058b_base

{-| __C declaration:__ @heif_get_version@

    __defined at:__ @libheif\/heif_library.h 72:25@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_version :: IO (PtrConst.PtrConst BG.CChar)
heif_get_version = hs_bindgen_e3bffa314a90058b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number@
foreign import ccall unsafe "hs_bindgen_5ac80c1443aa4448" hs_bindgen_5ac80c1443aa4448_base ::
     IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number@
hs_bindgen_5ac80c1443aa4448 :: IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_5ac80c1443aa4448 =
  BG.fromFFIType hs_bindgen_5ac80c1443aa4448_base

{-| __C declaration:__ @heif_get_version_number@

    __defined at:__ @libheif\/heif_library.h 76:22@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_version_number :: IO HsBindgen.Runtime.LibC.Word32
heif_get_version_number = hs_bindgen_5ac80c1443aa4448

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_major@
foreign import ccall unsafe "hs_bindgen_55e4521e93626126" hs_bindgen_55e4521e93626126_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_major@
hs_bindgen_55e4521e93626126 :: IO BG.CInt
hs_bindgen_55e4521e93626126 =
  BG.fromFFIType hs_bindgen_55e4521e93626126_base

{-| __C declaration:__ @heif_get_version_number_major@

    __defined at:__ @libheif\/heif_library.h 79:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_version_number_major :: IO BG.CInt
heif_get_version_number_major =
  hs_bindgen_55e4521e93626126

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_minor@
foreign import ccall unsafe "hs_bindgen_145a4f240219e0a9" hs_bindgen_145a4f240219e0a9_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_minor@
hs_bindgen_145a4f240219e0a9 :: IO BG.CInt
hs_bindgen_145a4f240219e0a9 =
  BG.fromFFIType hs_bindgen_145a4f240219e0a9_base

{-| __C declaration:__ @heif_get_version_number_minor@

    __defined at:__ @libheif\/heif_library.h 81:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_version_number_minor :: IO BG.CInt
heif_get_version_number_minor =
  hs_bindgen_145a4f240219e0a9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_maintenance@
foreign import ccall unsafe "hs_bindgen_58fbe8d31194675b" hs_bindgen_58fbe8d31194675b_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_version_number_maintenance@
hs_bindgen_58fbe8d31194675b :: IO BG.CInt
hs_bindgen_58fbe8d31194675b =
  BG.fromFFIType hs_bindgen_58fbe8d31194675b_base

{-| __C declaration:__ @heif_get_version_number_maintenance@

    __defined at:__ @libheif\/heif_library.h 83:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_version_number_maintenance :: IO BG.CInt
heif_get_version_number_maintenance =
  hs_bindgen_58fbe8d31194675b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_string_release@
foreign import ccall unsafe "hs_bindgen_5305381a834858f6" hs_bindgen_5305381a834858f6_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_string_release@
hs_bindgen_5305381a834858f6 ::
     PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_5305381a834858f6 =
  BG.fromFFIType hs_bindgen_5305381a834858f6_base

{-| __C declaration:__ @heif_string_release@

    __defined at:__ @libheif\/heif_library.h 100:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_string_release ::
     PtrConst.PtrConst BG.CChar
  -> IO ()
heif_string_release = hs_bindgen_5305381a834858f6

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_init@
foreign import ccall unsafe "hs_bindgen_c6cf67a7df25bdec" hs_bindgen_c6cf67a7df25bdec_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_init@
hs_bindgen_c6cf67a7df25bdec ::
     BG.Ptr Heif_init_params
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_c6cf67a7df25bdec =
  BG.fromFFIType hs_bindgen_c6cf67a7df25bdec_base

{-| __C declaration:__ @heif_init@

    __defined at:__ @libheif\/heif_library.h 133:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_init ::
     BG.Ptr Heif_init_params
  -> IO Heif_error
heif_init =
  \x0 ->
    BG.allocaAndPeek (\res1 ->
                        hs_bindgen_c6cf67a7df25bdec x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_deinit@
foreign import ccall unsafe "hs_bindgen_e1615a4fb170ecfe" hs_bindgen_e1615a4fb170ecfe_base ::
     IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_deinit@
hs_bindgen_e1615a4fb170ecfe :: IO ()
hs_bindgen_e1615a4fb170ecfe =
  BG.fromFFIType hs_bindgen_e1615a4fb170ecfe_base

{-| __C declaration:__ @heif_deinit@

    __defined at:__ @libheif\/heif_library.h 148:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_deinit :: IO ()
heif_deinit = hs_bindgen_e1615a4fb170ecfe

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_load_plugin@
foreign import ccall unsafe "hs_bindgen_7e4ae8064e7fa414" hs_bindgen_7e4ae8064e7fa414_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_load_plugin@
hs_bindgen_7e4ae8064e7fa414 ::
     PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_7e4ae8064e7fa414 =
  BG.fromFFIType hs_bindgen_7e4ae8064e7fa414_base

{-| __C declaration:__ @heif_load_plugin@

    __defined at:__ @libheif\/heif_library.h 170:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_load_plugin ::
     PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @filename@
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
     -- ^ __C declaration:__ @out_plugin@
  -> IO Heif_error
heif_load_plugin =
  \filename0 ->
    \out_plugin1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_7e4ae8064e7fa414 filename0 out_plugin1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_load_plugins@
foreign import ccall unsafe "hs_bindgen_8d1c6ca731acead9" hs_bindgen_8d1c6ca731acead9_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_load_plugins@
hs_bindgen_8d1c6ca731acead9 ::
     PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
  -> BG.Ptr BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8d1c6ca731acead9 =
  BG.fromFFIType hs_bindgen_8d1c6ca731acead9_base

{-| __C declaration:__ @heif_load_plugins@

    __defined at:__ @libheif\/heif_library.h 173:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_load_plugins ::
     PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @directory@
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
     -- ^ __C declaration:__ @out_plugins@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @out_nPluginsLoaded@
  -> BG.CInt
     -- ^ __C declaration:__ @output_array_size@
  -> IO Heif_error
heif_load_plugins =
  \directory0 ->
    \out_plugins1 ->
      \out_nPluginsLoaded2 ->
        \output_array_size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_8d1c6ca731acead9 directory0 out_plugins1 out_nPluginsLoaded2 output_array_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_unload_plugin@
foreign import ccall unsafe "hs_bindgen_538500d1fad0b893" hs_bindgen_538500d1fad0b893_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_unload_plugin@
hs_bindgen_538500d1fad0b893 ::
     PtrConst.PtrConst Heif_plugin_info
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_538500d1fad0b893 =
  BG.fromFFIType hs_bindgen_538500d1fad0b893_base

{-| __C declaration:__ @heif_unload_plugin@

    __defined at:__ @libheif\/heif_library.h 179:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_unload_plugin ::
     PtrConst.PtrConst Heif_plugin_info
     -- ^ __C declaration:__ @plugin@
  -> IO Heif_error
heif_unload_plugin =
  \plugin0 ->
    BG.allocaAndPeek (\res1 ->
                        hs_bindgen_538500d1fad0b893 plugin0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_plugin_directories@
foreign import ccall unsafe "hs_bindgen_9ed471f495e48c49" hs_bindgen_9ed471f495e48c49_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_plugin_directories@
hs_bindgen_9ed471f495e48c49 :: IO (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
hs_bindgen_9ed471f495e48c49 =
  BG.fromFFIType hs_bindgen_9ed471f495e48c49_base

{-| __C declaration:__ @heif_get_plugin_directories@

    __defined at:__ @libheif\/heif_library.h 185:20@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_plugin_directories :: IO (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
heif_get_plugin_directories =
  hs_bindgen_9ed471f495e48c49

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_free_plugin_directories@
foreign import ccall unsafe "hs_bindgen_9d2405417393e657" hs_bindgen_9d2405417393e657_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_free_plugin_directories@
hs_bindgen_9d2405417393e657 ::
     PtrConst.PtrConst (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_9d2405417393e657 =
  BG.fromFFIType hs_bindgen_9d2405417393e657_base

{-| __C declaration:__ @heif_free_plugin_directories@

    __defined at:__ @libheif\/heif_library.h 188:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_free_plugin_directories ::
     PtrConst.PtrConst (PtrConst.PtrConst BG.CChar)
  -> IO ()
heif_free_plugin_directories =
  hs_bindgen_9d2405417393e657

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_decoder_plugin@
foreign import ccall unsafe "hs_bindgen_835dc3bcc6b1f285" hs_bindgen_835dc3bcc6b1f285_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_decoder_plugin@
hs_bindgen_835dc3bcc6b1f285 ::
     PtrConst.PtrConst Heif_decoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_835dc3bcc6b1f285 =
  BG.fromFFIType hs_bindgen_835dc3bcc6b1f285_base

{-| __C declaration:__ @heif_register_decoder_plugin@

    __defined at:__ @libheif\/heif_library.h 197:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_register_decoder_plugin ::
     PtrConst.PtrConst Heif_decoder_plugin
  -> IO Heif_error
heif_register_decoder_plugin =
  \x0 ->
    BG.allocaAndPeek (\res1 ->
                        hs_bindgen_835dc3bcc6b1f285 x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_encoder_plugin@
foreign import ccall unsafe "hs_bindgen_12b9be4adedf03bd" hs_bindgen_12b9be4adedf03bd_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_encoder_plugin@
hs_bindgen_12b9be4adedf03bd ::
     PtrConst.PtrConst Heif_encoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_12b9be4adedf03bd =
  BG.fromFFIType hs_bindgen_12b9be4adedf03bd_base

{-| __C declaration:__ @heif_register_encoder_plugin@

    __defined at:__ @libheif\/heif_library.h 200:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_register_encoder_plugin ::
     PtrConst.PtrConst Heif_encoder_plugin
  -> IO Heif_error
heif_register_encoder_plugin =
  \x0 ->
    BG.allocaAndPeek (\res1 ->
                        hs_bindgen_12b9be4adedf03bd x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_decoder@
foreign import ccall unsafe "hs_bindgen_5f60338dadf21f69" hs_bindgen_5f60338dadf21f69_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_register_decoder@
hs_bindgen_5f60338dadf21f69 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_decoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_5f60338dadf21f69 =
  BG.fromFFIType hs_bindgen_5f60338dadf21f69_base

{-| __C declaration:__ @heif_register_decoder@

    __defined at:__ @libheif\/heif_library.h 205:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_register_decoder ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @heif@
  -> PtrConst.PtrConst Heif_decoder_plugin
  -> IO Heif_error
heif_register_decoder =
  \heif0 ->
    \x1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_5f60338dadf21f69 heif0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_colorspace@
foreign import ccall unsafe "hs_bindgen_6eefe02d29f57a47" hs_bindgen_6eefe02d29f57a47_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_colorspace@
hs_bindgen_6eefe02d29f57a47 ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_colorspace
hs_bindgen_6eefe02d29f57a47 =
  BG.fromFFIType hs_bindgen_6eefe02d29f57a47_base

{-| __C declaration:__ @heif_image_get_colorspace@

    __defined at:__ @libheif\/heif_image.h 150:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_colorspace ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_colorspace
heif_image_get_colorspace =
  hs_bindgen_6eefe02d29f57a47

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_chroma_format@
foreign import ccall unsafe "hs_bindgen_53faf2b1fc8a2156" hs_bindgen_53faf2b1fc8a2156_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_chroma_format@
hs_bindgen_53faf2b1fc8a2156 ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_chroma
hs_bindgen_53faf2b1fc8a2156 =
  BG.fromFFIType hs_bindgen_53faf2b1fc8a2156_base

{-| __C declaration:__ @heif_image_get_chroma_format@

    __defined at:__ @libheif\/heif_image.h 154:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_chroma_format ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_chroma
heif_image_get_chroma_format =
  hs_bindgen_53faf2b1fc8a2156

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_width@
foreign import ccall unsafe "hs_bindgen_e633bfc0672b32e7" hs_bindgen_e633bfc0672b32e7_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_width@
hs_bindgen_e633bfc0672b32e7 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_e633bfc0672b32e7 =
  BG.fromFFIType hs_bindgen_e633bfc0672b32e7_base

{-| __C declaration:__ @heif_image_get_width@

    __defined at:__ @libheif\/heif_image.h 164:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_width ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @img@
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> IO BG.CInt
heif_image_get_width = hs_bindgen_e633bfc0672b32e7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_height@
foreign import ccall unsafe "hs_bindgen_c0cbbfe9b797da51" hs_bindgen_c0cbbfe9b797da51_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_height@
hs_bindgen_c0cbbfe9b797da51 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_c0cbbfe9b797da51 =
  BG.fromFFIType hs_bindgen_c0cbbfe9b797da51_base

{-| __C declaration:__ @heif_image_get_height@

    __defined at:__ @libheif\/heif_image.h 174:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_height ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @img@
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> IO BG.CInt
heif_image_get_height = hs_bindgen_c0cbbfe9b797da51

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_primary_width@
foreign import ccall unsafe "hs_bindgen_c79ddf7426928ec2" hs_bindgen_c79ddf7426928ec2_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_primary_width@
hs_bindgen_c79ddf7426928ec2 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_c79ddf7426928ec2 =
  BG.fromFFIType hs_bindgen_c79ddf7426928ec2_base

{-| __C declaration:__ @heif_image_get_primary_width@

    __defined at:__ @libheif\/heif_image.h 186:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_primary_width ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @img@
  -> IO BG.CInt
heif_image_get_primary_width =
  hs_bindgen_c79ddf7426928ec2

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_primary_height@
foreign import ccall unsafe "hs_bindgen_fc1202e0c5cd3d09" hs_bindgen_fc1202e0c5cd3d09_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_primary_height@
hs_bindgen_fc1202e0c5cd3d09 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_fc1202e0c5cd3d09 =
  BG.fromFFIType hs_bindgen_fc1202e0c5cd3d09_base

{-| __C declaration:__ @heif_image_get_primary_height@

    __defined at:__ @libheif\/heif_image.h 198:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_primary_height ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @img@
  -> IO BG.CInt
heif_image_get_primary_height =
  hs_bindgen_fc1202e0c5cd3d09

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_crop@
foreign import ccall unsafe "hs_bindgen_298d1d9ee3c4f3f2" hs_bindgen_298d1d9ee3c4f3f2_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Int32
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_crop@
hs_bindgen_298d1d9ee3c4f3f2 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_298d1d9ee3c4f3f2 =
  BG.fromFFIType hs_bindgen_298d1d9ee3c4f3f2_base

{-| __C declaration:__ @heif_image_crop@

    __defined at:__ @libheif\/heif_image.h 222:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_crop ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @img@
  -> BG.CInt
     -- ^ __C declaration:__ @left@
  -> BG.CInt
     -- ^ __C declaration:__ @right@
  -> BG.CInt
     -- ^ __C declaration:__ @top@
  -> BG.CInt
     -- ^ __C declaration:__ @bottom@
  -> IO Heif_error
heif_image_crop =
  \img0 ->
    \left1 ->
      \right2 ->
        \top3 ->
          \bottom4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_298d1d9ee3c4f3f2 img0 left1 right2 top3 bottom4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extract_area@
foreign import ccall unsafe "hs_bindgen_9fd687f6d6aa62dc" hs_bindgen_9fd687f6d6aa62dc_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extract_area@
hs_bindgen_9fd687f6d6aa62dc ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst Heif_security_limits
  -> BG.Ptr (BG.Ptr Heif_image)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9fd687f6d6aa62dc =
  BG.fromFFIType hs_bindgen_9fd687f6d6aa62dc_base

{-| __C declaration:__ @heif_image_extract_area@

    __defined at:__ @libheif\/heif_image.h 226:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_extract_area ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @x0@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @y0@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @w@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @h@
  -> PtrConst.PtrConst Heif_security_limits
     -- ^ __C declaration:__ @limits@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @out_image@
  -> IO Heif_error
heif_image_extract_area =
  \x0 ->
    \x01 ->
      \y02 ->
        \w3 ->
          \h4 ->
            \limits5 ->
              \out_image6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_9fd687f6d6aa62dc x0 x01 y02 w3 h4 limits5 out_image6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_bits_per_pixel@
foreign import ccall unsafe "hs_bindgen_4c57056151b51120" hs_bindgen_4c57056151b51120_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_bits_per_pixel@
hs_bindgen_4c57056151b51120 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_4c57056151b51120 =
  BG.fromFFIType hs_bindgen_4c57056151b51120_base

{-| __C declaration:__ @heif_image_get_bits_per_pixel@

    __defined at:__ @libheif\/heif_image.h 238:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_bits_per_pixel ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> IO BG.CInt
heif_image_get_bits_per_pixel =
  hs_bindgen_4c57056151b51120

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_bits_per_pixel_range@
foreign import ccall unsafe "hs_bindgen_740f2cdd311ad0b7" hs_bindgen_740f2cdd311ad0b7_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_bits_per_pixel_range@
hs_bindgen_740f2cdd311ad0b7 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_740f2cdd311ad0b7 =
  BG.fromFFIType hs_bindgen_740f2cdd311ad0b7_base

{-| __C declaration:__ @heif_image_get_bits_per_pixel_range@

    __defined at:__ @libheif\/heif_image.h 247:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_bits_per_pixel_range ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> IO BG.CInt
heif_image_get_bits_per_pixel_range =
  hs_bindgen_740f2cdd311ad0b7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_channel@
foreign import ccall unsafe "hs_bindgen_682212294f338906" hs_bindgen_682212294f338906_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_channel@
hs_bindgen_682212294f338906 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_682212294f338906 =
  BG.fromFFIType hs_bindgen_682212294f338906_base

{-| __C declaration:__ @heif_image_has_channel@

    __defined at:__ @libheif\/heif_image.h 250:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_has_channel ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> IO BG.CInt
heif_image_has_channel = hs_bindgen_682212294f338906

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane_readonly@
foreign import ccall unsafe "hs_bindgen_5037c6505fb52d39" hs_bindgen_5037c6505fb52d39_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane_readonly@
hs_bindgen_5037c6505fb52d39 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> BG.Ptr BG.CInt
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_5037c6505fb52d39 =
  BG.fromFFIType hs_bindgen_5037c6505fb52d39_base

{-| __C declaration:__ @heif_image_get_plane_readonly@

    __defined at:__ @libheif\/heif_image.h 258:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_plane_readonly ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @out_stride@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
heif_image_get_plane_readonly =
  hs_bindgen_5037c6505fb52d39

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane@
foreign import ccall unsafe "hs_bindgen_1f037f5c1d43593b" hs_bindgen_1f037f5c1d43593b_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane@
hs_bindgen_1f037f5c1d43593b ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.Ptr BG.CInt
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_1f037f5c1d43593b =
  BG.fromFFIType hs_bindgen_1f037f5c1d43593b_base

{-| __C declaration:__ @heif_image_get_plane@

    __defined at:__ @libheif\/heif_image.h 264:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_plane ::
     BG.Ptr Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @out_stride@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
heif_image_get_plane = hs_bindgen_1f037f5c1d43593b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane_readonly2@
foreign import ccall unsafe "hs_bindgen_f7454f02bed93ef8" hs_bindgen_f7454f02bed93ef8_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane_readonly2@
hs_bindgen_f7454f02bed93ef8 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_f7454f02bed93ef8 =
  BG.fromFFIType hs_bindgen_f7454f02bed93ef8_base

{-| __C declaration:__ @heif_image_get_plane_readonly2@

    __defined at:__ @libheif\/heif_image.h 273:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_plane_readonly2 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_stride@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
heif_image_get_plane_readonly2 =
  hs_bindgen_f7454f02bed93ef8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane2@
foreign import ccall unsafe "hs_bindgen_4a13b7033c17548d" hs_bindgen_4a13b7033c17548d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_plane2@
hs_bindgen_4a13b7033c17548d ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_4a13b7033c17548d =
  BG.fromFFIType hs_bindgen_4a13b7033c17548d_base

{-| __C declaration:__ @heif_image_get_plane2@

    __defined at:__ @libheif\/heif_image.h 278:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_plane2 ::
     BG.Ptr Heif_image
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_stride@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
heif_image_get_plane2 = hs_bindgen_4a13b7033c17548d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_scale_image@
foreign import ccall unsafe "hs_bindgen_cd8be1577d7b3a2b" hs_bindgen_cd8be1577d7b3a2b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_scale_image@
hs_bindgen_cd8be1577d7b3a2b ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr (BG.Ptr Heif_image)
  -> BG.CInt
  -> BG.CInt
  -> PtrConst.PtrConst Heif_scaling_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_cd8be1577d7b3a2b =
  BG.fromFFIType hs_bindgen_cd8be1577d7b3a2b_base

{-| __C declaration:__ @heif_image_scale_image@

    __defined at:__ @libheif\/heif_image.h 287:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_scale_image ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @input@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @output@
  -> BG.CInt
     -- ^ __C declaration:__ @width@
  -> BG.CInt
     -- ^ __C declaration:__ @height@
  -> PtrConst.PtrConst Heif_scaling_options
     -- ^ __C declaration:__ @options@
  -> IO Heif_error
heif_image_scale_image =
  \input0 ->
    \output1 ->
      \width2 ->
        \height3 ->
          \options4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_cd8be1577d7b3a2b input0 output1 width2 height3 options4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extend_to_size_fill_with_zero@
foreign import ccall unsafe "hs_bindgen_f994012d02172f02" hs_bindgen_f994012d02172f02_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extend_to_size_fill_with_zero@
hs_bindgen_f994012d02172f02 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_f994012d02172f02 =
  BG.fromFFIType hs_bindgen_f994012d02172f02_base

{-| __C declaration:__ @heif_image_extend_to_size_fill_with_zero@

    __defined at:__ @libheif\/heif_image.h 295:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_extend_to_size_fill_with_zero ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @width@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @height@
  -> IO Heif_error
heif_image_extend_to_size_fill_with_zero =
  \image0 ->
    \width1 ->
      \height2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_f994012d02172f02 image0 width1 height2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_decoding_warnings@
foreign import ccall unsafe "hs_bindgen_591b95f3625fb1f3" hs_bindgen_591b95f3625fb1f3_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_decoding_warnings@
hs_bindgen_591b95f3625fb1f3 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_591b95f3625fb1f3 =
  BG.fromFFIType hs_bindgen_591b95f3625fb1f3_base

{-| __C declaration:__ @heif_image_get_decoding_warnings@

    __defined at:__ @libheif\/heif_image.h 305:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_decoding_warnings ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.CInt
     -- ^ __C declaration:__ @first_warning_idx@
  -> BG.Ptr Heif_error
     -- ^ __C declaration:__ @out_warnings@
  -> BG.CInt
     -- ^ __C declaration:__ @max_output_buffer_entries@
  -> IO BG.CInt
heif_image_get_decoding_warnings =
  hs_bindgen_591b95f3625fb1f3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_decoding_warning@
foreign import ccall unsafe "hs_bindgen_e0050d3b1bf5d002" hs_bindgen_e0050d3b1bf5d002_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_decoding_warning@
hs_bindgen_e0050d3b1bf5d002 ::
     BG.Ptr Heif_image
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e0050d3b1bf5d002 =
  BG.fromFFIType hs_bindgen_e0050d3b1bf5d002_base

{-| __C declaration:__ @heif_image_add_decoding_warning@

    __defined at:__ @libheif\/heif_image.h 312:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_add_decoding_warning ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> Heif_error
     -- ^ __C declaration:__ @err@
  -> IO ()
heif_image_add_decoding_warning =
  \image0 ->
    \err1 ->
      BG.with err1 (\err2 ->
                      hs_bindgen_e0050d3b1bf5d002 image0 err2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_release@
foreign import ccall unsafe "hs_bindgen_f8b0209a7ec37965" hs_bindgen_f8b0209a7ec37965_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_release@
hs_bindgen_f8b0209a7ec37965 ::
     PtrConst.PtrConst Heif_image
  -> IO ()
hs_bindgen_f8b0209a7ec37965 =
  BG.fromFFIType hs_bindgen_f8b0209a7ec37965_base

{-| __C declaration:__ @heif_image_release@

    __defined at:__ @libheif\/heif_image.h 317:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_release ::
     PtrConst.PtrConst Heif_image
  -> IO ()
heif_image_release = hs_bindgen_f8b0209a7ec37965

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_pixel_aspect_ratio@
foreign import ccall unsafe "hs_bindgen_58b6b25baf69f6bb" hs_bindgen_58b6b25baf69f6bb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_pixel_aspect_ratio@
hs_bindgen_58b6b25baf69f6bb ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_58b6b25baf69f6bb =
  BG.fromFFIType hs_bindgen_58b6b25baf69f6bb_base

{-| __C declaration:__ @heif_image_get_pixel_aspect_ratio@

    __defined at:__ @libheif\/heif_image.h 320:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_pixel_aspect_ratio ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_h@
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_v@
  -> IO ()
heif_image_get_pixel_aspect_ratio =
  hs_bindgen_58b6b25baf69f6bb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_pixel_aspect_ratio@
foreign import ccall unsafe "hs_bindgen_64ef88c5f4227050" hs_bindgen_64ef88c5f4227050_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_pixel_aspect_ratio@
hs_bindgen_64ef88c5f4227050 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_64ef88c5f4227050 =
  BG.fromFFIType hs_bindgen_64ef88c5f4227050_base

{-| __C declaration:__ @heif_image_set_pixel_aspect_ratio@

    __defined at:__ @libheif\/heif_image.h 323:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_pixel_aspect_ratio ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_h@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_v@
  -> IO ()
heif_image_set_pixel_aspect_ratio =
  hs_bindgen_64ef88c5f4227050

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_pixel_aspect_ratio@
foreign import ccall unsafe "hs_bindgen_1021dce469e1b127" hs_bindgen_1021dce469e1b127_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_pixel_aspect_ratio@
hs_bindgen_1021dce469e1b127 ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_1021dce469e1b127 =
  BG.fromFFIType hs_bindgen_1021dce469e1b127_base

{-| __C declaration:__ @heif_image_handle_set_pixel_aspect_ratio@

    __defined at:__ @libheif\/heif_image.h 326:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_pixel_aspect_ratio ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_h@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_v@
  -> IO ()
heif_image_handle_set_pixel_aspect_ratio =
  hs_bindgen_1021dce469e1b127

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_create@
foreign import ccall unsafe "hs_bindgen_e6de35774b2629f8" hs_bindgen_e6de35774b2629f8_base ::
     BG.Int32
  -> BG.Int32
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_create@
hs_bindgen_e6de35774b2629f8 ::
     BG.CInt
  -> BG.CInt
  -> Heif_colorspace
  -> Heif_chroma
  -> BG.Ptr (BG.Ptr Heif_image)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e6de35774b2629f8 =
  BG.fromFFIType hs_bindgen_e6de35774b2629f8_base

{-| __C declaration:__ @heif_image_create@

    __defined at:__ @libheif\/heif_image.h 344:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_create ::
     BG.CInt
     -- ^ __C declaration:__ @width@
  -> BG.CInt
     -- ^ __C declaration:__ @height@
  -> Heif_colorspace
     -- ^ __C declaration:__ @colorspace@
  -> Heif_chroma
     -- ^ __C declaration:__ @chroma@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @out_image@
  -> IO Heif_error
heif_image_create =
  \width0 ->
    \height1 ->
      \colorspace2 ->
        \chroma3 ->
          \out_image4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_e6de35774b2629f8 width0 height1 colorspace2 chroma3 out_image4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_plane@
foreign import ccall unsafe "hs_bindgen_ded84e4fb2693ccb" hs_bindgen_ded84e4fb2693ccb_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Int32
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_plane@
hs_bindgen_ded84e4fb2693ccb ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_ded84e4fb2693ccb =
  BG.fromFFIType hs_bindgen_ded84e4fb2693ccb_base

{-| __C declaration:__ @heif_image_add_plane@

    __defined at:__ @libheif\/heif_image.h 378:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_add_plane ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.CInt
     -- ^ __C declaration:__ @width@
  -> BG.CInt
     -- ^ __C declaration:__ @height@
  -> BG.CInt
     -- ^ __C declaration:__ @bit_depth@
  -> IO Heif_error
heif_image_add_plane =
  \image0 ->
    \channel1 ->
      \width2 ->
        \height3 ->
          \bit_depth4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_ded84e4fb2693ccb image0 channel1 width2 height3 bit_depth4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_plane_safe@
foreign import ccall unsafe "hs_bindgen_14c07f3c95c4d2a1" hs_bindgen_14c07f3c95c4d2a1_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Int32
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_plane_safe@
hs_bindgen_14c07f3c95c4d2a1 ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> PtrConst.PtrConst Heif_security_limits
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_14c07f3c95c4d2a1 =
  BG.fromFFIType hs_bindgen_14c07f3c95c4d2a1_base

{-| __C declaration:__ @heif_image_add_plane_safe@

    __defined at:__ @libheif\/heif_image.h 387:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_add_plane_safe ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> Heif_channel
     -- ^ __C declaration:__ @channel@
  -> BG.CInt
     -- ^ __C declaration:__ @width@
  -> BG.CInt
     -- ^ __C declaration:__ @height@
  -> BG.CInt
     -- ^ __C declaration:__ @bit_depth@
  -> PtrConst.PtrConst Heif_security_limits
     -- ^ __C declaration:__ @limits@
  -> IO Heif_error
heif_image_add_plane_safe =
  \image0 ->
    \channel1 ->
      \width2 ->
        \height3 ->
          \bit_depth4 ->
            \limits5 ->
              BG.allocaAndPeek (\res6 ->
                                  hs_bindgen_14c07f3c95c4d2a1 image0 channel1 width2 height3 bit_depth4 limits5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_premultiplied_alpha@
foreign import ccall unsafe "hs_bindgen_0cb37fdfaf80d23d" hs_bindgen_0cb37fdfaf80d23d_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_premultiplied_alpha@
hs_bindgen_0cb37fdfaf80d23d ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> IO ()
hs_bindgen_0cb37fdfaf80d23d =
  BG.fromFFIType hs_bindgen_0cb37fdfaf80d23d_base

{-| __C declaration:__ @heif_image_set_premultiplied_alpha@

    __defined at:__ @libheif\/heif_image.h 394:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_premultiplied_alpha ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.CInt
     -- ^ __C declaration:__ @is_premultiplied_alpha@
  -> IO ()
heif_image_set_premultiplied_alpha =
  hs_bindgen_0cb37fdfaf80d23d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_is_premultiplied_alpha@
foreign import ccall unsafe "hs_bindgen_95281e4bf5195e90" hs_bindgen_95281e4bf5195e90_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_is_premultiplied_alpha@
hs_bindgen_95281e4bf5195e90 ::
     BG.Ptr Heif_image
  -> IO BG.CInt
hs_bindgen_95281e4bf5195e90 =
  BG.fromFFIType hs_bindgen_95281e4bf5195e90_base

{-| __C declaration:__ @heif_image_is_premultiplied_alpha@

    __defined at:__ @libheif\/heif_image.h 398:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_is_premultiplied_alpha ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> IO BG.CInt
heif_image_is_premultiplied_alpha =
  hs_bindgen_95281e4bf5195e90

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extend_padding_to_size@
foreign import ccall unsafe "hs_bindgen_e7bd2b9f79bce485" hs_bindgen_e7bd2b9f79bce485_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_extend_padding_to_size@
hs_bindgen_e7bd2b9f79bce485 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e7bd2b9f79bce485 =
  BG.fromFFIType hs_bindgen_e7bd2b9f79bce485_base

{-| __C declaration:__ @heif_image_extend_padding_to_size@

    __defined at:__ @libheif\/heif_image.h 406:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_extend_padding_to_size ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.CInt
     -- ^ __C declaration:__ @min_physical_width@
  -> BG.CInt
     -- ^ __C declaration:__ @min_physical_height@
  -> IO Heif_error
heif_image_extend_padding_to_size =
  \image0 ->
    \min_physical_width1 ->
      \min_physical_height2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_e7bd2b9f79bce485 image0 min_physical_width1 min_physical_height2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_set_defaults@
foreign import ccall unsafe "hs_bindgen_fa886f69180c9b13" hs_bindgen_fa886f69180c9b13_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_set_defaults@
hs_bindgen_fa886f69180c9b13 ::
     BG.Ptr Heif_color_conversion_options
  -> IO ()
hs_bindgen_fa886f69180c9b13 =
  BG.fromFFIType hs_bindgen_fa886f69180c9b13_base

{-| __C declaration:__ @heif_color_conversion_options_set_defaults@

    __defined at:__ @libheif\/heif_color.h 99:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_color_conversion_options_set_defaults ::
     BG.Ptr Heif_color_conversion_options
  -> IO ()
heif_color_conversion_options_set_defaults =
  hs_bindgen_fa886f69180c9b13

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_alloc@
foreign import ccall unsafe "hs_bindgen_3498384f565db0bf" hs_bindgen_3498384f565db0bf_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_alloc@
hs_bindgen_3498384f565db0bf :: IO (BG.Ptr Heif_color_conversion_options_ext)
hs_bindgen_3498384f565db0bf =
  BG.fromFFIType hs_bindgen_3498384f565db0bf_base

{-| __C declaration:__ @heif_color_conversion_options_ext_alloc@

    __defined at:__ @libheif\/heif_color.h 102:36@

    __exported by:__ @libheif\/heif.h@
-}
heif_color_conversion_options_ext_alloc :: IO (BG.Ptr Heif_color_conversion_options_ext)
heif_color_conversion_options_ext_alloc =
  hs_bindgen_3498384f565db0bf

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_copy@
foreign import ccall unsafe "hs_bindgen_a5a41101b51031e5" hs_bindgen_a5a41101b51031e5_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_copy@
hs_bindgen_a5a41101b51031e5 ::
     BG.Ptr Heif_color_conversion_options_ext
  -> PtrConst.PtrConst Heif_color_conversion_options_ext
  -> IO ()
hs_bindgen_a5a41101b51031e5 =
  BG.fromFFIType hs_bindgen_a5a41101b51031e5_base

{-| __C declaration:__ @heif_color_conversion_options_ext_copy@

    __defined at:__ @libheif\/heif_color.h 105:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_color_conversion_options_ext_copy ::
     BG.Ptr Heif_color_conversion_options_ext
     -- ^ __C declaration:__ @dst@
  -> PtrConst.PtrConst Heif_color_conversion_options_ext
     -- ^ __C declaration:__ @src@
  -> IO ()
heif_color_conversion_options_ext_copy =
  hs_bindgen_a5a41101b51031e5

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_free@
foreign import ccall unsafe "hs_bindgen_b151c814d468583c" hs_bindgen_b151c814d468583c_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_color_conversion_options_ext_free@
hs_bindgen_b151c814d468583c ::
     BG.Ptr Heif_color_conversion_options_ext
  -> IO ()
hs_bindgen_b151c814d468583c =
  BG.fromFFIType hs_bindgen_b151c814d468583c_base

{-| __C declaration:__ @heif_color_conversion_options_ext_free@

    __defined at:__ @libheif\/heif_color.h 109:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_color_conversion_options_ext_free ::
     BG.Ptr Heif_color_conversion_options_ext
  -> IO ()
heif_color_conversion_options_ext_free =
  hs_bindgen_b151c814d468583c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_color_profile_type@
foreign import ccall unsafe "hs_bindgen_3d62c61f9da0c21f" hs_bindgen_3d62c61f9da0c21f_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_color_profile_type@
hs_bindgen_3d62c61f9da0c21f ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_color_profile_type
hs_bindgen_3d62c61f9da0c21f =
  BG.fromFFIType hs_bindgen_3d62c61f9da0c21f_base

{-| __C declaration:__ @heif_image_handle_get_color_profile_type@

    __defined at:__ @libheif\/heif_color.h 129:25@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_color_profile_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO Heif_color_profile_type
heif_image_handle_get_color_profile_type =
  hs_bindgen_3d62c61f9da0c21f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_raw_color_profile_size@
foreign import ccall unsafe "hs_bindgen_e524b9c333f3e6f9" hs_bindgen_e524b9c333f3e6f9_base ::
     BG.Ptr BG.Void
  -> IO BG.Word64

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_raw_color_profile_size@
hs_bindgen_e524b9c333f3e6f9 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_e524b9c333f3e6f9 =
  BG.fromFFIType hs_bindgen_e524b9c333f3e6f9_base

{-| __C declaration:__ @heif_image_handle_get_raw_color_profile_size@

    __defined at:__ @libheif\/heif_color.h 132:8@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_raw_color_profile_size ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO HsBindgen.Runtime.LibC.CSize
heif_image_handle_get_raw_color_profile_size =
  hs_bindgen_e524b9c333f3e6f9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_raw_color_profile@
foreign import ccall unsafe "hs_bindgen_df7ddd74d35a1d70" hs_bindgen_df7ddd74d35a1d70_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_raw_color_profile@
hs_bindgen_df7ddd74d35a1d70 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_df7ddd74d35a1d70 =
  BG.fromFFIType hs_bindgen_df7ddd74d35a1d70_base

{-| __C declaration:__ @heif_image_handle_get_raw_color_profile@

    __defined at:__ @libheif\/heif_color.h 136:19@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_raw_color_profile ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr BG.Void
     -- ^ __C declaration:__ @out_data@
  -> IO Heif_error
heif_image_handle_get_raw_color_profile =
  \handle0 ->
    \out_data1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_df7ddd74d35a1d70 handle0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_color_primaries@
foreign import ccall unsafe "hs_bindgen_9bd2c76f24a46069" hs_bindgen_9bd2c76f24a46069_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_color_primaries@
hs_bindgen_9bd2c76f24a46069 ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9bd2c76f24a46069 =
  BG.fromFFIType hs_bindgen_9bd2c76f24a46069_base

{-| __C declaration:__ @heif_nclx_color_profile_set_color_primaries@

    __defined at:__ @libheif\/heif_color.h 215:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_nclx_color_profile_set_color_primaries ::
     BG.Ptr Heif_color_profile_nclx
     -- ^ __C declaration:__ @nclx@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @cp@
  -> IO Heif_error
heif_nclx_color_profile_set_color_primaries =
  \nclx0 ->
    \cp1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_9bd2c76f24a46069 nclx0 cp1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_transfer_characteristics@
foreign import ccall unsafe "hs_bindgen_55f3e8ab84a6b8ef" hs_bindgen_55f3e8ab84a6b8ef_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_transfer_characteristics@
hs_bindgen_55f3e8ab84a6b8ef ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_55f3e8ab84a6b8ef =
  BG.fromFFIType hs_bindgen_55f3e8ab84a6b8ef_base

{-| __C declaration:__ @heif_nclx_color_profile_set_transfer_characteristics@

    __defined at:__ @libheif\/heif_color.h 218:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_nclx_color_profile_set_transfer_characteristics ::
     BG.Ptr Heif_color_profile_nclx
     -- ^ __C declaration:__ @nclx@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @transfer_characteristics@
  -> IO Heif_error
heif_nclx_color_profile_set_transfer_characteristics =
  \nclx0 ->
    \transfer_characteristics1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_55f3e8ab84a6b8ef nclx0 transfer_characteristics1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_matrix_coefficients@
foreign import ccall unsafe "hs_bindgen_8e5fd31a41ae1cdd" hs_bindgen_8e5fd31a41ae1cdd_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_set_matrix_coefficients@
hs_bindgen_8e5fd31a41ae1cdd ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8e5fd31a41ae1cdd =
  BG.fromFFIType hs_bindgen_8e5fd31a41ae1cdd_base

{-| __C declaration:__ @heif_nclx_color_profile_set_matrix_coefficients@

    __defined at:__ @libheif\/heif_color.h 221:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_nclx_color_profile_set_matrix_coefficients ::
     BG.Ptr Heif_color_profile_nclx
     -- ^ __C declaration:__ @nclx@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @matrix_coefficients@
  -> IO Heif_error
heif_nclx_color_profile_set_matrix_coefficients =
  \nclx0 ->
    \matrix_coefficients1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_8e5fd31a41ae1cdd nclx0 matrix_coefficients1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_nclx_color_profile@
foreign import ccall unsafe "hs_bindgen_8546dd13ed062f1c" hs_bindgen_8546dd13ed062f1c_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_nclx_color_profile@
hs_bindgen_8546dd13ed062f1c ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8546dd13ed062f1c =
  BG.fromFFIType hs_bindgen_8546dd13ed062f1c_base

{-| __C declaration:__ @heif_image_handle_get_nclx_color_profile@

    __defined at:__ @libheif\/heif_color.h 227:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_nclx_color_profile ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
     -- ^ __C declaration:__ @out_data@
  -> IO Heif_error
heif_image_handle_get_nclx_color_profile =
  \handle0 ->
    \out_data1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_8546dd13ed062f1c handle0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_alloc@
foreign import ccall unsafe "hs_bindgen_ae248e74768fcbe7" hs_bindgen_ae248e74768fcbe7_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_alloc@
hs_bindgen_ae248e74768fcbe7 :: IO (BG.Ptr Heif_color_profile_nclx)
hs_bindgen_ae248e74768fcbe7 =
  BG.fromFFIType hs_bindgen_ae248e74768fcbe7_base

{-| __C declaration:__ @heif_nclx_color_profile_alloc@

    __defined at:__ @libheif\/heif_color.h 234:26@

    __exported by:__ @libheif\/heif.h@
-}
heif_nclx_color_profile_alloc :: IO (BG.Ptr Heif_color_profile_nclx)
heif_nclx_color_profile_alloc =
  hs_bindgen_ae248e74768fcbe7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_free@
foreign import ccall unsafe "hs_bindgen_e5cdf6772bff08ab" hs_bindgen_e5cdf6772bff08ab_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_nclx_color_profile_free@
hs_bindgen_e5cdf6772bff08ab ::
     BG.Ptr Heif_color_profile_nclx
  -> IO ()
hs_bindgen_e5cdf6772bff08ab =
  BG.fromFFIType hs_bindgen_e5cdf6772bff08ab_base

{-| __C declaration:__ @heif_nclx_color_profile_free@

    __defined at:__ @libheif\/heif_color.h 237:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_nclx_color_profile_free ::
     BG.Ptr Heif_color_profile_nclx
     -- ^ __C declaration:__ @nclx_profile@
  -> IO ()
heif_nclx_color_profile_free =
  hs_bindgen_e5cdf6772bff08ab

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_color_profile_type@
foreign import ccall unsafe "hs_bindgen_698c659a583ecfcf" hs_bindgen_698c659a583ecfcf_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_color_profile_type@
hs_bindgen_698c659a583ecfcf ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_color_profile_type
hs_bindgen_698c659a583ecfcf =
  BG.fromFFIType hs_bindgen_698c659a583ecfcf_base

{-| __C declaration:__ @heif_image_get_color_profile_type@

    __defined at:__ @libheif\/heif_color.h 243:25@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_color_profile_type ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> IO Heif_color_profile_type
heif_image_get_color_profile_type =
  hs_bindgen_698c659a583ecfcf

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_raw_color_profile_size@
foreign import ccall unsafe "hs_bindgen_899b31b8f4d0b139" hs_bindgen_899b31b8f4d0b139_base ::
     BG.Ptr BG.Void
  -> IO BG.Word64

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_raw_color_profile_size@
hs_bindgen_899b31b8f4d0b139 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_899b31b8f4d0b139 =
  BG.fromFFIType hs_bindgen_899b31b8f4d0b139_base

{-| __C declaration:__ @heif_image_get_raw_color_profile_size@

    __defined at:__ @libheif\/heif_color.h 247:8@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_raw_color_profile_size ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> IO HsBindgen.Runtime.LibC.CSize
heif_image_get_raw_color_profile_size =
  hs_bindgen_899b31b8f4d0b139

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_raw_color_profile@
foreign import ccall unsafe "hs_bindgen_dd6958f1991911be" hs_bindgen_dd6958f1991911be_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_raw_color_profile@
hs_bindgen_dd6958f1991911be ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_dd6958f1991911be =
  BG.fromFFIType hs_bindgen_dd6958f1991911be_base

{-| __C declaration:__ @heif_image_get_raw_color_profile@

    __defined at:__ @libheif\/heif_color.h 251:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_raw_color_profile ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.Ptr BG.Void
     -- ^ __C declaration:__ @out_data@
  -> IO Heif_error
heif_image_get_raw_color_profile =
  \image0 ->
    \out_data1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_dd6958f1991911be image0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_nclx_color_profile@
foreign import ccall unsafe "hs_bindgen_066842cfad9d7788" hs_bindgen_066842cfad9d7788_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_nclx_color_profile@
hs_bindgen_066842cfad9d7788 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_066842cfad9d7788 =
  BG.fromFFIType hs_bindgen_066842cfad9d7788_base

{-| __C declaration:__ @heif_image_get_nclx_color_profile@

    __defined at:__ @libheif\/heif_color.h 255:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_nclx_color_profile ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
     -- ^ __C declaration:__ @out_data@
  -> IO Heif_error
heif_image_get_nclx_color_profile =
  \image0 ->
    \out_data1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_066842cfad9d7788 image0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_raw_color_profile@
foreign import ccall unsafe "hs_bindgen_e39706130308fb22" hs_bindgen_e39706130308fb22_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word64
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_raw_color_profile@
hs_bindgen_e39706130308fb22 ::
     BG.Ptr Heif_image
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e39706130308fb22 =
  BG.fromFFIType hs_bindgen_e39706130308fb22_base

{-| __C declaration:__ @heif_image_set_raw_color_profile@

    __defined at:__ @libheif\/heif_color.h 262:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_raw_color_profile ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @profile_type_fourcc_string@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @profile_data@
  -> HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @profile_size@
  -> IO Heif_error
heif_image_set_raw_color_profile =
  \image0 ->
    \profile_type_fourcc_string1 ->
      \profile_data2 ->
        \profile_size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_e39706130308fb22 image0 profile_type_fourcc_string1 profile_data2 profile_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_nclx_color_profile@
foreign import ccall unsafe "hs_bindgen_c4e7050d9db10e9a" hs_bindgen_c4e7050d9db10e9a_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_nclx_color_profile@
hs_bindgen_c4e7050d9db10e9a ::
     BG.Ptr Heif_image
  -> PtrConst.PtrConst Heif_color_profile_nclx
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_c4e7050d9db10e9a =
  BG.fromFFIType hs_bindgen_c4e7050d9db10e9a_base

{-| __C declaration:__ @heif_image_set_nclx_color_profile@

    __defined at:__ @libheif\/heif_color.h 268:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_nclx_color_profile ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> PtrConst.PtrConst Heif_color_profile_nclx
     -- ^ __C declaration:__ @color_profile@
  -> IO Heif_error
heif_image_set_nclx_color_profile =
  \image0 ->
    \color_profile1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_c4e7050d9db10e9a image0 color_profile1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_content_light_level@
foreign import ccall unsafe "hs_bindgen_be6ee6da0546d110" hs_bindgen_be6ee6da0546d110_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_content_light_level@
hs_bindgen_be6ee6da0546d110 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_be6ee6da0546d110 =
  BG.fromFFIType hs_bindgen_be6ee6da0546d110_base

{-| __C declaration:__ @heif_image_has_content_light_level@

    __defined at:__ @libheif\/heif_color.h 301:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_has_content_light_level ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
heif_image_has_content_light_level =
  hs_bindgen_be6ee6da0546d110

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_content_light_level@
foreign import ccall unsafe "hs_bindgen_d7e2ebf32ac53fac" hs_bindgen_d7e2ebf32ac53fac_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_content_light_level@
hs_bindgen_d7e2ebf32ac53fac ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_d7e2ebf32ac53fac =
  BG.fromFFIType hs_bindgen_d7e2ebf32ac53fac_base

{-| __C declaration:__ @heif_image_handle_has_content_light_level@

    __defined at:__ @libheif\/heif_color.h 304:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_content_light_level ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_content_light_level =
  hs_bindgen_d7e2ebf32ac53fac

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_content_light_level@
foreign import ccall unsafe "hs_bindgen_9d82218a99d2d392" hs_bindgen_9d82218a99d2d392_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_content_light_level@
hs_bindgen_9d82218a99d2d392 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_content_light_level
  -> IO ()
hs_bindgen_9d82218a99d2d392 =
  BG.fromFFIType hs_bindgen_9d82218a99d2d392_base

{-| __C declaration:__ @heif_image_get_content_light_level@

    __defined at:__ @libheif\/heif_color.h 308:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_content_light_level ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_content_light_level
     -- ^ __C declaration:__ @out@
  -> IO ()
heif_image_get_content_light_level =
  hs_bindgen_9d82218a99d2d392

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_content_light_level@
foreign import ccall unsafe "hs_bindgen_b6298e4a5fe44f46" hs_bindgen_b6298e4a5fe44f46_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_content_light_level@
hs_bindgen_b6298e4a5fe44f46 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_content_light_level
  -> IO BG.CInt
hs_bindgen_b6298e4a5fe44f46 =
  BG.fromFFIType hs_bindgen_b6298e4a5fe44f46_base

{-| __C declaration:__ @heif_image_handle_get_content_light_level@

    __defined at:__ @libheif\/heif_color.h 312:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_content_light_level ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_content_light_level
     -- ^ __C declaration:__ @out@
  -> IO BG.CInt
heif_image_handle_get_content_light_level =
  hs_bindgen_b6298e4a5fe44f46

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_content_light_level@
foreign import ccall unsafe "hs_bindgen_1b896f9f9ad9433d" hs_bindgen_1b896f9f9ad9433d_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_content_light_level@
hs_bindgen_1b896f9f9ad9433d ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_content_light_level
  -> IO ()
hs_bindgen_1b896f9f9ad9433d =
  BG.fromFFIType hs_bindgen_1b896f9f9ad9433d_base

{-| __C declaration:__ @heif_image_set_content_light_level@

    __defined at:__ @libheif\/heif_color.h 315:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_content_light_level ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_content_light_level
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_set_content_light_level =
  hs_bindgen_1b896f9f9ad9433d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_content_light_level@
foreign import ccall unsafe "hs_bindgen_0fe67c68b9c30832" hs_bindgen_0fe67c68b9c30832_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_content_light_level@
hs_bindgen_0fe67c68b9c30832 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_content_light_level
  -> IO ()
hs_bindgen_0fe67c68b9c30832 =
  BG.fromFFIType hs_bindgen_0fe67c68b9c30832_base

{-| __C declaration:__ @heif_image_handle_set_content_light_level@

    __defined at:__ @libheif\/heif_color.h 318:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_content_light_level ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_content_light_level
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_handle_set_content_light_level =
  hs_bindgen_0fe67c68b9c30832

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_082b5ffbdb05d279" hs_bindgen_082b5ffbdb05d279_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_mastering_display_colour_volume@
hs_bindgen_082b5ffbdb05d279 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_082b5ffbdb05d279 =
  BG.fromFFIType hs_bindgen_082b5ffbdb05d279_base

{-| __C declaration:__ @heif_image_has_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 398:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_has_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
heif_image_has_mastering_display_colour_volume =
  hs_bindgen_082b5ffbdb05d279

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_fbcaca522f00d549" hs_bindgen_fbcaca522f00d549_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_mastering_display_colour_volume@
hs_bindgen_fbcaca522f00d549 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_fbcaca522f00d549 =
  BG.fromFFIType hs_bindgen_fbcaca522f00d549_base

{-| __C declaration:__ @heif_image_handle_has_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 401:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_mastering_display_colour_volume =
  hs_bindgen_fbcaca522f00d549

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_26de052b332f6318" hs_bindgen_26de052b332f6318_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_mastering_display_colour_volume@
hs_bindgen_26de052b332f6318 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_26de052b332f6318 =
  BG.fromFFIType hs_bindgen_26de052b332f6318_base

{-| __C declaration:__ @heif_image_get_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 404:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_mastering_display_colour_volume
     -- ^ __C declaration:__ @out@
  -> IO ()
heif_image_get_mastering_display_colour_volume =
  hs_bindgen_26de052b332f6318

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_e82eb51924715179" hs_bindgen_e82eb51924715179_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_mastering_display_colour_volume@
hs_bindgen_e82eb51924715179 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_mastering_display_colour_volume
  -> IO BG.CInt
hs_bindgen_e82eb51924715179 =
  BG.fromFFIType hs_bindgen_e82eb51924715179_base

{-| __C declaration:__ @heif_image_handle_get_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 408:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_mastering_display_colour_volume
     -- ^ __C declaration:__ @out@
  -> IO BG.CInt
heif_image_handle_get_mastering_display_colour_volume =
  hs_bindgen_e82eb51924715179

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_ffad573ff1d2e1b4" hs_bindgen_ffad573ff1d2e1b4_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_mastering_display_colour_volume@
hs_bindgen_ffad573ff1d2e1b4 ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_ffad573ff1d2e1b4 =
  BG.fromFFIType hs_bindgen_ffad573ff1d2e1b4_base

{-| __C declaration:__ @heif_image_set_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 411:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_set_mastering_display_colour_volume =
  hs_bindgen_ffad573ff1d2e1b4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_mastering_display_colour_volume@
foreign import ccall unsafe "hs_bindgen_e55ed00c652e3fea" hs_bindgen_e55ed00c652e3fea_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_mastering_display_colour_volume@
hs_bindgen_e55ed00c652e3fea ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_e55ed00c652e3fea =
  BG.fromFFIType hs_bindgen_e55ed00c652e3fea_base

{-| __C declaration:__ @heif_image_handle_set_mastering_display_colour_volume@

    __defined at:__ @libheif\/heif_color.h 414:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_mastering_display_colour_volume ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_handle_set_mastering_display_colour_volume =
  hs_bindgen_e55ed00c652e3fea

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_d6b8dd7ef6008c82" hs_bindgen_d6b8dd7ef6008c82_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_ambient_viewing_environment@
hs_bindgen_d6b8dd7ef6008c82 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_d6b8dd7ef6008c82 =
  BG.fromFFIType hs_bindgen_d6b8dd7ef6008c82_base

{-| __C declaration:__ @heif_image_has_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 420:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_has_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
heif_image_has_ambient_viewing_environment =
  hs_bindgen_d6b8dd7ef6008c82

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_e0f6f90369de190f" hs_bindgen_e0f6f90369de190f_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_ambient_viewing_environment@
hs_bindgen_e0f6f90369de190f ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_e0f6f90369de190f =
  BG.fromFFIType hs_bindgen_e0f6f90369de190f_base

{-| __C declaration:__ @heif_image_handle_has_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 423:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_ambient_viewing_environment =
  hs_bindgen_e0f6f90369de190f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_03f4b4f3734ca3eb" hs_bindgen_03f4b4f3734ca3eb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_ambient_viewing_environment@
hs_bindgen_03f4b4f3734ca3eb ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_ambient_viewing_environment
  -> IO BG.CInt
hs_bindgen_03f4b4f3734ca3eb =
  BG.fromFFIType hs_bindgen_03f4b4f3734ca3eb_base

{-| __C declaration:__ @heif_image_get_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 427:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_ambient_viewing_environment
     -- ^ __C declaration:__ @out@
  -> IO BG.CInt
heif_image_get_ambient_viewing_environment =
  hs_bindgen_03f4b4f3734ca3eb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_dd1f30e9a69dbd49" hs_bindgen_dd1f30e9a69dbd49_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ambient_viewing_environment@
hs_bindgen_dd1f30e9a69dbd49 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_ambient_viewing_environment
  -> IO BG.CInt
hs_bindgen_dd1f30e9a69dbd49 =
  BG.fromFFIType hs_bindgen_dd1f30e9a69dbd49_base

{-| __C declaration:__ @heif_image_handle_get_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 431:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_ambient_viewing_environment
     -- ^ __C declaration:__ @out@
  -> IO BG.CInt
heif_image_handle_get_ambient_viewing_environment =
  hs_bindgen_dd1f30e9a69dbd49

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_81030adb575665fe" hs_bindgen_81030adb575665fe_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_ambient_viewing_environment@
hs_bindgen_81030adb575665fe ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
  -> IO ()
hs_bindgen_81030adb575665fe =
  BG.fromFFIType hs_bindgen_81030adb575665fe_base

{-| __C declaration:__ @heif_image_set_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 434:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_set_ambient_viewing_environment =
  hs_bindgen_81030adb575665fe

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_ambient_viewing_environment@
foreign import ccall unsafe "hs_bindgen_13c2a075b1cf7bd8" hs_bindgen_13c2a075b1cf7bd8_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_ambient_viewing_environment@
hs_bindgen_13c2a075b1cf7bd8 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
  -> IO ()
hs_bindgen_13c2a075b1cf7bd8 =
  BG.fromFFIType hs_bindgen_13c2a075b1cf7bd8_base

{-| __C declaration:__ @heif_image_handle_set_ambient_viewing_environment@

    __defined at:__ @libheif\/heif_color.h 437:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_ambient_viewing_environment ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
     -- ^ __C declaration:__ @in@
  -> IO ()
heif_image_handle_set_ambient_viewing_environment =
  hs_bindgen_13c2a075b1cf7bd8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_7dd186fbfd6b464a" hs_bindgen_7dd186fbfd6b464a_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_has_nominal_diffuse_white_luminance@
hs_bindgen_7dd186fbfd6b464a ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_7dd186fbfd6b464a =
  BG.fromFFIType hs_bindgen_7dd186fbfd6b464a_base

{-| __C declaration:__ @heif_image_has_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 450:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_has_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
heif_image_has_nominal_diffuse_white_luminance =
  hs_bindgen_7dd186fbfd6b464a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_edcedf5e2ff9fd31" hs_bindgen_edcedf5e2ff9fd31_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_nominal_diffuse_white_luminance@
hs_bindgen_edcedf5e2ff9fd31 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_edcedf5e2ff9fd31 =
  BG.fromFFIType hs_bindgen_edcedf5e2ff9fd31_base

{-| __C declaration:__ @heif_image_get_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 453:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_get_nominal_diffuse_white_luminance =
  hs_bindgen_edcedf5e2ff9fd31

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_a37f8bb02787e019" hs_bindgen_a37f8bb02787e019_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_nominal_diffuse_white_luminance@
hs_bindgen_a37f8bb02787e019 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_a37f8bb02787e019 =
  BG.fromFFIType hs_bindgen_a37f8bb02787e019_base

{-| __C declaration:__ @heif_image_set_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 456:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @luminance@
  -> IO ()
heif_image_set_nominal_diffuse_white_luminance =
  hs_bindgen_a37f8bb02787e019

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_11ca3842cb553804" hs_bindgen_11ca3842cb553804_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_nominal_diffuse_white_luminance@
hs_bindgen_11ca3842cb553804 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_11ca3842cb553804 =
  BG.fromFFIType hs_bindgen_11ca3842cb553804_base

{-| __C declaration:__ @heif_image_handle_has_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 459:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_nominal_diffuse_white_luminance =
  hs_bindgen_11ca3842cb553804

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_24cee4290ffa0920" hs_bindgen_24cee4290ffa0920_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_nominal_diffuse_white_luminance@
hs_bindgen_24cee4290ffa0920 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_24cee4290ffa0920 =
  BG.fromFFIType hs_bindgen_24cee4290ffa0920_base

{-| __C declaration:__ @heif_image_handle_get_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 462:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_handle_get_nominal_diffuse_white_luminance =
  hs_bindgen_24cee4290ffa0920

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_nominal_diffuse_white_luminance@
foreign import ccall unsafe "hs_bindgen_4e00c9ca70a6fd07" hs_bindgen_4e00c9ca70a6fd07_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_nominal_diffuse_white_luminance@
hs_bindgen_4e00c9ca70a6fd07 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_4e00c9ca70a6fd07 =
  BG.fromFFIType hs_bindgen_4e00c9ca70a6fd07_base

{-| __C declaration:__ @heif_image_handle_set_nominal_diffuse_white_luminance@

    __defined at:__ @libheif\/heif_color.h 465:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_nominal_diffuse_white_luminance ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @luminance@
  -> IO ()
heif_image_handle_set_nominal_diffuse_white_luminance =
  hs_bindgen_4e00c9ca70a6fd07

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_mastering_display_colour_volume_decode@
foreign import ccall unsafe "hs_bindgen_9c0e93af53ba356a" hs_bindgen_9c0e93af53ba356a_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_mastering_display_colour_volume_decode@
hs_bindgen_9c0e93af53ba356a ::
     PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> BG.Ptr Heif_decoded_mastering_display_colour_volume
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9c0e93af53ba356a =
  BG.fromFFIType hs_bindgen_9c0e93af53ba356a_base

{-| __C declaration:__ @heif_mastering_display_colour_volume_decode@

    __defined at:__ @libheif\/heif_color.h 472:19@

    __exported by:__ @libheif\/heif.h@
-}
heif_mastering_display_colour_volume_decode ::
     PtrConst.PtrConst Heif_mastering_display_colour_volume
     -- ^ __C declaration:__ @in@
  -> BG.Ptr Heif_decoded_mastering_display_colour_volume
     -- ^ __C declaration:__ @out@
  -> IO Heif_error
heif_mastering_display_colour_volume_decode =
  \in'0 ->
    \out1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_9c0e93af53ba356a in'0 out1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_read_main_brand@
foreign import ccall unsafe "hs_bindgen_cb3b0a44d4aad6a4" hs_bindgen_cb3b0a44d4aad6a4_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_read_main_brand@
hs_bindgen_cb3b0a44d4aad6a4 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand2
hs_bindgen_cb3b0a44d4aad6a4 =
  BG.fromFFIType hs_bindgen_cb3b0a44d4aad6a4_base

{-| __C declaration:__ @heif_read_main_brand@

    __defined at:__ @libheif\/heif_brands.h 269:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_read_main_brand ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO Heif_brand2
heif_read_main_brand = hs_bindgen_cb3b0a44d4aad6a4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_read_minor_version_brand@
foreign import ccall unsafe "hs_bindgen_46a8a8e54f91d91a" hs_bindgen_46a8a8e54f91d91a_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_read_minor_version_brand@
hs_bindgen_46a8a8e54f91d91a ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand2
hs_bindgen_46a8a8e54f91d91a =
  BG.fromFFIType hs_bindgen_46a8a8e54f91d91a_base

{-| __C declaration:__ @heif_read_minor_version_brand@

    __defined at:__ @libheif\/heif_brands.h 273:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_read_minor_version_brand ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO Heif_brand2
heif_read_minor_version_brand =
  hs_bindgen_46a8a8e54f91d91a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_fourcc_to_brand@
foreign import ccall unsafe "hs_bindgen_ec7439ef34aa82ca" hs_bindgen_ec7439ef34aa82ca_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_fourcc_to_brand@
hs_bindgen_ec7439ef34aa82ca ::
     PtrConst.PtrConst BG.CChar
  -> IO Heif_brand2
hs_bindgen_ec7439ef34aa82ca =
  BG.fromFFIType hs_bindgen_ec7439ef34aa82ca_base

{-| __C declaration:__ @heif_fourcc_to_brand@

    __defined at:__ @libheif\/heif_brands.h 277:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_fourcc_to_brand ::
     PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @brand_fourcc@
  -> IO Heif_brand2
heif_fourcc_to_brand = hs_bindgen_ec7439ef34aa82ca

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_brand_to_fourcc@
foreign import ccall unsafe "hs_bindgen_f3063904ab900b28" hs_bindgen_f3063904ab900b28_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_brand_to_fourcc@
hs_bindgen_f3063904ab900b28 ::
     Heif_brand2
  -> BG.Ptr BG.CChar
  -> IO ()
hs_bindgen_f3063904ab900b28 =
  BG.fromFFIType hs_bindgen_f3063904ab900b28_base

{-| __C declaration:__ @heif_brand_to_fourcc@

    __defined at:__ @libheif\/heif_brands.h 281:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_brand_to_fourcc ::
     Heif_brand2
     -- ^ __C declaration:__ @brand@
  -> BG.Ptr BG.CChar
     -- ^ __C declaration:__ @out_fourcc@
  -> IO ()
heif_brand_to_fourcc = hs_bindgen_f3063904ab900b28

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_has_compatible_brand@
foreign import ccall unsafe "hs_bindgen_f9382ea7accf2318" hs_bindgen_f9382ea7accf2318_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_has_compatible_brand@
hs_bindgen_f9382ea7accf2318 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_f9382ea7accf2318 =
  BG.fromFFIType hs_bindgen_f9382ea7accf2318_base

{-| __C declaration:__ @heif_has_compatible_brand@

    __defined at:__ @libheif\/heif_brands.h 289:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_has_compatible_brand ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @brand_fourcc@
  -> IO BG.CInt
heif_has_compatible_brand =
  hs_bindgen_f9382ea7accf2318

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_list_compatible_brands@
foreign import ccall unsafe "hs_bindgen_db37863ff0bc30e9" hs_bindgen_db37863ff0bc30e9_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_list_compatible_brands@
hs_bindgen_db37863ff0bc30e9 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> BG.Ptr (BG.Ptr Heif_brand2)
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_db37863ff0bc30e9 =
  BG.fromFFIType hs_bindgen_db37863ff0bc30e9_base

{-| __C declaration:__ @heif_list_compatible_brands@

    __defined at:__ @libheif\/heif_brands.h 294:19@

    __exported by:__ @libheif\/heif.h@
-}
heif_list_compatible_brands ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> BG.Ptr (BG.Ptr Heif_brand2)
     -- ^ __C declaration:__ @out_brands@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @out_size@
  -> IO Heif_error
heif_list_compatible_brands =
  \data'0 ->
    \len1 ->
      \out_brands2 ->
        \out_size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_db37863ff0bc30e9 data'0 len1 out_brands2 out_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_free_list_of_compatible_brands@
foreign import ccall unsafe "hs_bindgen_0bf00e8ab2fd5553" hs_bindgen_0bf00e8ab2fd5553_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_free_list_of_compatible_brands@
hs_bindgen_0bf00e8ab2fd5553 ::
     BG.Ptr Heif_brand2
  -> IO ()
hs_bindgen_0bf00e8ab2fd5553 =
  BG.fromFFIType hs_bindgen_0bf00e8ab2fd5553_base

{-| __C declaration:__ @heif_free_list_of_compatible_brands@

    __defined at:__ @libheif\/heif_brands.h 297:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_free_list_of_compatible_brands ::
     BG.Ptr Heif_brand2
     -- ^ __C declaration:__ @brands_list@
  -> IO ()
heif_free_list_of_compatible_brands =
  hs_bindgen_0bf00e8ab2fd5553

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_file_mime_type@
foreign import ccall unsafe "hs_bindgen_083f69c89da808ac" hs_bindgen_083f69c89da808ac_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_file_mime_type@
hs_bindgen_083f69c89da808ac ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_083f69c89da808ac =
  BG.fromFFIType hs_bindgen_083f69c89da808ac_base

{-| __C declaration:__ @heif_get_file_mime_type@

    __defined at:__ @libheif\/heif_brands.h 318:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_file_mime_type ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_get_file_mime_type = hs_bindgen_083f69c89da808ac

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_check_filetype@
foreign import ccall unsafe "hs_bindgen_2c11695134f8ae7a" hs_bindgen_2c11695134f8ae7a_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_check_filetype@
hs_bindgen_2c11695134f8ae7a ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_filetype_result
hs_bindgen_2c11695134f8ae7a =
  BG.fromFFIType hs_bindgen_2c11695134f8ae7a_base

{-| __C declaration:__ @heif_check_filetype@

    __defined at:__ @libheif\/heif_brands.h 333:27@

    __exported by:__ @libheif\/heif.h@
-}
heif_check_filetype ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO Heif_filetype_result
heif_check_filetype = hs_bindgen_2c11695134f8ae7a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_has_compatible_filetype@
foreign import ccall unsafe "hs_bindgen_2e7bbe04a9324a3c" hs_bindgen_2e7bbe04a9324a3c_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_has_compatible_filetype@
hs_bindgen_2e7bbe04a9324a3c ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_2e7bbe04a9324a3c =
  BG.fromFFIType hs_bindgen_2e7bbe04a9324a3c_base

{-| __C declaration:__ @heif_has_compatible_filetype@

    __defined at:__ @libheif\/heif_brands.h 345:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_has_compatible_filetype ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO Heif_error
heif_has_compatible_filetype =
  \data'0 ->
    \len1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_2e7bbe04a9324a3c data'0 len1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_check_jpeg_filetype@
foreign import ccall unsafe "hs_bindgen_38f46e68912e8abc" hs_bindgen_38f46e68912e8abc_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_check_jpeg_filetype@
hs_bindgen_38f46e68912e8abc ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_38f46e68912e8abc =
  BG.fromFFIType hs_bindgen_38f46e68912e8abc_base

{-| __C declaration:__ @heif_check_jpeg_filetype@

    __defined at:__ @libheif\/heif_brands.h 348:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_check_jpeg_filetype ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO BG.CInt
heif_check_jpeg_filetype =
  hs_bindgen_38f46e68912e8abc

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_main_brand@
foreign import ccall unsafe "hs_bindgen_fdd065dc05fa657e" hs_bindgen_fdd065dc05fa657e_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_main_brand@
hs_bindgen_fdd065dc05fa657e ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand
hs_bindgen_fdd065dc05fa657e =
  BG.fromFFIType hs_bindgen_fdd065dc05fa657e_base

{-| __C declaration:__ @heif_main_brand@

    __defined at:__ @libheif\/heif_brands.h 379:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_main_brand ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @len@
  -> IO Heif_brand
heif_main_brand = hs_bindgen_fdd065dc05fa657e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_metadata_compression_method_supported@
foreign import ccall unsafe "hs_bindgen_99b5ad50a3519f42" hs_bindgen_99b5ad50a3519f42_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_metadata_compression_method_supported@
hs_bindgen_99b5ad50a3519f42 ::
     Heif_metadata_compression
  -> IO BG.CInt
hs_bindgen_99b5ad50a3519f42 =
  BG.fromFFIType hs_bindgen_99b5ad50a3519f42_base

{-| __C declaration:__ @heif_metadata_compression_method_supported@

    __defined at:__ @libheif\/heif_metadata.h 42:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_metadata_compression_method_supported ::
     Heif_metadata_compression
     -- ^ __C declaration:__ @method@
  -> IO BG.CInt
heif_metadata_compression_method_supported =
  hs_bindgen_99b5ad50a3519f42

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_metadata_blocks@
foreign import ccall unsafe "hs_bindgen_ed1b3c7730ce9adc" hs_bindgen_ed1b3c7730ce9adc_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_metadata_blocks@
hs_bindgen_ed1b3c7730ce9adc ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_ed1b3c7730ce9adc =
  BG.fromFFIType hs_bindgen_ed1b3c7730ce9adc_base

{-| __C declaration:__ @heif_image_handle_get_number_of_metadata_blocks@

    __defined at:__ @libheif\/heif_metadata.h 49:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_metadata_blocks ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @type_filter@
  -> IO BG.CInt
heif_image_handle_get_number_of_metadata_blocks =
  hs_bindgen_ed1b3c7730ce9adc

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_metadata_block_IDs@
foreign import ccall unsafe "hs_bindgen_ff545c340ebcc9e1" hs_bindgen_ff545c340ebcc9e1_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_metadata_block_IDs@
hs_bindgen_ff545c340ebcc9e1 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_ff545c340ebcc9e1 =
  BG.fromFFIType hs_bindgen_ff545c340ebcc9e1_base

{-| __C declaration:__ @heif_image_handle_get_list_of_metadata_block_IDs@

    __defined at:__ @libheif\/heif_metadata.h 55:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_list_of_metadata_block_IDs ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @type_filter@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @ids@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_image_handle_get_list_of_metadata_block_IDs =
  hs_bindgen_ff545c340ebcc9e1

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_type@
foreign import ccall unsafe "hs_bindgen_5b79154e3bf116be" hs_bindgen_5b79154e3bf116be_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_type@
hs_bindgen_5b79154e3bf116be ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_5b79154e3bf116be =
  BG.fromFFIType hs_bindgen_5b79154e3bf116be_base

{-| __C declaration:__ @heif_image_handle_get_metadata_type@

    __defined at:__ @libheif\/heif_metadata.h 64:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_metadata_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @metadata_id@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_metadata_type =
  hs_bindgen_5b79154e3bf116be

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_content_type@
foreign import ccall unsafe "hs_bindgen_93d17d0350046b0f" hs_bindgen_93d17d0350046b0f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_content_type@
hs_bindgen_93d17d0350046b0f ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_93d17d0350046b0f =
  BG.fromFFIType hs_bindgen_93d17d0350046b0f_base

{-| __C declaration:__ @heif_image_handle_get_metadata_content_type@

    __defined at:__ @libheif\/heif_metadata.h 70:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_metadata_content_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @metadata_id@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_metadata_content_type =
  hs_bindgen_93d17d0350046b0f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_size@
foreign import ccall unsafe "hs_bindgen_e0031552d6b50a40" hs_bindgen_e0031552d6b50a40_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word64

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_size@
hs_bindgen_e0031552d6b50a40 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_e0031552d6b50a40 =
  BG.fromFFIType hs_bindgen_e0031552d6b50a40_base

{-| __C declaration:__ @heif_image_handle_get_metadata_size@

    __defined at:__ @libheif\/heif_metadata.h 75:8@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_metadata_size ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @metadata_id@
  -> IO HsBindgen.Runtime.LibC.CSize
heif_image_handle_get_metadata_size =
  hs_bindgen_e0031552d6b50a40

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata@
foreign import ccall unsafe "hs_bindgen_bf83eab617592597" hs_bindgen_bf83eab617592597_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata@
hs_bindgen_bf83eab617592597 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_bf83eab617592597 =
  BG.fromFFIType hs_bindgen_bf83eab617592597_base

{-| __C declaration:__ @heif_image_handle_get_metadata@

    __defined at:__ @libheif\/heif_metadata.h 83:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_metadata ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @metadata_id@
  -> BG.Ptr BG.Void
     -- ^ __C declaration:__ @out_data@
  -> IO Heif_error
heif_image_handle_get_metadata =
  \handle0 ->
    \metadata_id1 ->
      \out_data2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_bf83eab617592597 handle0 metadata_id1 out_data2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_item_uri_type@
foreign import ccall unsafe "hs_bindgen_2bda88c8a294819f" hs_bindgen_2bda88c8a294819f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_metadata_item_uri_type@
hs_bindgen_2bda88c8a294819f ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_2bda88c8a294819f =
  BG.fromFFIType hs_bindgen_2bda88c8a294819f_base

{-| __C declaration:__ @heif_image_handle_get_metadata_item_uri_type@

    __defined at:__ @libheif\/heif_metadata.h 89:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_metadata_item_uri_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @metadata_id@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_metadata_item_uri_type =
  hs_bindgen_2bda88c8a294819f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_exif_metadata@
foreign import ccall unsafe "hs_bindgen_8cc5bc61773d6f99" hs_bindgen_8cc5bc61773d6f99_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_exif_metadata@
hs_bindgen_8cc5bc61773d6f99 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8cc5bc61773d6f99 =
  BG.fromFFIType hs_bindgen_8cc5bc61773d6f99_base

{-| __C declaration:__ @heif_context_add_exif_metadata@

    __defined at:__ @libheif\/heif_metadata.h 96:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_exif_metadata ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @size@
  -> IO Heif_error
heif_context_add_exif_metadata =
  \x0 ->
    \image_handle1 ->
      \data'2 ->
        \size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_8cc5bc61773d6f99 x0 image_handle1 data'2 size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_XMP_metadata@
foreign import ccall unsafe "hs_bindgen_43ab7c8e6e51b6f6" hs_bindgen_43ab7c8e6e51b6f6_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_XMP_metadata@
hs_bindgen_43ab7c8e6e51b6f6 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_43ab7c8e6e51b6f6 =
  BG.fromFFIType hs_bindgen_43ab7c8e6e51b6f6_base

{-| __C declaration:__ @heif_context_add_XMP_metadata@

    __defined at:__ @libheif\/heif_metadata.h 102:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_XMP_metadata ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @size@
  -> IO Heif_error
heif_context_add_XMP_metadata =
  \x0 ->
    \image_handle1 ->
      \data'2 ->
        \size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_43ab7c8e6e51b6f6 x0 image_handle1 data'2 size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_XMP_metadata2@
foreign import ccall unsafe "hs_bindgen_690fe9f2d3331fbe" hs_bindgen_690fe9f2d3331fbe_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_XMP_metadata2@
hs_bindgen_690fe9f2d3331fbe ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> Heif_metadata_compression
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_690fe9f2d3331fbe =
  BG.fromFFIType hs_bindgen_690fe9f2d3331fbe_base

{-| __C declaration:__ @heif_context_add_XMP_metadata2@

    __defined at:__ @libheif\/heif_metadata.h 108:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_XMP_metadata2 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @size@
  -> Heif_metadata_compression
     -- ^ __C declaration:__ @compression@
  -> IO Heif_error
heif_context_add_XMP_metadata2 =
  \x0 ->
    \image_handle1 ->
      \data'2 ->
        \size3 ->
          \compression4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_690fe9f2d3331fbe x0 image_handle1 data'2 size3 compression4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_generic_metadata@
foreign import ccall unsafe "hs_bindgen_43798e780a11e8ae" hs_bindgen_43798e780a11e8ae_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_generic_metadata@
hs_bindgen_43798e780a11e8ae ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_43798e780a11e8ae =
  BG.fromFFIType hs_bindgen_43798e780a11e8ae_base

{-| __C declaration:__ @heif_context_add_generic_metadata@

    __defined at:__ @libheif\/heif_metadata.h 118:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_generic_metadata ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @size@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @item_type@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @content_type@
  -> IO Heif_error
heif_context_add_generic_metadata =
  \ctx0 ->
    \image_handle1 ->
      \data'2 ->
        \size3 ->
          \item_type4 ->
            \content_type5 ->
              BG.allocaAndPeek (\res6 ->
                                  hs_bindgen_43798e780a11e8ae ctx0 image_handle1 data'2 size3 item_type4 content_type5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_generic_uri_metadata@
foreign import ccall unsafe "hs_bindgen_6f6e7853ece6bfaf" hs_bindgen_6f6e7853ece6bfaf_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_generic_uri_metadata@
hs_bindgen_6f6e7853ece6bfaf ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_item_id
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_6f6e7853ece6bfaf =
  BG.fromFFIType hs_bindgen_6f6e7853ece6bfaf_base

{-| __C declaration:__ @heif_context_add_generic_uri_metadata@

    __defined at:__ @libheif\/heif_metadata.h 126:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_generic_uri_metadata ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @data@
  -> BG.CInt
     -- ^ __C declaration:__ @size@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @item_uri_type@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @out_item_id@
  -> IO Heif_error
heif_context_add_generic_uri_metadata =
  \ctx0 ->
    \image_handle1 ->
      \data'2 ->
        \size3 ->
          \item_uri_type4 ->
            \out_item_id5 ->
              BG.allocaAndPeek (\res6 ->
                                  hs_bindgen_6f6e7853ece6bfaf ctx0 image_handle1 data'2 size3 item_uri_type4 out_item_id5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_depth_image@
foreign import ccall unsafe "hs_bindgen_ef96d03b5ecf889c" hs_bindgen_ef96d03b5ecf889c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_depth_image@
hs_bindgen_ef96d03b5ecf889c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_ef96d03b5ecf889c =
  BG.fromFFIType hs_bindgen_ef96d03b5ecf889c_base

{-| __C declaration:__ @heif_image_handle_has_depth_image@

    __defined at:__ @libheif\/heif_aux_images.h 39:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_depth_image ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_depth_image =
  hs_bindgen_ef96d03b5ecf889c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_depth_images@
foreign import ccall unsafe "hs_bindgen_4c02e1b7273148ce" hs_bindgen_4c02e1b7273148ce_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_depth_images@
hs_bindgen_4c02e1b7273148ce ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_4c02e1b7273148ce =
  BG.fromFFIType hs_bindgen_4c02e1b7273148ce_base

{-| __C declaration:__ @heif_image_handle_get_number_of_depth_images@

    __defined at:__ @libheif\/heif_aux_images.h 42:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_depth_images ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_number_of_depth_images =
  hs_bindgen_4c02e1b7273148ce

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_depth_image_IDs@
foreign import ccall unsafe "hs_bindgen_46dac6a04d58d802" hs_bindgen_46dac6a04d58d802_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_depth_image_IDs@
hs_bindgen_46dac6a04d58d802 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_46dac6a04d58d802 =
  BG.fromFFIType hs_bindgen_46dac6a04d58d802_base

{-| __C declaration:__ @heif_image_handle_get_list_of_depth_image_IDs@

    __defined at:__ @libheif\/heif_aux_images.h 45:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_list_of_depth_image_IDs ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @ids@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_image_handle_get_list_of_depth_image_IDs =
  hs_bindgen_46dac6a04d58d802

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_depth_image_handle@
foreign import ccall unsafe "hs_bindgen_530a9c047a8545b8" hs_bindgen_530a9c047a8545b8_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_depth_image_handle@
hs_bindgen_530a9c047a8545b8 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_530a9c047a8545b8 =
  BG.fromFFIType hs_bindgen_530a9c047a8545b8_base

{-| __C declaration:__ @heif_image_handle_get_depth_image_handle@

    __defined at:__ @libheif\/heif_aux_images.h 49:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_depth_image_handle ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @depth_image_id@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_depth_handle@
  -> IO Heif_error
heif_image_handle_get_depth_image_handle =
  \handle0 ->
    \depth_image_id1 ->
      \out_depth_handle2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_530a9c047a8545b8 handle0 depth_image_id1 out_depth_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_depth_representation_info_free@
foreign import ccall unsafe "hs_bindgen_029d797a2655b5de" hs_bindgen_029d797a2655b5de_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_depth_representation_info_free@
hs_bindgen_029d797a2655b5de ::
     PtrConst.PtrConst Heif_depth_representation_info
  -> IO ()
hs_bindgen_029d797a2655b5de =
  BG.fromFFIType hs_bindgen_029d797a2655b5de_base

{-| __C declaration:__ @heif_depth_representation_info_free@

    __defined at:__ @libheif\/heif_aux_images.h 87:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_depth_representation_info_free ::
     PtrConst.PtrConst Heif_depth_representation_info
     -- ^ __C declaration:__ @info@
  -> IO ()
heif_depth_representation_info_free =
  hs_bindgen_029d797a2655b5de

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_depth_image_representation_info@
foreign import ccall unsafe "hs_bindgen_a73687120cab3c71" hs_bindgen_a73687120cab3c71_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_depth_image_representation_info@
hs_bindgen_a73687120cab3c71 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (PtrConst.PtrConst Heif_depth_representation_info)
  -> IO BG.CInt
hs_bindgen_a73687120cab3c71 =
  BG.fromFFIType hs_bindgen_a73687120cab3c71_base

{-| __C declaration:__ @heif_image_handle_get_depth_image_representation_info@

    __defined at:__ @libheif\/heif_aux_images.h 95:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_depth_image_representation_info ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @depth_image_id@
  -> BG.Ptr (PtrConst.PtrConst Heif_depth_representation_info)
     -- ^ __C declaration:__ @out@
  -> IO BG.CInt
heif_image_handle_get_depth_image_representation_info =
  hs_bindgen_a73687120cab3c71

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_thumbnails@
foreign import ccall unsafe "hs_bindgen_3b94607899266366" hs_bindgen_3b94607899266366_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_thumbnails@
hs_bindgen_3b94607899266366 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_3b94607899266366 =
  BG.fromFFIType hs_bindgen_3b94607899266366_base

{-| __C declaration:__ @heif_image_handle_get_number_of_thumbnails@

    __defined at:__ @libheif\/heif_aux_images.h 105:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_thumbnails ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_number_of_thumbnails =
  hs_bindgen_3b94607899266366

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_thumbnail_IDs@
foreign import ccall unsafe "hs_bindgen_12436f324557ab0b" hs_bindgen_12436f324557ab0b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_thumbnail_IDs@
hs_bindgen_12436f324557ab0b ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_12436f324557ab0b =
  BG.fromFFIType hs_bindgen_12436f324557ab0b_base

{-| __C declaration:__ @heif_image_handle_get_list_of_thumbnail_IDs@

    __defined at:__ @libheif\/heif_aux_images.h 108:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_list_of_thumbnail_IDs ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @ids@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_image_handle_get_list_of_thumbnail_IDs =
  hs_bindgen_12436f324557ab0b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_thumbnail@
foreign import ccall unsafe "hs_bindgen_cbd2548e91d4b099" hs_bindgen_cbd2548e91d4b099_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_thumbnail@
hs_bindgen_cbd2548e91d4b099 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_cbd2548e91d4b099 =
  BG.fromFFIType hs_bindgen_cbd2548e91d4b099_base

{-| __C declaration:__ @heif_image_handle_get_thumbnail@

    __defined at:__ @libheif\/heif_aux_images.h 113:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_thumbnail ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @main_image_handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @thumbnail_id@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_thumbnail_handle@
  -> IO Heif_error
heif_image_handle_get_thumbnail =
  \main_image_handle0 ->
    \thumbnail_id1 ->
      \out_thumbnail_handle2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_cbd2548e91d4b099 main_image_handle0 thumbnail_id1 out_thumbnail_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_thumbnail@
foreign import ccall unsafe "hs_bindgen_d7fa83d73e654632" hs_bindgen_d7fa83d73e654632_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_thumbnail@
hs_bindgen_d7fa83d73e654632 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_encoder
  -> PtrConst.PtrConst Heif_encoding_options
  -> BG.CInt
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d7fa83d73e654632 =
  BG.fromFFIType hs_bindgen_d7fa83d73e654632_base

{-| __C declaration:__ @heif_context_encode_thumbnail@

    __defined at:__ @libheif\/heif_aux_images.h 126:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_encode_thumbnail ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @master_image_handle@
  -> BG.Ptr Heif_encoder
     -- ^ __C declaration:__ @encoder@
  -> PtrConst.PtrConst Heif_encoding_options
     -- ^ __C declaration:__ @options@
  -> BG.CInt
     -- ^ __C declaration:__ @bbox_size@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_thumb_image_handle@
  -> IO Heif_error
heif_context_encode_thumbnail =
  \x0 ->
    \image1 ->
      \master_image_handle2 ->
        \encoder3 ->
          \options4 ->
            \bbox_size5 ->
              \out_thumb_image_handle6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_d7fa83d73e654632 x0 image1 master_image_handle2 encoder3 options4 bbox_size5 out_thumb_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_assign_thumbnail@
foreign import ccall unsafe "hs_bindgen_b6b843db159f83b1" hs_bindgen_b6b843db159f83b1_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_assign_thumbnail@
hs_bindgen_b6b843db159f83b1 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_b6b843db159f83b1 =
  BG.fromFFIType hs_bindgen_b6b843db159f83b1_base

{-| __C declaration:__ @heif_context_assign_thumbnail@

    __defined at:__ @libheif\/heif_aux_images.h 136:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_assign_thumbnail ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @master_image@
  -> PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @thumbnail_image@
  -> IO Heif_error
heif_context_assign_thumbnail =
  \x0 ->
    \master_image1 ->
      \thumbnail_image2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_b6b843db159f83b1 x0 master_image1 thumbnail_image2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_auxiliary_images@
foreign import ccall unsafe "hs_bindgen_a07388633c39d124" hs_bindgen_a07388633c39d124_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_auxiliary_images@
hs_bindgen_a07388633c39d124 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_a07388633c39d124 =
  BG.fromFFIType hs_bindgen_a07388633c39d124_base

{-| __C declaration:__ @heif_image_handle_get_number_of_auxiliary_images@

    __defined at:__ @libheif\/heif_aux_images.h 148:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_auxiliary_images ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.CInt
     -- ^ __C declaration:__ @aux_filter@
  -> IO BG.CInt
heif_image_handle_get_number_of_auxiliary_images =
  hs_bindgen_a07388633c39d124

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_auxiliary_image_IDs@
foreign import ccall unsafe "hs_bindgen_7826be70e6d91574" hs_bindgen_7826be70e6d91574_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_list_of_auxiliary_image_IDs@
hs_bindgen_7826be70e6d91574 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_7826be70e6d91574 =
  BG.fromFFIType hs_bindgen_7826be70e6d91574_base

{-| __C declaration:__ @heif_image_handle_get_list_of_auxiliary_image_IDs@

    __defined at:__ @libheif\/heif_aux_images.h 152:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_list_of_auxiliary_image_IDs ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.CInt
     -- ^ __C declaration:__ @aux_filter@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @ids@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_image_handle_get_list_of_auxiliary_image_IDs =
  hs_bindgen_7826be70e6d91574

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_auxiliary_type@
foreign import ccall unsafe "hs_bindgen_f6bf51713dbde24e" hs_bindgen_f6bf51713dbde24e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_auxiliary_type@
hs_bindgen_f6bf51713dbde24e ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_f6bf51713dbde24e =
  BG.fromFFIType hs_bindgen_f6bf51713dbde24e_base

{-| __C declaration:__ @heif_image_handle_get_auxiliary_type@

    __defined at:__ @libheif\/heif_aux_images.h 158:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_auxiliary_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
     -- ^ __C declaration:__ @out_type@
  -> IO Heif_error
heif_image_handle_get_auxiliary_type =
  \handle0 ->
    \out_type1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_f6bf51713dbde24e handle0 out_type1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_release_auxiliary_type@
foreign import ccall unsafe "hs_bindgen_03aca62850d5d65f" hs_bindgen_03aca62850d5d65f_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_release_auxiliary_type@
hs_bindgen_03aca62850d5d65f ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_03aca62850d5d65f =
  BG.fromFFIType hs_bindgen_03aca62850d5d65f_base

{-| __C declaration:__ @heif_image_handle_release_auxiliary_type@

    __defined at:__ @libheif\/heif_aux_images.h 162:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_release_auxiliary_type ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
     -- ^ __C declaration:__ @out_type@
  -> IO ()
heif_image_handle_release_auxiliary_type =
  hs_bindgen_03aca62850d5d65f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_auxiliary_image_handle@
foreign import ccall unsafe "hs_bindgen_38168275ff826772" hs_bindgen_38168275ff826772_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_auxiliary_image_handle@
hs_bindgen_38168275ff826772 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_38168275ff826772 =
  BG.fromFFIType hs_bindgen_38168275ff826772_base

{-| __C declaration:__ @heif_image_handle_get_auxiliary_image_handle@

    __defined at:__ @libheif\/heif_aux_images.h 167:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_auxiliary_image_handle ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @main_image_handle@
  -> Heif_item_id
     -- ^ __C declaration:__ @auxiliary_id@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_auxiliary_handle@
  -> IO Heif_error
heif_image_handle_get_auxiliary_image_handle =
  \main_image_handle0 ->
    \auxiliary_id1 ->
      \out_auxiliary_handle2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_38168275ff826772 main_image_handle0 auxiliary_id1 out_auxiliary_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_free_auxiliary_types@
foreign import ccall unsafe "hs_bindgen_6f5a921cd33ac8ee" hs_bindgen_6f5a921cd33ac8ee_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_free_auxiliary_types@
hs_bindgen_6f5a921cd33ac8ee ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_6f5a921cd33ac8ee =
  BG.fromFFIType hs_bindgen_6f5a921cd33ac8ee_base

{-| __C declaration:__ @heif_image_handle_free_auxiliary_types@

    __defined at:__ @libheif\/heif_aux_images.h 175:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_free_auxiliary_types ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
     -- ^ __C declaration:__ @out_type@
  -> IO ()
heif_image_handle_free_auxiliary_types =
  hs_bindgen_6f5a921cd33ac8ee

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_entity_groups@
foreign import ccall unsafe "hs_bindgen_ae6bb46cb10ef49b" hs_bindgen_ae6bb46cb10ef49b_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_entity_groups@
hs_bindgen_ae6bb46cb10ef49b ::
     PtrConst.PtrConst Heif_context
  -> HsBindgen.Runtime.LibC.Word32
  -> Heif_item_id
  -> BG.Ptr BG.CInt
  -> IO (BG.Ptr Heif_entity_group)
hs_bindgen_ae6bb46cb10ef49b =
  BG.fromFFIType hs_bindgen_ae6bb46cb10ef49b_base

{-| __C declaration:__ @heif_context_get_entity_groups@

    __defined at:__ @libheif\/heif_entity_groups.h 46:20@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_entity_groups ::
     PtrConst.PtrConst Heif_context
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @type_filter@
  -> Heif_item_id
     -- ^ __C declaration:__ @item_filter@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @out_num_groups@
  -> IO (BG.Ptr Heif_entity_group)
heif_context_get_entity_groups =
  hs_bindgen_ae6bb46cb10ef49b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_entity_groups_release@
foreign import ccall unsafe "hs_bindgen_ccbaf41a25b5fc17" hs_bindgen_ccbaf41a25b5fc17_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_entity_groups_release@
hs_bindgen_ccbaf41a25b5fc17 ::
     BG.Ptr Heif_entity_group
  -> BG.CInt
  -> IO ()
hs_bindgen_ccbaf41a25b5fc17 =
  BG.fromFFIType hs_bindgen_ccbaf41a25b5fc17_base

{-| __C declaration:__ @heif_entity_groups_release@

    __defined at:__ @libheif\/heif_entity_groups.h 53:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_entity_groups_release ::
     BG.Ptr Heif_entity_group
  -> BG.CInt
     -- ^ __C declaration:__ @num_groups@
  -> IO ()
heif_entity_groups_release =
  hs_bindgen_ccbaf41a25b5fc17

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_global_security_limits@
foreign import ccall unsafe "hs_bindgen_0bd62767a85d72e4" hs_bindgen_0bd62767a85d72e4_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_global_security_limits@
hs_bindgen_0bd62767a85d72e4 :: IO (PtrConst.PtrConst Heif_security_limits)
hs_bindgen_0bd62767a85d72e4 =
  BG.fromFFIType hs_bindgen_0bd62767a85d72e4_base

{-| __C declaration:__ @heif_get_global_security_limits@

    __defined at:__ @libheif\/heif_security.h 94:29@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_global_security_limits :: IO (PtrConst.PtrConst Heif_security_limits)
heif_get_global_security_limits =
  hs_bindgen_0bd62767a85d72e4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_disabled_security_limits@
foreign import ccall unsafe "hs_bindgen_1898bc2f36224985" hs_bindgen_1898bc2f36224985_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_disabled_security_limits@
hs_bindgen_1898bc2f36224985 :: IO (PtrConst.PtrConst Heif_security_limits)
hs_bindgen_1898bc2f36224985 =
  BG.fromFFIType hs_bindgen_1898bc2f36224985_base

{-| __C declaration:__ @heif_get_disabled_security_limits@

    __defined at:__ @libheif\/heif_security.h 98:29@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_disabled_security_limits :: IO (PtrConst.PtrConst Heif_security_limits)
heif_get_disabled_security_limits =
  hs_bindgen_1898bc2f36224985

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_security_limits@
foreign import ccall unsafe "hs_bindgen_2a5ca5c742b8d454" hs_bindgen_2a5ca5c742b8d454_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_security_limits@
hs_bindgen_2a5ca5c742b8d454 ::
     PtrConst.PtrConst Heif_context
  -> IO (BG.Ptr Heif_security_limits)
hs_bindgen_2a5ca5c742b8d454 =
  BG.fromFFIType hs_bindgen_2a5ca5c742b8d454_base

{-| __C declaration:__ @heif_context_get_security_limits@

    __defined at:__ @libheif\/heif_security.h 103:23@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_security_limits ::
     PtrConst.PtrConst Heif_context
  -> IO (BG.Ptr Heif_security_limits)
heif_context_get_security_limits =
  hs_bindgen_2a5ca5c742b8d454

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_security_limits@
foreign import ccall unsafe "hs_bindgen_8ac69b76d966cf30" hs_bindgen_8ac69b76d966cf30_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_security_limits@
hs_bindgen_8ac69b76d966cf30 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_security_limits
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8ac69b76d966cf30 =
  BG.fromFFIType hs_bindgen_8ac69b76d966cf30_base

{-| __C declaration:__ @heif_context_set_security_limits@

    __defined at:__ @libheif\/heif_security.h 108:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_security_limits ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_security_limits
  -> IO Heif_error
heif_context_set_security_limits =
  \x0 ->
    \x1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_8ac69b76d966cf30 x0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_maximum_image_size_limit@
foreign import ccall unsafe "hs_bindgen_63f91ddf3fdf9157" hs_bindgen_63f91ddf3fdf9157_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_maximum_image_size_limit@
hs_bindgen_63f91ddf3fdf9157 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_63f91ddf3fdf9157 =
  BG.fromFFIType hs_bindgen_63f91ddf3fdf9157_base

{-| __C declaration:__ @heif_context_set_maximum_image_size_limit@

    __defined at:__ @libheif\/heif_security.h 117:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_maximum_image_size_limit ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.CInt
     -- ^ __C declaration:__ @maximum_width@
  -> IO ()
heif_context_set_maximum_image_size_limit =
  hs_bindgen_63f91ddf3fdf9157

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_alloc@
foreign import ccall unsafe "hs_bindgen_5072fed60822f439" hs_bindgen_5072fed60822f439_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_alloc@
hs_bindgen_5072fed60822f439 :: IO (BG.Ptr Heif_context)
hs_bindgen_5072fed60822f439 =
  BG.fromFFIType hs_bindgen_5072fed60822f439_base

{-| __C declaration:__ @heif_context_alloc@

    __defined at:__ @libheif\/heif_context.h 130:15@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_alloc :: IO (BG.Ptr Heif_context)
heif_context_alloc = hs_bindgen_5072fed60822f439

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_free@
foreign import ccall unsafe "hs_bindgen_d4224d2b144531cf" hs_bindgen_d4224d2b144531cf_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_free@
hs_bindgen_d4224d2b144531cf ::
     BG.Ptr Heif_context
  -> IO ()
hs_bindgen_d4224d2b144531cf =
  BG.fromFFIType hs_bindgen_d4224d2b144531cf_base

{-| __C declaration:__ @heif_context_free@

    __defined at:__ @libheif\/heif_context.h 134:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_free ::
     BG.Ptr Heif_context
  -> IO ()
heif_context_free = hs_bindgen_d4224d2b144531cf

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_file@
foreign import ccall unsafe "hs_bindgen_6a121ee485ba22bf" hs_bindgen_6a121ee485ba22bf_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_file@
hs_bindgen_6a121ee485ba22bf ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_6a121ee485ba22bf =
  BG.fromFFIType hs_bindgen_6a121ee485ba22bf_base

{-| __C declaration:__ @heif_context_read_from_file@

    __defined at:__ @libheif\/heif_context.h 237:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_read_from_file ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @filename@
  -> PtrConst.PtrConst Heif_reading_options
  -> IO Heif_error
heif_context_read_from_file =
  \x0 ->
    \filename1 ->
      \x2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_6a121ee485ba22bf x0 filename1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_memory@
foreign import ccall unsafe "hs_bindgen_174457bbb7c8bbd2" hs_bindgen_174457bbb7c8bbd2_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word64
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_memory@
hs_bindgen_174457bbb7c8bbd2 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_174457bbb7c8bbd2 =
  BG.fromFFIType hs_bindgen_174457bbb7c8bbd2_base

{-| __C declaration:__ @heif_context_read_from_memory@

    __defined at:__ @libheif\/heif_context.h 244:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_read_from_memory ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @mem@
  -> HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @size@
  -> PtrConst.PtrConst Heif_reading_options
  -> IO Heif_error
heif_context_read_from_memory =
  \x0 ->
    \mem1 ->
      \size2 ->
        \x3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_174457bbb7c8bbd2 x0 mem1 size2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_memory_without_copy@
foreign import ccall unsafe "hs_bindgen_fcf75bd82a2068c9" hs_bindgen_fcf75bd82a2068c9_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word64
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_memory_without_copy@
hs_bindgen_fcf75bd82a2068c9 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_fcf75bd82a2068c9 =
  BG.fromFFIType hs_bindgen_fcf75bd82a2068c9_base

{-| __C declaration:__ @heif_context_read_from_memory_without_copy@

    __defined at:__ @libheif\/heif_context.h 251:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_read_from_memory_without_copy ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
     -- ^ __C declaration:__ @mem@
  -> HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @size@
  -> PtrConst.PtrConst Heif_reading_options
  -> IO Heif_error
heif_context_read_from_memory_without_copy =
  \x0 ->
    \mem1 ->
      \size2 ->
        \x3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_fcf75bd82a2068c9 x0 mem1 size2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_reader@
foreign import ccall unsafe "hs_bindgen_30a7fb98ea82638e" hs_bindgen_30a7fb98ea82638e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_read_from_reader@
hs_bindgen_30a7fb98ea82638e ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_reader
  -> BG.Ptr BG.Void
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_30a7fb98ea82638e =
  BG.fromFFIType hs_bindgen_30a7fb98ea82638e_base

{-| __C declaration:__ @heif_context_read_from_reader@

    __defined at:__ @libheif\/heif_context.h 256:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_read_from_reader ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_reader
     -- ^ __C declaration:__ @reader@
  -> BG.Ptr BG.Void
     -- ^ __C declaration:__ @userdata@
  -> PtrConst.PtrConst Heif_reading_options
  -> IO Heif_error
heif_context_read_from_reader =
  \x0 ->
    \reader1 ->
      \userdata2 ->
        \x3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_30a7fb98ea82638e x0 reader1 userdata2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_number_of_top_level_images@
foreign import ccall unsafe "hs_bindgen_d022237e551807f9" hs_bindgen_d022237e551807f9_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_number_of_top_level_images@
hs_bindgen_d022237e551807f9 ::
     BG.Ptr Heif_context
  -> IO BG.CInt
hs_bindgen_d022237e551807f9 =
  BG.fromFFIType hs_bindgen_d022237e551807f9_base

{-| __C declaration:__ @heif_context_get_number_of_top_level_images@

    __defined at:__ @libheif\/heif_context.h 265:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_number_of_top_level_images ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> IO BG.CInt
heif_context_get_number_of_top_level_images =
  hs_bindgen_d022237e551807f9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_is_top_level_image_ID@
foreign import ccall unsafe "hs_bindgen_42c1e4344d442b11" hs_bindgen_42c1e4344d442b11_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_is_top_level_image_ID@
hs_bindgen_42c1e4344d442b11 ::
     BG.Ptr Heif_context
  -> Heif_item_id
  -> IO BG.CInt
hs_bindgen_42c1e4344d442b11 =
  BG.fromFFIType hs_bindgen_42c1e4344d442b11_base

{-| __C declaration:__ @heif_context_is_top_level_image_ID@

    __defined at:__ @libheif\/heif_context.h 268:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_is_top_level_image_ID ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> Heif_item_id
     -- ^ __C declaration:__ @id@
  -> IO BG.CInt
heif_context_is_top_level_image_ID =
  hs_bindgen_42c1e4344d442b11

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_list_of_top_level_image_IDs@
foreign import ccall unsafe "hs_bindgen_563deefc7bdc5b71" hs_bindgen_563deefc7bdc5b71_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_list_of_top_level_image_IDs@
hs_bindgen_563deefc7bdc5b71 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_563deefc7bdc5b71 =
  BG.fromFFIType hs_bindgen_563deefc7bdc5b71_base

{-| __C declaration:__ @heif_context_get_list_of_top_level_image_IDs@

    __defined at:__ @libheif\/heif_context.h 273:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_list_of_top_level_image_IDs ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @ID_array@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_context_get_list_of_top_level_image_IDs =
  hs_bindgen_563deefc7bdc5b71

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_primary_image_ID@
foreign import ccall unsafe "hs_bindgen_e211461a4b3d3f0b" hs_bindgen_e211461a4b3d3f0b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_primary_image_ID@
hs_bindgen_e211461a4b3d3f0b ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_item_id
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e211461a4b3d3f0b =
  BG.fromFFIType hs_bindgen_e211461a4b3d3f0b_base

{-| __C declaration:__ @heif_context_get_primary_image_ID@

    __defined at:__ @libheif\/heif_context.h 278:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_primary_image_ID ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @id@
  -> IO Heif_error
heif_context_get_primary_image_ID =
  \ctx0 ->
    \id1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_e211461a4b3d3f0b ctx0 id1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_primary_image_handle@
foreign import ccall unsafe "hs_bindgen_47dc3223f11aefec" hs_bindgen_47dc3223f11aefec_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_primary_image_handle@
hs_bindgen_47dc3223f11aefec ::
     BG.Ptr Heif_context
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_47dc3223f11aefec =
  BG.fromFFIType hs_bindgen_47dc3223f11aefec_base

{-| __C declaration:__ @heif_context_get_primary_image_handle@

    __defined at:__ @libheif\/heif_context.h 283:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_primary_image_handle ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> IO Heif_error
heif_context_get_primary_image_handle =
  \ctx0 ->
    \x1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_47dc3223f11aefec ctx0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_image_handle@
foreign import ccall unsafe "hs_bindgen_b49b56d6f03fcaf8" hs_bindgen_b49b56d6f03fcaf8_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_image_handle@
hs_bindgen_b49b56d6f03fcaf8 ::
     BG.Ptr Heif_context
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_b49b56d6f03fcaf8 =
  BG.fromFFIType hs_bindgen_b49b56d6f03fcaf8_base

{-| __C declaration:__ @heif_context_get_image_handle@

    __defined at:__ @libheif\/heif_context.h 288:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_image_handle ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> Heif_item_id
     -- ^ __C declaration:__ @id@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> IO Heif_error
heif_context_get_image_handle =
  \ctx0 ->
    \id1 ->
      \x2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_b49b56d6f03fcaf8 ctx0 id1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_debug_dump_boxes_to_file@
foreign import ccall unsafe "hs_bindgen_8d375594ebb1037b" hs_bindgen_8d375594ebb1037b_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_debug_dump_boxes_to_file@
hs_bindgen_8d375594ebb1037b ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_8d375594ebb1037b =
  BG.fromFFIType hs_bindgen_8d375594ebb1037b_base

{-| __C declaration:__ @heif_context_debug_dump_boxes_to_file@

    __defined at:__ @libheif\/heif_context.h 296:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_debug_dump_boxes_to_file ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.CInt
     -- ^ __C declaration:__ @fd@
  -> IO ()
heif_context_debug_dump_boxes_to_file =
  hs_bindgen_8d375594ebb1037b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_write_mini_format@
foreign import ccall unsafe "hs_bindgen_64075557c6a39094" hs_bindgen_64075557c6a39094_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_write_mini_format@
hs_bindgen_64075557c6a39094 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_64075557c6a39094 =
  BG.fromFFIType hs_bindgen_64075557c6a39094_base

{-| __C declaration:__ @heif_context_set_write_mini_format@

    __defined at:__ @libheif\/heif_context.h 309:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_write_mini_format ::
     BG.Ptr Heif_context
  -> BG.CInt
     -- ^ __C declaration:__ @enable@
  -> IO ()
heif_context_set_write_mini_format =
  hs_bindgen_64075557c6a39094

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_write_to_file@
foreign import ccall unsafe "hs_bindgen_4fcabf8d41da421f" hs_bindgen_4fcabf8d41da421f_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_write_to_file@
hs_bindgen_4fcabf8d41da421f ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4fcabf8d41da421f =
  BG.fromFFIType hs_bindgen_4fcabf8d41da421f_base

{-| __C declaration:__ @heif_context_write_to_file@

    __defined at:__ @libheif\/heif_context.h 316:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_write_to_file ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @filename@
  -> IO Heif_error
heif_context_write_to_file =
  \x0 ->
    \filename1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_4fcabf8d41da421f x0 filename1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_write@
foreign import ccall unsafe "hs_bindgen_dcde2d838b9789eb" hs_bindgen_dcde2d838b9789eb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_write@
hs_bindgen_dcde2d838b9789eb ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_writer
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_dcde2d838b9789eb =
  BG.fromFFIType hs_bindgen_dcde2d838b9789eb_base

{-| __C declaration:__ @heif_context_write@

    __defined at:__ @libheif\/heif_context.h 335:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_write ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_writer
     -- ^ __C declaration:__ @writer@
  -> BG.Ptr BG.Void
     -- ^ __C declaration:__ @userdata@
  -> IO Heif_error
heif_context_write =
  \x0 ->
    \writer1 ->
      \userdata2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_dcde2d838b9789eb x0 writer1 userdata2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_have_encoder_for_format@
foreign import ccall unsafe "hs_bindgen_8b4419bc4eb2363d" hs_bindgen_8b4419bc4eb2363d_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_have_encoder_for_format@
hs_bindgen_8b4419bc4eb2363d ::
     Heif_compression_format
  -> IO BG.CInt
hs_bindgen_8b4419bc4eb2363d =
  BG.fromFFIType hs_bindgen_8b4419bc4eb2363d_base

{-| __C declaration:__ @heif_have_encoder_for_format@

    __defined at:__ @libheif\/heif_encoding.h 63:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_have_encoder_for_format ::
     Heif_compression_format
     -- ^ __C declaration:__ @format@
  -> IO BG.CInt
heif_have_encoder_for_format =
  hs_bindgen_8b4419bc4eb2363d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_encoder_descriptors@
foreign import ccall unsafe "hs_bindgen_20792e040c32e0e8" hs_bindgen_20792e040c32e0e8_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_encoder_descriptors@
hs_bindgen_20792e040c32e0e8 ::
     Heif_compression_format
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_encoder_descriptor)
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_20792e040c32e0e8 =
  BG.fromFFIType hs_bindgen_20792e040c32e0e8_base

{-| __C declaration:__ @heif_get_encoder_descriptors@

    __defined at:__ @libheif\/heif_encoding.h 72:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_encoder_descriptors ::
     Heif_compression_format
     -- ^ __C declaration:__ @format_filter@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @name_filter@
  -> BG.Ptr (PtrConst.PtrConst Heif_encoder_descriptor)
     -- ^ __C declaration:__ @out_encoders@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_get_encoder_descriptors =
  hs_bindgen_20792e040c32e0e8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_name@
foreign import ccall unsafe "hs_bindgen_7378a87d06f64c7f" hs_bindgen_7378a87d06f64c7f_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_name@
hs_bindgen_7378a87d06f64c7f ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_7378a87d06f64c7f =
  BG.fromFFIType hs_bindgen_7378a87d06f64c7f_base

{-| __C declaration:__ @heif_encoder_descriptor_get_name@

    __defined at:__ @libheif\/heif_encoding.h 79:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_get_name ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
heif_encoder_descriptor_get_name =
  hs_bindgen_7378a87d06f64c7f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_id_name@
foreign import ccall unsafe "hs_bindgen_32132b83ae93dd0d" hs_bindgen_32132b83ae93dd0d_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_id_name@
hs_bindgen_32132b83ae93dd0d ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_32132b83ae93dd0d =
  BG.fromFFIType hs_bindgen_32132b83ae93dd0d_base

{-| __C declaration:__ @heif_encoder_descriptor_get_id_name@

    __defined at:__ @libheif\/heif_encoding.h 84:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_get_id_name ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
heif_encoder_descriptor_get_id_name =
  hs_bindgen_32132b83ae93dd0d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_compression_format@
foreign import ccall unsafe "hs_bindgen_516b3c831a5935aa" hs_bindgen_516b3c831a5935aa_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_get_compression_format@
hs_bindgen_516b3c831a5935aa ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO Heif_compression_format
hs_bindgen_516b3c831a5935aa =
  BG.fromFFIType hs_bindgen_516b3c831a5935aa_base

{-| __C declaration:__ @heif_encoder_descriptor_get_compression_format@

    __defined at:__ @libheif\/heif_encoding.h 88:1@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_get_compression_format ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO Heif_compression_format
heif_encoder_descriptor_get_compression_format =
  hs_bindgen_516b3c831a5935aa

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supports_lossy_compression@
foreign import ccall unsafe "hs_bindgen_387691abb58c5a8c" hs_bindgen_387691abb58c5a8c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supports_lossy_compression@
hs_bindgen_387691abb58c5a8c ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_387691abb58c5a8c =
  BG.fromFFIType hs_bindgen_387691abb58c5a8c_base

{-| __C declaration:__ @heif_encoder_descriptor_supports_lossy_compression@

    __defined at:__ @libheif\/heif_encoding.h 91:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_supports_lossy_compression ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
heif_encoder_descriptor_supports_lossy_compression =
  hs_bindgen_387691abb58c5a8c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supports_lossless_compression@
foreign import ccall unsafe "hs_bindgen_c3eff547363f97b7" hs_bindgen_c3eff547363f97b7_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supports_lossless_compression@
hs_bindgen_c3eff547363f97b7 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_c3eff547363f97b7 =
  BG.fromFFIType hs_bindgen_c3eff547363f97b7_base

{-| __C declaration:__ @heif_encoder_descriptor_supports_lossless_compression@

    __defined at:__ @libheif\/heif_encoding.h 94:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_supports_lossless_compression ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
heif_encoder_descriptor_supports_lossless_compression =
  hs_bindgen_c3eff547363f97b7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder@
foreign import ccall unsafe "hs_bindgen_4c48d2c2a159ab39" hs_bindgen_4c48d2c2a159ab39_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder@
hs_bindgen_4c48d2c2a159ab39 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_encoder_descriptor
  -> BG.Ptr (BG.Ptr Heif_encoder)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4c48d2c2a159ab39 =
  BG.fromFFIType hs_bindgen_4c48d2c2a159ab39_base

{-| __C declaration:__ @heif_context_get_encoder@

    __defined at:__ @libheif\/heif_encoding.h 99:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_encoder ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @context@
  -> PtrConst.PtrConst Heif_encoder_descriptor
  -> BG.Ptr (BG.Ptr Heif_encoder)
     -- ^ __C declaration:__ @out_encoder@
  -> IO Heif_error
heif_context_get_encoder =
  \context0 ->
    \x1 ->
      \out_encoder2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_4c48d2c2a159ab39 context0 x1 out_encoder2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder_for_format@
foreign import ccall unsafe "hs_bindgen_5bab8f03475ec97b" hs_bindgen_5bab8f03475ec97b_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder_for_format@
hs_bindgen_5bab8f03475ec97b ::
     BG.Ptr Heif_context
  -> Heif_compression_format
  -> BG.Ptr (BG.Ptr Heif_encoder)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_5bab8f03475ec97b =
  BG.fromFFIType hs_bindgen_5bab8f03475ec97b_base

{-| __C declaration:__ @heif_context_get_encoder_for_format@

    __defined at:__ @libheif\/heif_encoding.h 106:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_encoder_for_format ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @context@
  -> Heif_compression_format
     -- ^ __C declaration:__ @format@
  -> BG.Ptr (BG.Ptr Heif_encoder)
  -> IO Heif_error
heif_context_get_encoder_for_format =
  \context0 ->
    \format1 ->
      \x2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_5bab8f03475ec97b context0 format1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_release@
foreign import ccall unsafe "hs_bindgen_5be4df5257e0d63e" hs_bindgen_5be4df5257e0d63e_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_release@
hs_bindgen_5be4df5257e0d63e ::
     BG.Ptr Heif_encoder
  -> IO ()
hs_bindgen_5be4df5257e0d63e =
  BG.fromFFIType hs_bindgen_5be4df5257e0d63e_base

{-| __C declaration:__ @heif_encoder_release@

    __defined at:__ @libheif\/heif_encoding.h 114:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_release ::
     BG.Ptr Heif_encoder
  -> IO ()
heif_encoder_release = hs_bindgen_5be4df5257e0d63e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_name@
foreign import ccall unsafe "hs_bindgen_55e2efba5427c071" hs_bindgen_55e2efba5427c071_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_name@
hs_bindgen_55e2efba5427c071 ::
     PtrConst.PtrConst Heif_encoder
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_55e2efba5427c071 =
  BG.fromFFIType hs_bindgen_55e2efba5427c071_base

{-| __C declaration:__ @heif_encoder_get_name@

    __defined at:__ @libheif\/heif_encoding.h 118:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_get_name ::
     PtrConst.PtrConst Heif_encoder
  -> IO (PtrConst.PtrConst BG.CChar)
heif_encoder_get_name = hs_bindgen_55e2efba5427c071

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_lossy_quality@
foreign import ccall unsafe "hs_bindgen_9700eae02c9f1b08" hs_bindgen_9700eae02c9f1b08_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_lossy_quality@
hs_bindgen_9700eae02c9f1b08 ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9700eae02c9f1b08 =
  BG.fromFFIType hs_bindgen_9700eae02c9f1b08_base

{-| __C declaration:__ @heif_encoder_set_lossy_quality@

    __defined at:__ @libheif\/heif_encoding.h 134:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_lossy_quality ::
     BG.Ptr Heif_encoder
  -> BG.CInt
     -- ^ __C declaration:__ @quality@
  -> IO Heif_error
heif_encoder_set_lossy_quality =
  \x0 ->
    \quality1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_9700eae02c9f1b08 x0 quality1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_lossless@
foreign import ccall unsafe "hs_bindgen_0d4543b236bd057c" hs_bindgen_0d4543b236bd057c_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_lossless@
hs_bindgen_0d4543b236bd057c ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_0d4543b236bd057c =
  BG.fromFFIType hs_bindgen_0d4543b236bd057c_base

{-| __C declaration:__ @heif_encoder_set_lossless@

    __defined at:__ @libheif\/heif_encoding.h 137:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_lossless ::
     BG.Ptr Heif_encoder
  -> BG.CInt
     -- ^ __C declaration:__ @enable@
  -> IO Heif_error
heif_encoder_set_lossless =
  \x0 ->
    \enable1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_0d4543b236bd057c x0 enable1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_logging_level@
foreign import ccall unsafe "hs_bindgen_528ef0518bd8ed17" hs_bindgen_528ef0518bd8ed17_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_logging_level@
hs_bindgen_528ef0518bd8ed17 ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_528ef0518bd8ed17 =
  BG.fromFFIType hs_bindgen_528ef0518bd8ed17_base

{-| __C declaration:__ @heif_encoder_set_logging_level@

    __defined at:__ @libheif\/heif_encoding.h 141:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_logging_level ::
     BG.Ptr Heif_encoder
  -> BG.CInt
     -- ^ __C declaration:__ @level@
  -> IO Heif_error
heif_encoder_set_logging_level =
  \x0 ->
    \level1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_528ef0518bd8ed17 x0 level1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_list_parameters@
foreign import ccall unsafe "hs_bindgen_8ba729e891d005fb" hs_bindgen_8ba729e891d005fb_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_list_parameters@
hs_bindgen_8ba729e891d005fb ::
     BG.Ptr Heif_encoder
  -> IO (PtrConst.PtrConst (PtrConst.PtrConst Heif_encoder_parameter))
hs_bindgen_8ba729e891d005fb =
  BG.fromFFIType hs_bindgen_8ba729e891d005fb_base

{-| __C declaration:__ @heif_encoder_list_parameters@

    __defined at:__ @libheif\/heif_encoding.h 147:38@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_list_parameters ::
     BG.Ptr Heif_encoder
  -> IO (PtrConst.PtrConst (PtrConst.PtrConst Heif_encoder_parameter))
heif_encoder_list_parameters =
  hs_bindgen_8ba729e891d005fb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_name@
foreign import ccall unsafe "hs_bindgen_0b37fad3bcbc1032" hs_bindgen_0b37fad3bcbc1032_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_name@
hs_bindgen_0b37fad3bcbc1032 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_0b37fad3bcbc1032 =
  BG.fromFFIType hs_bindgen_0b37fad3bcbc1032_base

{-| __C declaration:__ @heif_encoder_parameter_get_name@

    __defined at:__ @libheif\/heif_encoding.h 151:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_get_name ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO (PtrConst.PtrConst BG.CChar)
heif_encoder_parameter_get_name =
  hs_bindgen_0b37fad3bcbc1032

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_type@
foreign import ccall unsafe "hs_bindgen_effc6448978f082b" hs_bindgen_effc6448978f082b_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_type@
hs_bindgen_effc6448978f082b ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO Heif_encoder_parameter_type
hs_bindgen_effc6448978f082b =
  BG.fromFFIType hs_bindgen_effc6448978f082b_base

{-| __C declaration:__ @heif_encoder_parameter_get_type@

    __defined at:__ @libheif\/heif_encoding.h 163:34@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_get_type ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO Heif_encoder_parameter_type
heif_encoder_parameter_get_type =
  hs_bindgen_effc6448978f082b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_integer_range@
foreign import ccall unsafe "hs_bindgen_9cc90071aaec91f3" hs_bindgen_9cc90071aaec91f3_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_integer_range@
hs_bindgen_9cc90071aaec91f3 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9cc90071aaec91f3 =
  BG.fromFFIType hs_bindgen_9cc90071aaec91f3_base

{-| __C declaration:__ @heif_encoder_parameter_get_valid_integer_range@

    __defined at:__ @libheif\/heif_encoding.h 167:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_get_valid_integer_range ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_minimum_maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @maximum@
  -> IO Heif_error
heif_encoder_parameter_get_valid_integer_range =
  \x0 ->
    \have_minimum_maximum1 ->
      \minimum2 ->
        \maximum3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_9cc90071aaec91f3 x0 have_minimum_maximum1 minimum2 maximum3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_integer_values@
foreign import ccall unsafe "hs_bindgen_050ff9ca987786fb" hs_bindgen_050ff9ca987786fb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_integer_values@
hs_bindgen_050ff9ca987786fb ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr (PtrConst.PtrConst BG.CInt)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_050ff9ca987786fb =
  BG.fromFFIType hs_bindgen_050ff9ca987786fb_base

{-| __C declaration:__ @heif_encoder_parameter_get_valid_integer_values@

    __defined at:__ @libheif\/heif_encoding.h 174:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_get_valid_integer_values ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @num_valid_values@
  -> BG.Ptr (PtrConst.PtrConst BG.CInt)
     -- ^ __C declaration:__ @out_integer_array@
  -> IO Heif_error
heif_encoder_parameter_get_valid_integer_values =
  \x0 ->
    \have_minimum1 ->
      \have_maximum2 ->
        \minimum3 ->
          \maximum4 ->
            \num_valid_values5 ->
              \out_integer_array6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_050ff9ca987786fb x0 have_minimum1 have_maximum2 minimum3 maximum4 num_valid_values5 out_integer_array6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_string_values@
foreign import ccall unsafe "hs_bindgen_349b7bf99e396f16" hs_bindgen_349b7bf99e396f16_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_get_valid_string_values@
hs_bindgen_349b7bf99e396f16 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_349b7bf99e396f16 =
  BG.fromFFIType hs_bindgen_349b7bf99e396f16_base

{-| __C declaration:__ @heif_encoder_parameter_get_valid_string_values@

    __defined at:__ @libheif\/heif_encoding.h 181:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_get_valid_string_values ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
     -- ^ __C declaration:__ @out_stringarray@
  -> IO Heif_error
heif_encoder_parameter_get_valid_string_values =
  \x0 ->
    \out_stringarray1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_349b7bf99e396f16 x0 out_stringarray1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_integer@
foreign import ccall unsafe "hs_bindgen_d653763347d1d09b" hs_bindgen_d653763347d1d09b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_integer@
hs_bindgen_d653763347d1d09b ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d653763347d1d09b =
  BG.fromFFIType hs_bindgen_d653763347d1d09b_base

{-| __C declaration:__ @heif_encoder_set_parameter_integer@

    __defined at:__ @libheif\/heif_encoding.h 186:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_parameter_integer ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.CInt
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_set_parameter_integer =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_d653763347d1d09b x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_integer@
foreign import ccall unsafe "hs_bindgen_2ad63a212716469e" hs_bindgen_2ad63a212716469e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_integer@
hs_bindgen_2ad63a212716469e ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_2ad63a212716469e =
  BG.fromFFIType hs_bindgen_2ad63a212716469e_base

{-| __C declaration:__ @heif_encoder_get_parameter_integer@

    __defined at:__ @libheif\/heif_encoding.h 191:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_get_parameter_integer ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_get_parameter_integer =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_2ad63a212716469e x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_integer_valid_range@
foreign import ccall unsafe "hs_bindgen_d43bc70645423305" hs_bindgen_d43bc70645423305_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_integer_valid_range@
hs_bindgen_d43bc70645423305 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d43bc70645423305 =
  BG.fromFFIType hs_bindgen_d43bc70645423305_base

{-| __C declaration:__ @heif_encoder_parameter_integer_valid_range@

    __defined at:__ @libheif\/heif_encoding.h 197:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_integer_valid_range ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_minimum_maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @maximum@
  -> IO Heif_error
heif_encoder_parameter_integer_valid_range =
  \x0 ->
    \parameter_name1 ->
      \have_minimum_maximum2 ->
        \minimum3 ->
          \maximum4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_d43bc70645423305 x0 parameter_name1 have_minimum_maximum2 minimum3 maximum4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_boolean@
foreign import ccall unsafe "hs_bindgen_d8ed4c246561cc69" hs_bindgen_d8ed4c246561cc69_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_boolean@
hs_bindgen_d8ed4c246561cc69 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d8ed4c246561cc69 =
  BG.fromFFIType hs_bindgen_d8ed4c246561cc69_base

{-| __C declaration:__ @heif_encoder_set_parameter_boolean@

    __defined at:__ @libheif\/heif_encoding.h 203:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_parameter_boolean ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.CInt
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_set_parameter_boolean =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_d8ed4c246561cc69 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_boolean@
foreign import ccall unsafe "hs_bindgen_ca3fbaeda04e9582" hs_bindgen_ca3fbaeda04e9582_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_boolean@
hs_bindgen_ca3fbaeda04e9582 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_ca3fbaeda04e9582 =
  BG.fromFFIType hs_bindgen_ca3fbaeda04e9582_base

{-| __C declaration:__ @heif_encoder_get_parameter_boolean@

    __defined at:__ @libheif\/heif_encoding.h 208:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_get_parameter_boolean ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_get_parameter_boolean =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_ca3fbaeda04e9582 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_string@
foreign import ccall unsafe "hs_bindgen_908cf213e79a8290" hs_bindgen_908cf213e79a8290_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter_string@
hs_bindgen_908cf213e79a8290 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_908cf213e79a8290 =
  BG.fromFFIType hs_bindgen_908cf213e79a8290_base

{-| __C declaration:__ @heif_encoder_set_parameter_string@

    __defined at:__ @libheif\/heif_encoding.h 213:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_parameter_string ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_set_parameter_string =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_908cf213e79a8290 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_string@
foreign import ccall unsafe "hs_bindgen_7285de07553fd7c4" hs_bindgen_7285de07553fd7c4_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter_string@
hs_bindgen_7285de07553fd7c4 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_7285de07553fd7c4 =
  BG.fromFFIType hs_bindgen_7285de07553fd7c4_base

{-| __C declaration:__ @heif_encoder_get_parameter_string@

    __defined at:__ @libheif\/heif_encoding.h 218:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_get_parameter_string ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CChar
     -- ^ __C declaration:__ @value@
  -> BG.CInt
     -- ^ __C declaration:__ @value_size@
  -> IO Heif_error
heif_encoder_get_parameter_string =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        \value_size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_7285de07553fd7c4 x0 parameter_name1 value2 value_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_string_valid_values@
foreign import ccall unsafe "hs_bindgen_67b0a8f7e96abb96" hs_bindgen_67b0a8f7e96abb96_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_string_valid_values@
hs_bindgen_67b0a8f7e96abb96 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_67b0a8f7e96abb96 =
  BG.fromFFIType hs_bindgen_67b0a8f7e96abb96_base

{-| __C declaration:__ @heif_encoder_parameter_string_valid_values@

    __defined at:__ @libheif\/heif_encoding.h 224:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_string_valid_values ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
     -- ^ __C declaration:__ @out_stringarray@
  -> IO Heif_error
heif_encoder_parameter_string_valid_values =
  \x0 ->
    \parameter_name1 ->
      \out_stringarray2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_67b0a8f7e96abb96 x0 parameter_name1 out_stringarray2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_integer_valid_values@
foreign import ccall unsafe "hs_bindgen_837fd04e76a07e3c" hs_bindgen_837fd04e76a07e3c_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_parameter_integer_valid_values@
hs_bindgen_837fd04e76a07e3c ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr (PtrConst.PtrConst BG.CInt)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_837fd04e76a07e3c =
  BG.fromFFIType hs_bindgen_837fd04e76a07e3c_base

{-| __C declaration:__ @heif_encoder_parameter_integer_valid_values@

    __defined at:__ @libheif\/heif_encoding.h 229:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_parameter_integer_valid_values ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @have_maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @minimum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @maximum@
  -> BG.Ptr BG.CInt
     -- ^ __C declaration:__ @num_valid_values@
  -> BG.Ptr (PtrConst.PtrConst BG.CInt)
     -- ^ __C declaration:__ @out_integer_array@
  -> IO Heif_error
heif_encoder_parameter_integer_valid_values =
  \x0 ->
    \parameter_name1 ->
      \have_minimum2 ->
        \have_maximum3 ->
          \minimum4 ->
            \maximum5 ->
              \num_valid_values6 ->
                \out_integer_array7 ->
                  BG.allocaAndPeek (\res8 ->
                                      hs_bindgen_837fd04e76a07e3c x0 parameter_name1 have_minimum2 have_maximum3 minimum4 maximum5 num_valid_values6 out_integer_array7 res8)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter@
foreign import ccall unsafe "hs_bindgen_26a36653bf79dc5e" hs_bindgen_26a36653bf79dc5e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_set_parameter@
hs_bindgen_26a36653bf79dc5e ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_26a36653bf79dc5e =
  BG.fromFFIType hs_bindgen_26a36653bf79dc5e_base

{-| __C declaration:__ @heif_encoder_set_parameter@

    __defined at:__ @libheif\/heif_encoding.h 246:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_set_parameter ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @value@
  -> IO Heif_error
heif_encoder_set_parameter =
  \x0 ->
    \parameter_name1 ->
      \value2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_26a36653bf79dc5e x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter@
foreign import ccall unsafe "hs_bindgen_badf4585dea9cce8" hs_bindgen_badf4585dea9cce8_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_get_parameter@
hs_bindgen_badf4585dea9cce8 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_badf4585dea9cce8 =
  BG.fromFFIType hs_bindgen_badf4585dea9cce8_base

{-| __C declaration:__ @heif_encoder_get_parameter@

    __defined at:__ @libheif\/heif_encoding.h 253:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_get_parameter ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> BG.Ptr BG.CChar
     -- ^ __C declaration:__ @value_ptr@
  -> BG.CInt
     -- ^ __C declaration:__ @value_size@
  -> IO Heif_error
heif_encoder_get_parameter =
  \x0 ->
    \parameter_name1 ->
      \value_ptr2 ->
        \value_size3 ->
          BG.allocaAndPeek (\res4 ->
                              hs_bindgen_badf4585dea9cce8 x0 parameter_name1 value_ptr2 value_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_has_default@
foreign import ccall unsafe "hs_bindgen_5f05e81fb1017506" hs_bindgen_5f05e81fb1017506_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_has_default@
hs_bindgen_5f05e81fb1017506 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_5f05e81fb1017506 =
  BG.fromFFIType hs_bindgen_5f05e81fb1017506_base

{-| __C declaration:__ @heif_encoder_has_default@

    __defined at:__ @libheif\/heif_encoding.h 259:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_has_default ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @parameter_name@
  -> IO BG.CInt
heif_encoder_has_default =
  hs_bindgen_5f05e81fb1017506

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_orientation_concat@
foreign import ccall unsafe "hs_bindgen_5de65368b622937b" hs_bindgen_5de65368b622937b_base ::
     BG.Word32
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_orientation_concat@
hs_bindgen_5de65368b622937b ::
     Heif_orientation
  -> Heif_orientation
  -> IO Heif_orientation
hs_bindgen_5de65368b622937b =
  BG.fromFFIType hs_bindgen_5de65368b622937b_base

{-| __C declaration:__ @heif_orientation_concat@

    __defined at:__ @libheif\/heif_encoding.h 278:18@

    __exported by:__ @libheif\/heif.h@
-}
heif_orientation_concat ::
     Heif_orientation
     -- ^ __C declaration:__ @first@
  -> Heif_orientation
     -- ^ __C declaration:__ @second@
  -> IO Heif_orientation
heif_orientation_concat = hs_bindgen_5de65368b622937b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_alloc@
foreign import ccall unsafe "hs_bindgen_a63382036a0c2ed6" hs_bindgen_a63382036a0c2ed6_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_alloc@
hs_bindgen_a63382036a0c2ed6 :: IO (BG.Ptr Heif_encoding_options)
hs_bindgen_a63382036a0c2ed6 =
  BG.fromFFIType hs_bindgen_a63382036a0c2ed6_base

{-| __C declaration:__ @heif_encoding_options_alloc@

    __defined at:__ @libheif\/heif_encoding.h 335:24@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoding_options_alloc :: IO (BG.Ptr Heif_encoding_options)
heif_encoding_options_alloc =
  hs_bindgen_a63382036a0c2ed6

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_copy@
foreign import ccall unsafe "hs_bindgen_3a1ae325c063e780" hs_bindgen_3a1ae325c063e780_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_copy@
hs_bindgen_3a1ae325c063e780 ::
     BG.Ptr Heif_encoding_options
  -> PtrConst.PtrConst Heif_encoding_options
  -> IO ()
hs_bindgen_3a1ae325c063e780 =
  BG.fromFFIType hs_bindgen_3a1ae325c063e780_base

{-| __C declaration:__ @heif_encoding_options_copy@

    __defined at:__ @libheif\/heif_encoding.h 338:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoding_options_copy ::
     BG.Ptr Heif_encoding_options
     -- ^ __C declaration:__ @dst@
  -> PtrConst.PtrConst Heif_encoding_options
     -- ^ __C declaration:__ @src@
  -> IO ()
heif_encoding_options_copy =
  hs_bindgen_3a1ae325c063e780

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_free@
foreign import ccall unsafe "hs_bindgen_7e49924263fcce32" hs_bindgen_7e49924263fcce32_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoding_options_free@
hs_bindgen_7e49924263fcce32 ::
     BG.Ptr Heif_encoding_options
  -> IO ()
hs_bindgen_7e49924263fcce32 =
  BG.fromFFIType hs_bindgen_7e49924263fcce32_base

{-| __C declaration:__ @heif_encoding_options_free@

    __defined at:__ @libheif\/heif_encoding.h 341:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoding_options_free ::
     BG.Ptr Heif_encoding_options
  -> IO ()
heif_encoding_options_free =
  hs_bindgen_7e49924263fcce32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_image@
foreign import ccall unsafe "hs_bindgen_6ac3b36ffb994fd2" hs_bindgen_6ac3b36ffb994fd2_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_image@
hs_bindgen_6ac3b36ffb994fd2 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_encoder
  -> PtrConst.PtrConst Heif_encoding_options
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_6ac3b36ffb994fd2 =
  BG.fromFFIType hs_bindgen_6ac3b36ffb994fd2_base

{-| __C declaration:__ @heif_context_encode_image@

    __defined at:__ @libheif\/heif_encoding.h 350:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_encode_image ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.Ptr Heif_encoder
     -- ^ __C declaration:__ @encoder@
  -> PtrConst.PtrConst Heif_encoding_options
     -- ^ __C declaration:__ @options@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_image_handle@
  -> IO Heif_error
heif_context_encode_image =
  \x0 ->
    \image1 ->
      \encoder2 ->
        \options3 ->
          \out_image_handle4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_6ac3b36ffb994fd2 x0 image1 encoder2 options3 out_image_handle4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_overlay_image@
foreign import ccall unsafe "hs_bindgen_1d9fc34edd017e95" hs_bindgen_1d9fc34edd017e95_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_overlay_image@
hs_bindgen_1d9fc34edd017e95 ::
     BG.Ptr Heif_context
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word16
  -> PtrConst.PtrConst Heif_item_id
  -> BG.Ptr HsBindgen.Runtime.LibC.Int32
  -> PtrConst.PtrConst (IsA.Elem (CA.ConstantArray 4 HsBindgen.Runtime.LibC.Word16))
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_1d9fc34edd017e95 =
  BG.fromFFIType hs_bindgen_1d9fc34edd017e95_base

{-| __C declaration:__ @heif_context_add_overlay_image@

    __defined at:__ @libheif\/heif_encoding.h 359:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_overlay_image ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @image_width@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @image_height@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @nImages@
  -> PtrConst.PtrConst Heif_item_id
     -- ^ __C declaration:__ @image_ids@
  -> BG.Ptr HsBindgen.Runtime.LibC.Int32
     -- ^ __C declaration:__ @offsets@
  -> PtrConst.PtrConst (IsA.Elem (CA.ConstantArray 4 HsBindgen.Runtime.LibC.Word16))
     -- ^ __C declaration:__ @background_rgba@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_iovl_image_handle@
  -> IO Heif_error
heif_context_add_overlay_image =
  \ctx0 ->
    \image_width1 ->
      \image_height2 ->
        \nImages3 ->
          \image_ids4 ->
            \offsets5 ->
              \background_rgba6 ->
                \out_iovl_image_handle7 ->
                  BG.allocaAndPeek (\res8 ->
                                      hs_bindgen_1d9fc34edd017e95 ctx0 image_width1 image_height2 nImages3 image_ids4 offsets5 background_rgba6 out_iovl_image_handle7 res8)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_primary_image@
foreign import ccall unsafe "hs_bindgen_a78d763f0e72894b" hs_bindgen_a78d763f0e72894b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_primary_image@
hs_bindgen_a78d763f0e72894b ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_image_handle
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_a78d763f0e72894b =
  BG.fromFFIType hs_bindgen_a78d763f0e72894b_base

{-| __C declaration:__ @heif_context_set_primary_image@

    __defined at:__ @libheif\/heif_encoding.h 369:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_primary_image ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> IO Heif_error
heif_context_set_primary_image =
  \x0 ->
    \image_handle1 ->
      BG.allocaAndPeek (\res2 ->
                          hs_bindgen_a78d763f0e72894b x0 image_handle1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_major_brand@
foreign import ccall unsafe "hs_bindgen_7cfa31db45c6d2e0" hs_bindgen_7cfa31db45c6d2e0_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_major_brand@
hs_bindgen_7cfa31db45c6d2e0 ::
     BG.Ptr Heif_context
  -> Heif_brand2
  -> IO ()
hs_bindgen_7cfa31db45c6d2e0 =
  BG.fromFFIType hs_bindgen_7cfa31db45c6d2e0_base

{-| __C declaration:__ @heif_context_set_major_brand@

    __defined at:__ @libheif\/heif_encoding.h 376:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_major_brand ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> Heif_brand2
     -- ^ __C declaration:__ @major_brand@
  -> IO ()
heif_context_set_major_brand =
  hs_bindgen_7cfa31db45c6d2e0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_compatible_brand@
foreign import ccall unsafe "hs_bindgen_53369da73974a5c8" hs_bindgen_53369da73974a5c8_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_compatible_brand@
hs_bindgen_53369da73974a5c8 ::
     BG.Ptr Heif_context
  -> Heif_brand2
  -> IO ()
hs_bindgen_53369da73974a5c8 =
  BG.fromFFIType hs_bindgen_53369da73974a5c8_base

{-| __C declaration:__ @heif_context_add_compatible_brand@

    __defined at:__ @libheif\/heif_encoding.h 381:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_compatible_brand ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> Heif_brand2
     -- ^ __C declaration:__ @compatible_brand@
  -> IO ()
heif_context_add_compatible_brand =
  hs_bindgen_53369da73974a5c8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_unif@
foreign import ccall unsafe "hs_bindgen_ee19be3747255a78" hs_bindgen_ee19be3747255a78_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_unif@
hs_bindgen_ee19be3747255a78 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_ee19be3747255a78 =
  BG.fromFFIType hs_bindgen_ee19be3747255a78_base

{-| __C declaration:__ @heif_context_set_unif@

    __defined at:__ @libheif\/heif_encoding.h 395:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_unif ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.CInt
     -- ^ __C declaration:__ @flag@
  -> IO ()
heif_context_set_unif = hs_bindgen_ee19be3747255a78

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supportes_lossy_compression@
foreign import ccall unsafe "hs_bindgen_6aa908eebd2da1c7" hs_bindgen_6aa908eebd2da1c7_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supportes_lossy_compression@
hs_bindgen_6aa908eebd2da1c7 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_6aa908eebd2da1c7 =
  BG.fromFFIType hs_bindgen_6aa908eebd2da1c7_base

{-| __C declaration:__ @heif_encoder_descriptor_supportes_lossy_compression@

    __defined at:__ @libheif\/heif_encoding.h 401:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_supportes_lossy_compression ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
heif_encoder_descriptor_supportes_lossy_compression =
  hs_bindgen_6aa908eebd2da1c7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supportes_lossless_compression@
foreign import ccall unsafe "hs_bindgen_ae780e3f1353c894" hs_bindgen_ae780e3f1353c894_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_encoder_descriptor_supportes_lossless_compression@
hs_bindgen_ae780e3f1353c894 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_ae780e3f1353c894 =
  BG.fromFFIType hs_bindgen_ae780e3f1353c894_base

{-| __C declaration:__ @heif_encoder_descriptor_supportes_lossless_compression@

    __defined at:__ @libheif\/heif_encoding.h 405:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_encoder_descriptor_supportes_lossless_compression ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
heif_encoder_descriptor_supportes_lossless_compression =
  hs_bindgen_ae780e3f1353c894

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder_descriptors@
foreign import ccall unsafe "hs_bindgen_2c76e06503a77574" hs_bindgen_2c76e06503a77574_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_encoder_descriptors@
hs_bindgen_2c76e06503a77574 ::
     BG.Ptr Heif_context
  -> Heif_compression_format
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_encoder_descriptor)
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_2c76e06503a77574 =
  BG.fromFFIType hs_bindgen_2c76e06503a77574_base

{-| __C declaration:__ @heif_context_get_encoder_descriptors@

    __defined at:__ @libheif\/heif_encoding.h 415:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_encoder_descriptors ::
     BG.Ptr Heif_context
  -> Heif_compression_format
     -- ^ __C declaration:__ @format_filter@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @name_filter@
  -> BG.Ptr (PtrConst.PtrConst Heif_encoder_descriptor)
     -- ^ __C declaration:__ @out_encoders@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_context_get_encoder_descriptors =
  hs_bindgen_2c76e06503a77574

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_max_decoding_threads@
foreign import ccall unsafe "hs_bindgen_87200925476eeec7" hs_bindgen_87200925476eeec7_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_set_max_decoding_threads@
hs_bindgen_87200925476eeec7 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_87200925476eeec7 =
  BG.fromFFIType hs_bindgen_87200925476eeec7_base

{-| __C declaration:__ @heif_context_set_max_decoding_threads@

    __defined at:__ @libheif\/heif_decoding.h 40:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_set_max_decoding_threads ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.CInt
     -- ^ __C declaration:__ @max_threads@
  -> IO ()
heif_context_set_max_decoding_threads =
  hs_bindgen_87200925476eeec7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_max_decoding_threads@
foreign import ccall unsafe "hs_bindgen_0c7154c9354fd286" hs_bindgen_0c7154c9354fd286_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_get_max_decoding_threads@
hs_bindgen_0c7154c9354fd286 ::
     PtrConst.PtrConst Heif_context
  -> IO BG.CInt
hs_bindgen_0c7154c9354fd286 =
  BG.fromFFIType hs_bindgen_0c7154c9354fd286_base

{-| __C declaration:__ @heif_context_get_max_decoding_threads@

    __defined at:__ @libheif\/heif_decoding.h 47:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_get_max_decoding_threads ::
     PtrConst.PtrConst Heif_context
     -- ^ __C declaration:__ @ctx@
  -> IO BG.CInt
heif_context_get_max_decoding_threads =
  hs_bindgen_0c7154c9354fd286

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_have_decoder_for_format@
foreign import ccall unsafe "hs_bindgen_42f0650f86196b25" hs_bindgen_42f0650f86196b25_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_have_decoder_for_format@
hs_bindgen_42f0650f86196b25 ::
     Heif_compression_format
  -> IO BG.CInt
hs_bindgen_42f0650f86196b25 =
  BG.fromFFIType hs_bindgen_42f0650f86196b25_base

{-| __C declaration:__ @heif_have_decoder_for_format@

    __defined at:__ @libheif\/heif_decoding.h 53:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_have_decoder_for_format ::
     Heif_compression_format
     -- ^ __C declaration:__ @format@
  -> IO BG.CInt
heif_have_decoder_for_format =
  hs_bindgen_42f0650f86196b25

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_alloc@
foreign import ccall unsafe "hs_bindgen_9c5874c5219718b8" hs_bindgen_9c5874c5219718b8_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_alloc@
hs_bindgen_9c5874c5219718b8 :: IO (BG.Ptr Heif_decoding_options)
hs_bindgen_9c5874c5219718b8 =
  BG.fromFFIType hs_bindgen_9c5874c5219718b8_base

{-| __C declaration:__ @heif_decoding_options_alloc@

    __defined at:__ @libheif\/heif_decoding.h 165:24@

    __exported by:__ @libheif\/heif.h@
-}
heif_decoding_options_alloc :: IO (BG.Ptr Heif_decoding_options)
heif_decoding_options_alloc =
  hs_bindgen_9c5874c5219718b8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_copy@
foreign import ccall unsafe "hs_bindgen_3b86db3999f11506" hs_bindgen_3b86db3999f11506_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_copy@
hs_bindgen_3b86db3999f11506 ::
     BG.Ptr Heif_decoding_options
  -> PtrConst.PtrConst Heif_decoding_options
  -> IO ()
hs_bindgen_3b86db3999f11506 =
  BG.fromFFIType hs_bindgen_3b86db3999f11506_base

{-| __C declaration:__ @heif_decoding_options_copy@

    __defined at:__ @libheif\/heif_decoding.h 168:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_decoding_options_copy ::
     BG.Ptr Heif_decoding_options
     -- ^ __C declaration:__ @dst@
  -> PtrConst.PtrConst Heif_decoding_options
     -- ^ __C declaration:__ @src@
  -> IO ()
heif_decoding_options_copy =
  hs_bindgen_3b86db3999f11506

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_free@
foreign import ccall unsafe "hs_bindgen_cf88ca791cd899fe" hs_bindgen_cf88ca791cd899fe_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoding_options_free@
hs_bindgen_cf88ca791cd899fe ::
     BG.Ptr Heif_decoding_options
  -> IO ()
hs_bindgen_cf88ca791cd899fe =
  BG.fromFFIType hs_bindgen_cf88ca791cd899fe_base

{-| __C declaration:__ @heif_decoding_options_free@

    __defined at:__ @libheif\/heif_decoding.h 172:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_decoding_options_free ::
     BG.Ptr Heif_decoding_options
  -> IO ()
heif_decoding_options_free =
  hs_bindgen_cf88ca791cd899fe

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_decoder_descriptors@
foreign import ccall unsafe "hs_bindgen_ab1f907a34ddc140" hs_bindgen_ab1f907a34ddc140_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_get_decoder_descriptors@
hs_bindgen_ab1f907a34ddc140 ::
     Heif_compression_format
  -> BG.Ptr (PtrConst.PtrConst Heif_decoder_descriptor)
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_ab1f907a34ddc140 =
  BG.fromFFIType hs_bindgen_ab1f907a34ddc140_base

{-| __C declaration:__ @heif_get_decoder_descriptors@

    __defined at:__ @libheif\/heif_decoding.h 183:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_get_decoder_descriptors ::
     Heif_compression_format
     -- ^ __C declaration:__ @format_filter@
  -> BG.Ptr (PtrConst.PtrConst Heif_decoder_descriptor)
     -- ^ __C declaration:__ @out_decoders@
  -> BG.CInt
     -- ^ __C declaration:__ @count@
  -> IO BG.CInt
heif_get_decoder_descriptors =
  hs_bindgen_ab1f907a34ddc140

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoder_descriptor_get_name@
foreign import ccall unsafe "hs_bindgen_b5afa8de744aaab5" hs_bindgen_b5afa8de744aaab5_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoder_descriptor_get_name@
hs_bindgen_b5afa8de744aaab5 ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_b5afa8de744aaab5 =
  BG.fromFFIType hs_bindgen_b5afa8de744aaab5_base

{-| __C declaration:__ @heif_decoder_descriptor_get_name@

    __defined at:__ @libheif\/heif_decoding.h 189:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_decoder_descriptor_get_name ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
heif_decoder_descriptor_get_name =
  hs_bindgen_b5afa8de744aaab5

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoder_descriptor_get_id_name@
foreign import ccall unsafe "hs_bindgen_7203e9b04a7a74dd" hs_bindgen_7203e9b04a7a74dd_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decoder_descriptor_get_id_name@
hs_bindgen_7203e9b04a7a74dd ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_7203e9b04a7a74dd =
  BG.fromFFIType hs_bindgen_7203e9b04a7a74dd_base

{-| __C declaration:__ @heif_decoder_descriptor_get_id_name@

    __defined at:__ @libheif\/heif_decoding.h 195:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_decoder_descriptor_get_id_name ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
heif_decoder_descriptor_get_id_name =
  hs_bindgen_7203e9b04a7a74dd

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decode_image@
foreign import ccall unsafe "hs_bindgen_9c566de5c30f008a" hs_bindgen_9c566de5c30f008a_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_decode_image@
hs_bindgen_9c566de5c30f008a ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (BG.Ptr Heif_image)
  -> Heif_colorspace
  -> Heif_chroma
  -> PtrConst.PtrConst Heif_decoding_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9c566de5c30f008a =
  BG.fromFFIType hs_bindgen_9c566de5c30f008a_base

{-| __C declaration:__ @heif_decode_image@

    __defined at:__ @libheif\/heif_decoding.h 209:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_decode_image ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @in_handle@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @out_img@
  -> Heif_colorspace
     -- ^ __C declaration:__ @colorspace@
  -> Heif_chroma
     -- ^ __C declaration:__ @chroma@
  -> PtrConst.PtrConst Heif_decoding_options
     -- ^ __C declaration:__ @options@
  -> IO Heif_error
heif_decode_image =
  \in_handle0 ->
    \out_img1 ->
      \colorspace2 ->
        \chroma3 ->
          \options4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_9c566de5c30f008a in_handle0 out_img1 colorspace2 chroma3 options4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_release@
foreign import ccall unsafe "hs_bindgen_28bf4adaa29e960b" hs_bindgen_28bf4adaa29e960b_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_release@
hs_bindgen_28bf4adaa29e960b ::
     PtrConst.PtrConst Heif_image_handle
  -> IO ()
hs_bindgen_28bf4adaa29e960b =
  BG.fromFFIType hs_bindgen_28bf4adaa29e960b_base

{-| __C declaration:__ @heif_image_handle_release@

    __defined at:__ @libheif\/heif_image_handle.h 47:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_release ::
     PtrConst.PtrConst Heif_image_handle
  -> IO ()
heif_image_handle_release =
  hs_bindgen_28bf4adaa29e960b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_is_primary_image@
foreign import ccall unsafe "hs_bindgen_9cd66a4acc781749" hs_bindgen_9cd66a4acc781749_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_is_primary_image@
hs_bindgen_9cd66a4acc781749 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_9cd66a4acc781749 =
  BG.fromFFIType hs_bindgen_9cd66a4acc781749_base

{-| __C declaration:__ @heif_image_handle_is_primary_image@

    __defined at:__ @libheif\/heif_image_handle.h 51:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_is_primary_image ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_is_primary_image =
  hs_bindgen_9cd66a4acc781749

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_item_id@
foreign import ccall unsafe "hs_bindgen_883fc3dc3fc5532a" hs_bindgen_883fc3dc3fc5532a_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_item_id@
hs_bindgen_883fc3dc3fc5532a ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_item_id
hs_bindgen_883fc3dc3fc5532a =
  BG.fromFFIType hs_bindgen_883fc3dc3fc5532a_base

{-| __C declaration:__ @heif_image_handle_get_item_id@

    __defined at:__ @libheif\/heif_image_handle.h 54:14@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_item_id ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO Heif_item_id
heif_image_handle_get_item_id =
  hs_bindgen_883fc3dc3fc5532a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_width@
foreign import ccall unsafe "hs_bindgen_0bcd25e50e8763ba" hs_bindgen_0bcd25e50e8763ba_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_width@
hs_bindgen_0bcd25e50e8763ba ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_0bcd25e50e8763ba =
  BG.fromFFIType hs_bindgen_0bcd25e50e8763ba_base

{-| __C declaration:__ @heif_image_handle_get_width@

    __defined at:__ @libheif\/heif_image_handle.h 61:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_width ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_width =
  hs_bindgen_0bcd25e50e8763ba

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_height@
foreign import ccall unsafe "hs_bindgen_bd94a464a89cccfb" hs_bindgen_bd94a464a89cccfb_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_height@
hs_bindgen_bd94a464a89cccfb ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_bd94a464a89cccfb =
  BG.fromFFIType hs_bindgen_bd94a464a89cccfb_base

{-| __C declaration:__ @heif_image_handle_get_height@

    __defined at:__ @libheif\/heif_image_handle.h 68:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_height ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_height =
  hs_bindgen_bd94a464a89cccfb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_alpha_channel@
foreign import ccall unsafe "hs_bindgen_019a58dabf17e62f" hs_bindgen_019a58dabf17e62f_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_alpha_channel@
hs_bindgen_019a58dabf17e62f ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_019a58dabf17e62f =
  BG.fromFFIType hs_bindgen_019a58dabf17e62f_base

{-| __C declaration:__ @heif_image_handle_has_alpha_channel@

    __defined at:__ @libheif\/heif_image_handle.h 71:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_alpha_channel ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_alpha_channel =
  hs_bindgen_019a58dabf17e62f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_is_premultiplied_alpha@
foreign import ccall unsafe "hs_bindgen_07e4281a42d682d8" hs_bindgen_07e4281a42d682d8_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_is_premultiplied_alpha@
hs_bindgen_07e4281a42d682d8 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_07e4281a42d682d8 =
  BG.fromFFIType hs_bindgen_07e4281a42d682d8_base

{-| __C declaration:__ @heif_image_handle_is_premultiplied_alpha@

    __defined at:__ @libheif\/heif_image_handle.h 74:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_is_premultiplied_alpha ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_is_premultiplied_alpha =
  hs_bindgen_07e4281a42d682d8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_luma_bits_per_pixel@
foreign import ccall unsafe "hs_bindgen_bd8920bbdfc607cb" hs_bindgen_bd8920bbdfc607cb_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_luma_bits_per_pixel@
hs_bindgen_bd8920bbdfc607cb ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_bd8920bbdfc607cb =
  BG.fromFFIType hs_bindgen_bd8920bbdfc607cb_base

{-| __C declaration:__ @heif_image_handle_get_luma_bits_per_pixel@

    __defined at:__ @libheif\/heif_image_handle.h 79:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_luma_bits_per_pixel ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_get_luma_bits_per_pixel =
  hs_bindgen_bd8920bbdfc607cb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_chroma_bits_per_pixel@
foreign import ccall unsafe "hs_bindgen_4a9b5e4f4022f165" hs_bindgen_4a9b5e4f4022f165_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_chroma_bits_per_pixel@
hs_bindgen_4a9b5e4f4022f165 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_4a9b5e4f4022f165 =
  BG.fromFFIType hs_bindgen_4a9b5e4f4022f165_base

{-| __C declaration:__ @heif_image_handle_get_chroma_bits_per_pixel@

    __defined at:__ @libheif\/heif_image_handle.h 84:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_chroma_bits_per_pixel ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_get_chroma_bits_per_pixel =
  hs_bindgen_4a9b5e4f4022f165

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_preferred_decoding_colorspace@
foreign import ccall unsafe "hs_bindgen_5866c7e268ce84a7" hs_bindgen_5866c7e268ce84a7_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_preferred_decoding_colorspace@
hs_bindgen_5866c7e268ce84a7 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_colorspace
  -> BG.Ptr Heif_chroma
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_5866c7e268ce84a7 =
  BG.fromFFIType hs_bindgen_5866c7e268ce84a7_base

{-| __C declaration:__ @heif_image_handle_get_preferred_decoding_colorspace@

    __defined at:__ @libheif\/heif_image_handle.h 102:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_preferred_decoding_colorspace ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @image_handle@
  -> BG.Ptr Heif_colorspace
     -- ^ __C declaration:__ @out_colorspace@
  -> BG.Ptr Heif_chroma
     -- ^ __C declaration:__ @out_chroma@
  -> IO Heif_error
heif_image_handle_get_preferred_decoding_colorspace =
  \image_handle0 ->
    \out_colorspace1 ->
      \out_chroma2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_5866c7e268ce84a7 image_handle0 out_colorspace1 out_chroma2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ispe_width@
foreign import ccall unsafe "hs_bindgen_4ac86f0a6dddfea5" hs_bindgen_4ac86f0a6dddfea5_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ispe_width@
hs_bindgen_4ac86f0a6dddfea5 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_4ac86f0a6dddfea5 =
  BG.fromFFIType hs_bindgen_4ac86f0a6dddfea5_base

{-| __C declaration:__ @heif_image_handle_get_ispe_width@

    __defined at:__ @libheif\/heif_image_handle.h 110:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_ispe_width ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_ispe_width =
  hs_bindgen_4ac86f0a6dddfea5

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ispe_height@
foreign import ccall unsafe "hs_bindgen_d6a6f34b63a7c18c" hs_bindgen_d6a6f34b63a7c18c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_ispe_height@
hs_bindgen_d6a6f34b63a7c18c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_d6a6f34b63a7c18c =
  BG.fromFFIType hs_bindgen_d6a6f34b63a7c18c_base

{-| __C declaration:__ @heif_image_handle_get_ispe_height@

    __defined at:__ @libheif\/heif_image_handle.h 113:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_ispe_height ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO BG.CInt
heif_image_handle_get_ispe_height =
  hs_bindgen_d6a6f34b63a7c18c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_pixel_aspect_ratio@
foreign import ccall unsafe "hs_bindgen_5b65c4e9e89d0618" hs_bindgen_5b65c4e9e89d0618_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_pixel_aspect_ratio@
hs_bindgen_5b65c4e9e89d0618 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_5b65c4e9e89d0618 =
  BG.fromFFIType hs_bindgen_5b65c4e9e89d0618_base

{-| __C declaration:__ @heif_image_handle_get_pixel_aspect_ratio@

    __defined at:__ @libheif\/heif_image_handle.h 117:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_pixel_aspect_ratio ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_h@
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @aspect_v@
  -> IO BG.CInt
heif_image_handle_get_pixel_aspect_ratio =
  hs_bindgen_5b65c4e9e89d0618

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_context@
foreign import ccall unsafe "hs_bindgen_416f140cd405607c" hs_bindgen_416f140cd405607c_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_context@
hs_bindgen_416f140cd405607c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO (BG.Ptr Heif_context)
hs_bindgen_416f140cd405607c =
  BG.fromFFIType hs_bindgen_416f140cd405607c_base

{-| __C declaration:__ @heif_image_handle_get_context@

    __defined at:__ @libheif\/heif_image_handle.h 129:15@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_context ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO (BG.Ptr Heif_context)
heif_image_handle_get_context =
  hs_bindgen_416f140cd405607c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_gimi_content_id@
foreign import ccall unsafe "hs_bindgen_9d6713702978e3f4" hs_bindgen_9d6713702978e3f4_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_gimi_content_id@
hs_bindgen_9d6713702978e3f4 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_9d6713702978e3f4 =
  BG.fromFFIType hs_bindgen_9d6713702978e3f4_base

{-| __C declaration:__ @heif_image_handle_get_gimi_content_id@

    __defined at:__ @libheif\/heif_image_handle.h 132:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_gimi_content_id ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_gimi_content_id =
  hs_bindgen_9d6713702978e3f4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_gimi_content_id@
foreign import ccall unsafe "hs_bindgen_f107d82f17708377" hs_bindgen_f107d82f17708377_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_gimi_content_id@
hs_bindgen_f107d82f17708377 ::
     BG.Ptr Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_f107d82f17708377 =
  BG.fromFFIType hs_bindgen_f107d82f17708377_base

{-| __C declaration:__ @heif_image_handle_set_gimi_content_id@

    __defined at:__ @libheif\/heif_image_handle.h 135:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_gimi_content_id ::
     BG.Ptr Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @content_id@
  -> IO ()
heif_image_handle_set_gimi_content_id =
  hs_bindgen_f107d82f17708377

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_cmpd_components@
foreign import ccall unsafe "hs_bindgen_d241b0dabaa4529a" hs_bindgen_d241b0dabaa4529a_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_cmpd_components@
hs_bindgen_d241b0dabaa4529a ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_d241b0dabaa4529a =
  BG.fromFFIType hs_bindgen_d241b0dabaa4529a_base

{-| __C declaration:__ @heif_image_handle_get_number_of_cmpd_components@

    __defined at:__ @libheif\/heif_image_handle.h 142:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_cmpd_components ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_handle_get_number_of_cmpd_components =
  hs_bindgen_d241b0dabaa4529a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_cmpd_component_type@
foreign import ccall unsafe "hs_bindgen_f849f5a5579d0d53" hs_bindgen_f849f5a5579d0d53_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_cmpd_component_type@
hs_bindgen_f849f5a5579d0d53 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_f849f5a5579d0d53 =
  BG.fromFFIType hs_bindgen_f849f5a5579d0d53_base

{-| __C declaration:__ @heif_image_handle_get_cmpd_component_type@

    __defined at:__ @libheif\/heif_image_handle.h 147:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_cmpd_component_type ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_idx@
  -> IO HsBindgen.Runtime.LibC.Word16
heif_image_handle_get_cmpd_component_type =
  hs_bindgen_f849f5a5579d0d53

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_cmpd_component_type_uri@
foreign import ccall unsafe "hs_bindgen_f0f8fe1e51403813" hs_bindgen_f0f8fe1e51403813_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_cmpd_component_type_uri@
hs_bindgen_f0f8fe1e51403813 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_f0f8fe1e51403813 =
  BG.fromFFIType hs_bindgen_f0f8fe1e51403813_base

{-| __C declaration:__ @heif_image_handle_get_cmpd_component_type_uri@

    __defined at:__ @libheif\/heif_image_handle.h 153:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_cmpd_component_type_uri ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_idx@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_cmpd_component_type_uri =
  hs_bindgen_f0f8fe1e51403813

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_gimi_component_content_ids@
foreign import ccall unsafe "hs_bindgen_8f5d4dfd76b35269" hs_bindgen_8f5d4dfd76b35269_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_has_gimi_component_content_ids@
hs_bindgen_8f5d4dfd76b35269 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_8f5d4dfd76b35269 =
  BG.fromFFIType hs_bindgen_8f5d4dfd76b35269_base

{-| __C declaration:__ @heif_image_handle_has_gimi_component_content_ids@

    __defined at:__ @libheif\/heif_image_handle.h 160:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_has_gimi_component_content_ids ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
heif_image_handle_has_gimi_component_content_ids =
  hs_bindgen_8f5d4dfd76b35269

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_gimi_component_content_id@
foreign import ccall unsafe "hs_bindgen_4c964b2acbe2715a" hs_bindgen_4c964b2acbe2715a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_gimi_component_content_id@
hs_bindgen_4c964b2acbe2715a ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_4c964b2acbe2715a =
  BG.fromFFIType hs_bindgen_4c964b2acbe2715a_base

{-| __C declaration:__ @heif_image_handle_get_gimi_component_content_id@

    __defined at:__ @libheif\/heif_image_handle.h 166:13@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_gimi_component_content_id ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_idx@
  -> IO (PtrConst.PtrConst BG.CChar)
heif_image_handle_get_gimi_component_content_id =
  hs_bindgen_4c964b2acbe2715a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_gimi_component_content_id@
foreign import ccall unsafe "hs_bindgen_b545cf8f497992ae" hs_bindgen_b545cf8f497992ae_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_gimi_component_content_id@
hs_bindgen_b545cf8f497992ae ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_b545cf8f497992ae =
  BG.fromFFIType hs_bindgen_b545cf8f497992ae_base

{-| __C declaration:__ @heif_image_handle_set_gimi_component_content_id@

    __defined at:__ @libheif\/heif_image_handle.h 172:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_gimi_component_content_id ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_idx@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @content_id@
  -> IO ()
heif_image_handle_set_gimi_component_content_id =
  hs_bindgen_b545cf8f497992ae

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_image_tiling@
foreign import ccall unsafe "hs_bindgen_44591d28e788d50c" hs_bindgen_44591d28e788d50c_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_image_tiling@
hs_bindgen_44591d28e788d50c ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> BG.Ptr Heif_image_tiling
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_44591d28e788d50c =
  BG.fromFFIType hs_bindgen_44591d28e788d50c_base

{-| __C declaration:__ @heif_image_handle_get_image_tiling@

    __defined at:__ @libheif\/heif_tiling.h 67:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_image_tiling ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.CInt
     -- ^ __C declaration:__ @process_image_transformations@
  -> BG.Ptr Heif_image_tiling
     -- ^ __C declaration:__ @out_tiling@
  -> IO Heif_error
heif_image_handle_get_image_tiling =
  \handle0 ->
    \process_image_transformations1 ->
      \out_tiling2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_44591d28e788d50c handle0 process_image_transformations1 out_tiling2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_grid_image_tile_id@
foreign import ccall unsafe "hs_bindgen_aaf84ee2e27e5f15" hs_bindgen_aaf84ee2e27e5f15_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_grid_image_tile_id@
hs_bindgen_aaf84ee2e27e5f15 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr Heif_item_id
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_aaf84ee2e27e5f15 =
  BG.fromFFIType hs_bindgen_aaf84ee2e27e5f15_base

{-| __C declaration:__ @heif_image_handle_get_grid_image_tile_id@

    __defined at:__ @libheif\/heif_tiling.h 74:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_grid_image_tile_id ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> BG.CInt
     -- ^ __C declaration:__ @process_image_transformations@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_x@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_y@
  -> BG.Ptr Heif_item_id
     -- ^ __C declaration:__ @out_tile_item_id@
  -> IO Heif_error
heif_image_handle_get_grid_image_tile_id =
  \handle0 ->
    \process_image_transformations1 ->
      \tile_x2 ->
        \tile_y3 ->
          \out_tile_item_id4 ->
            BG.allocaAndPeek (\res5 ->
                                hs_bindgen_aaf84ee2e27e5f15 handle0 process_image_transformations1 tile_x2 tile_y3 out_tile_item_id4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_decode_image_tile@
foreign import ccall unsafe "hs_bindgen_71d50457a2e7f14b" hs_bindgen_71d50457a2e7f14b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_decode_image_tile@
hs_bindgen_71d50457a2e7f14b ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (BG.Ptr Heif_image)
  -> Heif_colorspace
  -> Heif_chroma
  -> PtrConst.PtrConst Heif_decoding_options
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_71d50457a2e7f14b =
  BG.fromFFIType hs_bindgen_71d50457a2e7f14b_base

{-| __C declaration:__ @heif_image_handle_decode_image_tile@

    __defined at:__ @libheif\/heif_tiling.h 86:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_decode_image_tile ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @in_handle@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @out_img@
  -> Heif_colorspace
     -- ^ __C declaration:__ @colorspace@
  -> Heif_chroma
     -- ^ __C declaration:__ @chroma@
  -> PtrConst.PtrConst Heif_decoding_options
     -- ^ __C declaration:__ @options@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_x@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_y@
  -> IO Heif_error
heif_image_handle_decode_image_tile =
  \in_handle0 ->
    \out_img1 ->
      \colorspace2 ->
        \chroma3 ->
          \options4 ->
            \tile_x5 ->
              \tile_y6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_71d50457a2e7f14b in_handle0 out_img1 colorspace2 chroma3 options4 tile_x5 tile_y6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_grid@
foreign import ccall unsafe "hs_bindgen_b6f1896d3842bb1b" hs_bindgen_b6f1896d3842bb1b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_encode_grid@
hs_bindgen_b6f1896d3842bb1b ::
     BG.Ptr Heif_context
  -> BG.Ptr (BG.Ptr Heif_image)
  -> HsBindgen.Runtime.LibC.Word16
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_encoder
  -> PtrConst.PtrConst Heif_encoding_options
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_b6f1896d3842bb1b =
  BG.fromFFIType hs_bindgen_b6f1896d3842bb1b_base

{-| __C declaration:__ @heif_context_encode_grid@

    __defined at:__ @libheif\/heif_tiling.h 109:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_encode_grid ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.Ptr (BG.Ptr Heif_image)
     -- ^ __C declaration:__ @tiles@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @rows@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @columns@
  -> BG.Ptr Heif_encoder
     -- ^ __C declaration:__ @encoder@
  -> PtrConst.PtrConst Heif_encoding_options
     -- ^ __C declaration:__ @input_options@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_image_handle@
  -> IO Heif_error
heif_context_encode_grid =
  \ctx0 ->
    \tiles1 ->
      \rows2 ->
        \columns3 ->
          \encoder4 ->
            \input_options5 ->
              \out_image_handle6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_b6f1896d3842bb1b ctx0 tiles1 rows2 columns3 encoder4 input_options5 out_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_grid_image@
foreign import ccall unsafe "hs_bindgen_c0099c7d4964643d" hs_bindgen_c0099c7d4964643d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_grid_image@
hs_bindgen_c0099c7d4964643d ::
     BG.Ptr Heif_context
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst Heif_encoding_options
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_c0099c7d4964643d =
  BG.fromFFIType hs_bindgen_c0099c7d4964643d_base

{-| __C declaration:__ @heif_context_add_grid_image@

    __defined at:__ @libheif\/heif_tiling.h 118:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_grid_image ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @image_width@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @image_height@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_columns@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_rows@
  -> PtrConst.PtrConst Heif_encoding_options
     -- ^ __C declaration:__ @encoding_options@
  -> BG.Ptr (BG.Ptr Heif_image_handle)
     -- ^ __C declaration:__ @out_grid_image_handle@
  -> IO Heif_error
heif_context_add_grid_image =
  \ctx0 ->
    \image_width1 ->
      \image_height2 ->
        \tile_columns3 ->
          \tile_rows4 ->
            \encoding_options5 ->
              \out_grid_image_handle6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_c0099c7d4964643d ctx0 image_width1 image_height2 tile_columns3 tile_rows4 encoding_options5 out_grid_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_image_tile@
foreign import ccall unsafe "hs_bindgen_188355cccd5fdf14" hs_bindgen_188355cccd5fdf14_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_context_add_image_tile@
hs_bindgen_188355cccd5fdf14 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_encoder
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_188355cccd5fdf14 =
  BG.fromFFIType hs_bindgen_188355cccd5fdf14_base

{-| __C declaration:__ @heif_context_add_image_tile@

    __defined at:__ @libheif\/heif_tiling.h 127:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_context_add_image_tile ::
     BG.Ptr Heif_context
     -- ^ __C declaration:__ @ctx@
  -> BG.Ptr Heif_image_handle
     -- ^ __C declaration:__ @tiled_image@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_x@
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @tile_y@
  -> PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.Ptr Heif_encoder
     -- ^ __C declaration:__ @encoder@
  -> IO Heif_error
heif_context_add_image_tile =
  \ctx0 ->
    \tiled_image1 ->
      \tile_x2 ->
        \tile_y3 ->
          \image4 ->
            \encoder5 ->
              BG.allocaAndPeek (\res6 ->
                                  hs_bindgen_188355cccd5fdf14 ctx0 tiled_image1 tile_x2 tile_y3 image4 encoder5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_number_of_used_components@
foreign import ccall unsafe "hs_bindgen_92d950ffdc2de847" hs_bindgen_92d950ffdc2de847_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_number_of_used_components@
hs_bindgen_92d950ffdc2de847 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_92d950ffdc2de847 =
  BG.fromFFIType hs_bindgen_92d950ffdc2de847_base

{-| __C declaration:__ @heif_image_get_number_of_used_components@

    __defined at:__ @libheif\/heif_components.h 96:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_number_of_used_components ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_get_number_of_used_components =
  hs_bindgen_92d950ffdc2de847

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_used_component_ids@
foreign import ccall unsafe "hs_bindgen_50b42d71ed1d2033" hs_bindgen_50b42d71ed1d2033_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_used_component_ids@
hs_bindgen_50b42d71ed1d2033 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_50b42d71ed1d2033 =
  BG.fromFFIType hs_bindgen_50b42d71ed1d2033_base

{-| __C declaration:__ @heif_image_get_used_component_ids@

    __defined at:__ @libheif\/heif_components.h 101:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_used_component_ids ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @out_component_ids@
  -> IO ()
heif_image_get_used_component_ids =
  hs_bindgen_50b42d71ed1d2033

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_channel@
foreign import ccall unsafe "hs_bindgen_d7d8117bfd051b7c" hs_bindgen_d7d8117bfd051b7c_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_channel@
hs_bindgen_d7d8117bfd051b7c ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_channel
hs_bindgen_d7d8117bfd051b7c =
  BG.fromFFIType hs_bindgen_d7d8117bfd051b7c_base

{-| __C declaration:__ @heif_image_get_component_channel@

    __defined at:__ @libheif\/heif_components.h 104:14@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_channel ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO Heif_channel
heif_image_get_component_channel =
  hs_bindgen_d7d8117bfd051b7c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_width@
foreign import ccall unsafe "hs_bindgen_d27f543b4e39211d" hs_bindgen_d27f543b4e39211d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_width@
hs_bindgen_d27f543b4e39211d ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_d27f543b4e39211d =
  BG.fromFFIType hs_bindgen_d27f543b4e39211d_base

{-| __C declaration:__ @heif_image_get_component_width@

    __defined at:__ @libheif\/heif_components.h 107:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_width ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_get_component_width =
  hs_bindgen_d27f543b4e39211d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_height@
foreign import ccall unsafe "hs_bindgen_a5924fcf635470b3" hs_bindgen_a5924fcf635470b3_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_height@
hs_bindgen_a5924fcf635470b3 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_a5924fcf635470b3 =
  BG.fromFFIType hs_bindgen_a5924fcf635470b3_base

{-| __C declaration:__ @heif_image_get_component_height@

    __defined at:__ @libheif\/heif_components.h 110:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_height ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_get_component_height =
  hs_bindgen_a5924fcf635470b3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_bits_per_pixel@
foreign import ccall unsafe "hs_bindgen_212a3558eb9bbb38" hs_bindgen_212a3558eb9bbb38_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_bits_per_pixel@
hs_bindgen_212a3558eb9bbb38 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_212a3558eb9bbb38 =
  BG.fromFFIType hs_bindgen_212a3558eb9bbb38_base

{-| __C declaration:__ @heif_image_get_component_bits_per_pixel@

    __defined at:__ @libheif\/heif_components.h 113:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_bits_per_pixel ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO BG.CInt
heif_image_get_component_bits_per_pixel =
  hs_bindgen_212a3558eb9bbb38

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_type@
foreign import ccall unsafe "hs_bindgen_2a65608da4a96b45" hs_bindgen_2a65608da4a96b45_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_type@
hs_bindgen_2a65608da4a96b45 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_2a65608da4a96b45 =
  BG.fromFFIType hs_bindgen_2a65608da4a96b45_base

{-| __C declaration:__ @heif_image_get_component_type@

    __defined at:__ @libheif\/heif_components.h 116:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_type ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO HsBindgen.Runtime.LibC.Word16
heif_image_get_component_type =
  hs_bindgen_2a65608da4a96b45

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_datatype@
foreign import ccall unsafe "hs_bindgen_5d0c49abeb7489aa" hs_bindgen_5d0c49abeb7489aa_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_datatype@
hs_bindgen_5d0c49abeb7489aa ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_component_datatype
hs_bindgen_5d0c49abeb7489aa =
  BG.fromFFIType hs_bindgen_5d0c49abeb7489aa_base

{-| __C declaration:__ @heif_image_get_component_datatype@

    __defined at:__ @libheif\/heif_components.h 121:25@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_datatype ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO Heif_component_datatype
heif_image_get_component_datatype =
  hs_bindgen_5d0c49abeb7489aa

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_components@
foreign import ccall unsafe "hs_bindgen_3e577779e550a986" hs_bindgen_3e577779e550a986_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_number_of_components@
hs_bindgen_3e577779e550a986 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_3e577779e550a986 =
  BG.fromFFIType hs_bindgen_3e577779e550a986_base

{-| __C declaration:__ @heif_image_handle_get_number_of_components@

    __defined at:__ @libheif\/heif_components.h 136:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_number_of_components ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
heif_image_handle_get_number_of_components =
  hs_bindgen_3e577779e550a986

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_used_component_ids@
foreign import ccall unsafe "hs_bindgen_3de5a3a45cf894db" hs_bindgen_3de5a3a45cf894db_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_used_component_ids@
hs_bindgen_3de5a3a45cf894db ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_3de5a3a45cf894db =
  BG.fromFFIType hs_bindgen_3de5a3a45cf894db_base

{-| __C declaration:__ @heif_image_handle_get_used_component_ids@

    __defined at:__ @libheif\/heif_components.h 142:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_used_component_ids ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @out_component_ids@
  -> IO ()
heif_image_handle_get_used_component_ids =
  hs_bindgen_3de5a3a45cf894db

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_type@
foreign import ccall unsafe "hs_bindgen_a672d180928a4092" hs_bindgen_a672d180928a4092_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_type@
hs_bindgen_a672d180928a4092 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_a672d180928a4092 =
  BG.fromFFIType hs_bindgen_a672d180928a4092_base

{-| __C declaration:__ @heif_image_handle_get_component_type@

    __defined at:__ @libheif\/heif_components.h 145:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_component_type ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO HsBindgen.Runtime.LibC.Word16
heif_image_handle_get_component_type =
  hs_bindgen_a672d180928a4092

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_bits_per_pixel@
foreign import ccall unsafe "hs_bindgen_d6755ff0da5d47f0" hs_bindgen_d6755ff0da5d47f0_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_bits_per_pixel@
hs_bindgen_d6755ff0da5d47f0 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_d6755ff0da5d47f0 =
  BG.fromFFIType hs_bindgen_d6755ff0da5d47f0_base

{-| __C declaration:__ @heif_image_handle_get_component_bits_per_pixel@

    __defined at:__ @libheif\/heif_components.h 148:5@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_component_bits_per_pixel ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO BG.CInt
heif_image_handle_get_component_bits_per_pixel =
  hs_bindgen_d6755ff0da5d47f0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_datatype@
foreign import ccall unsafe "hs_bindgen_4b42fd1e2f6c1b06" hs_bindgen_4b42fd1e2f6c1b06_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_component_datatype@
hs_bindgen_4b42fd1e2f6c1b06 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_component_datatype
hs_bindgen_4b42fd1e2f6c1b06 =
  BG.fromFFIType hs_bindgen_4b42fd1e2f6c1b06_base

{-| __C declaration:__ @heif_image_handle_get_component_datatype@

    __defined at:__ @libheif\/heif_components.h 151:25@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_component_datatype ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> IO Heif_component_datatype
heif_image_handle_get_component_datatype =
  hs_bindgen_4b42fd1e2f6c1b06

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_component@
foreign import ccall unsafe "hs_bindgen_97edbd3d5283c85d" hs_bindgen_97edbd3d5283c85d_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Int32
  -> BG.Word16
  -> BG.Word32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_add_component@
hs_bindgen_97edbd3d5283c85d ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.CInt
  -> HsBindgen.Runtime.LibC.Word16
  -> Heif_component_datatype
  -> BG.CInt
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_97edbd3d5283c85d =
  BG.fromFFIType hs_bindgen_97edbd3d5283c85d_base

{-| __C declaration:__ @heif_image_add_component@

    __defined at:__ @libheif\/heif_components.h 157:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_add_component ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> BG.CInt
     -- ^ __C declaration:__ @width@
  -> BG.CInt
     -- ^ __C declaration:__ @height@
  -> HsBindgen.Runtime.LibC.Word16
     -- ^ __C declaration:__ @component_type@
  -> Heif_component_datatype
     -- ^ __C declaration:__ @datatype@
  -> BG.CInt
     -- ^ __C declaration:__ @bit_depth@
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @out_component_id@
  -> IO Heif_error
heif_image_add_component =
  \image0 ->
    \width1 ->
      \height2 ->
        \component_type3 ->
          \datatype4 ->
            \bit_depth5 ->
              \out_component_id6 ->
                BG.allocaAndPeek (\res7 ->
                                    hs_bindgen_97edbd3d5283c85d image0 width1 height2 component_type3 datatype4 bit_depth5 out_component_id6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_readonly@
foreign import ccall unsafe "hs_bindgen_41c5204933fd6b05" hs_bindgen_41c5204933fd6b05_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_readonly@
hs_bindgen_41c5204933fd6b05 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_41c5204933fd6b05 =
  BG.fromFFIType hs_bindgen_41c5204933fd6b05_base

{-| __C declaration:__ @heif_image_get_component_readonly@

    __defined at:__ @libheif\/heif_components.h 168:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_stride@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
heif_image_get_component_readonly =
  hs_bindgen_41c5204933fd6b05

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component@
foreign import ccall unsafe "hs_bindgen_c588ded2a4e43ed3" hs_bindgen_c588ded2a4e43ed3_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component@
hs_bindgen_c588ded2a4e43ed3 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_c588ded2a4e43ed3 =
  BG.fromFFIType hs_bindgen_c588ded2a4e43ed3_base

{-| __C declaration:__ @heif_image_get_component@

    __defined at:__ @libheif\/heif_components.h 171:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_stride@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
heif_image_get_component =
  hs_bindgen_c588ded2a4e43ed3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint16_readonly@
foreign import ccall unsafe "hs_bindgen_a0c133d2f6cf6ecb" hs_bindgen_a0c133d2f6cf6ecb_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint16_readonly@
hs_bindgen_a0c133d2f6cf6ecb ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word16)
hs_bindgen_a0c133d2f6cf6ecb =
  BG.fromFFIType hs_bindgen_a0c133d2f6cf6ecb_base

{-| __C declaration:__ @heif_image_get_component_uint16_readonly@

    __defined at:__ @libheif\/heif_components.h 180:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint16_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word16)
heif_image_get_component_uint16_readonly =
  hs_bindgen_a0c133d2f6cf6ecb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint16@
foreign import ccall unsafe "hs_bindgen_df23dc13cfbceb66" hs_bindgen_df23dc13cfbceb66_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint16@
hs_bindgen_df23dc13cfbceb66 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word16)
hs_bindgen_df23dc13cfbceb66 =
  BG.fromFFIType hs_bindgen_df23dc13cfbceb66_base

{-| __C declaration:__ @heif_image_get_component_uint16@

    __defined at:__ @libheif\/heif_components.h 183:11@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint16 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word16)
heif_image_get_component_uint16 =
  hs_bindgen_df23dc13cfbceb66

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint32_readonly@
foreign import ccall unsafe "hs_bindgen_04f19447334809a3" hs_bindgen_04f19447334809a3_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint32_readonly@
hs_bindgen_04f19447334809a3 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word32)
hs_bindgen_04f19447334809a3 =
  BG.fromFFIType hs_bindgen_04f19447334809a3_base

{-| __C declaration:__ @heif_image_get_component_uint32_readonly@

    __defined at:__ @libheif\/heif_components.h 186:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint32_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word32)
heif_image_get_component_uint32_readonly =
  hs_bindgen_04f19447334809a3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint32@
foreign import ccall unsafe "hs_bindgen_685261e63a2699dc" hs_bindgen_685261e63a2699dc_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint32@
hs_bindgen_685261e63a2699dc ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word32)
hs_bindgen_685261e63a2699dc =
  BG.fromFFIType hs_bindgen_685261e63a2699dc_base

{-| __C declaration:__ @heif_image_get_component_uint32@

    __defined at:__ @libheif\/heif_components.h 189:11@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint32 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word32)
heif_image_get_component_uint32 =
  hs_bindgen_685261e63a2699dc

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint64_readonly@
foreign import ccall unsafe "hs_bindgen_d36a1f5767c400a9" hs_bindgen_d36a1f5767c400a9_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint64_readonly@
hs_bindgen_d36a1f5767c400a9 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word64)
hs_bindgen_d36a1f5767c400a9 =
  BG.fromFFIType hs_bindgen_d36a1f5767c400a9_base

{-| __C declaration:__ @heif_image_get_component_uint64_readonly@

    __defined at:__ @libheif\/heif_components.h 192:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint64_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word64)
heif_image_get_component_uint64_readonly =
  hs_bindgen_d36a1f5767c400a9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint64@
foreign import ccall unsafe "hs_bindgen_54efeef674e4787a" hs_bindgen_54efeef674e4787a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_uint64@
hs_bindgen_54efeef674e4787a ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word64)
hs_bindgen_54efeef674e4787a =
  BG.fromFFIType hs_bindgen_54efeef674e4787a_base

{-| __C declaration:__ @heif_image_get_component_uint64@

    __defined at:__ @libheif\/heif_components.h 195:11@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_uint64 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word64)
heif_image_get_component_uint64 =
  hs_bindgen_54efeef674e4787a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int8_readonly@
foreign import ccall unsafe "hs_bindgen_6d8f578fb4b8f599" hs_bindgen_6d8f578fb4b8f599_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int8_readonly@
hs_bindgen_6d8f578fb4b8f599 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int8)
hs_bindgen_6d8f578fb4b8f599 =
  BG.fromFFIType hs_bindgen_6d8f578fb4b8f599_base

{-| __C declaration:__ @heif_image_get_component_int8_readonly@

    __defined at:__ @libheif\/heif_components.h 198:15@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int8_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int8)
heif_image_get_component_int8_readonly =
  hs_bindgen_6d8f578fb4b8f599

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int8@
foreign import ccall unsafe "hs_bindgen_0571e5bd586c7239" hs_bindgen_0571e5bd586c7239_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int8@
hs_bindgen_0571e5bd586c7239 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int8)
hs_bindgen_0571e5bd586c7239 =
  BG.fromFFIType hs_bindgen_0571e5bd586c7239_base

{-| __C declaration:__ @heif_image_get_component_int8@

    __defined at:__ @libheif\/heif_components.h 201:9@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int8 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int8)
heif_image_get_component_int8 =
  hs_bindgen_0571e5bd586c7239

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int16_readonly@
foreign import ccall unsafe "hs_bindgen_75635c2481355b9d" hs_bindgen_75635c2481355b9d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int16_readonly@
hs_bindgen_75635c2481355b9d ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int16)
hs_bindgen_75635c2481355b9d =
  BG.fromFFIType hs_bindgen_75635c2481355b9d_base

{-| __C declaration:__ @heif_image_get_component_int16_readonly@

    __defined at:__ @libheif\/heif_components.h 204:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int16_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int16)
heif_image_get_component_int16_readonly =
  hs_bindgen_75635c2481355b9d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int16@
foreign import ccall unsafe "hs_bindgen_c1e147a254585429" hs_bindgen_c1e147a254585429_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int16@
hs_bindgen_c1e147a254585429 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int16)
hs_bindgen_c1e147a254585429 =
  BG.fromFFIType hs_bindgen_c1e147a254585429_base

{-| __C declaration:__ @heif_image_get_component_int16@

    __defined at:__ @libheif\/heif_components.h 207:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int16 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int16)
heif_image_get_component_int16 =
  hs_bindgen_c1e147a254585429

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int32_readonly@
foreign import ccall unsafe "hs_bindgen_c63eb568cec8ad9f" hs_bindgen_c63eb568cec8ad9f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int32_readonly@
hs_bindgen_c63eb568cec8ad9f ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int32)
hs_bindgen_c63eb568cec8ad9f =
  BG.fromFFIType hs_bindgen_c63eb568cec8ad9f_base

{-| __C declaration:__ @heif_image_get_component_int32_readonly@

    __defined at:__ @libheif\/heif_components.h 210:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int32_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int32)
heif_image_get_component_int32_readonly =
  hs_bindgen_c63eb568cec8ad9f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int32@
foreign import ccall unsafe "hs_bindgen_dd8ada136a08e398" hs_bindgen_dd8ada136a08e398_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int32@
hs_bindgen_dd8ada136a08e398 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int32)
hs_bindgen_dd8ada136a08e398 =
  BG.fromFFIType hs_bindgen_dd8ada136a08e398_base

{-| __C declaration:__ @heif_image_get_component_int32@

    __defined at:__ @libheif\/heif_components.h 213:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int32 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int32)
heif_image_get_component_int32 =
  hs_bindgen_dd8ada136a08e398

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int64_readonly@
foreign import ccall unsafe "hs_bindgen_3f4ad7985062f4b4" hs_bindgen_3f4ad7985062f4b4_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int64_readonly@
hs_bindgen_3f4ad7985062f4b4 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int64)
hs_bindgen_3f4ad7985062f4b4 =
  BG.fromFFIType hs_bindgen_3f4ad7985062f4b4_base

{-| __C declaration:__ @heif_image_get_component_int64_readonly@

    __defined at:__ @libheif\/heif_components.h 216:16@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int64_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int64)
heif_image_get_component_int64_readonly =
  hs_bindgen_3f4ad7985062f4b4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int64@
foreign import ccall unsafe "hs_bindgen_0ec9f92992fb98b3" hs_bindgen_0ec9f92992fb98b3_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_int64@
hs_bindgen_0ec9f92992fb98b3 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int64)
hs_bindgen_0ec9f92992fb98b3 =
  BG.fromFFIType hs_bindgen_0ec9f92992fb98b3_base

{-| __C declaration:__ @heif_image_get_component_int64@

    __defined at:__ @libheif\/heif_components.h 219:10@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_int64 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int64)
heif_image_get_component_int64 =
  hs_bindgen_0ec9f92992fb98b3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float32_readonly@
foreign import ccall unsafe "hs_bindgen_23f11ff4a331711a" hs_bindgen_23f11ff4a331711a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float32_readonly@
hs_bindgen_23f11ff4a331711a ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst BG.CFloat)
hs_bindgen_23f11ff4a331711a =
  BG.fromFFIType hs_bindgen_23f11ff4a331711a_base

{-| __C declaration:__ @heif_image_get_component_float32_readonly@

    __defined at:__ @libheif\/heif_components.h 222:14@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_float32_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst BG.CFloat)
heif_image_get_component_float32_readonly =
  hs_bindgen_23f11ff4a331711a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float32@
foreign import ccall unsafe "hs_bindgen_4b3f20877e3bea63" hs_bindgen_4b3f20877e3bea63_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float32@
hs_bindgen_4b3f20877e3bea63 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CFloat)
hs_bindgen_4b3f20877e3bea63 =
  BG.fromFFIType hs_bindgen_4b3f20877e3bea63_base

{-| __C declaration:__ @heif_image_get_component_float32@

    __defined at:__ @libheif\/heif_components.h 225:8@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_float32 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr BG.CFloat)
heif_image_get_component_float32 =
  hs_bindgen_4b3f20877e3bea63

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float64_readonly@
foreign import ccall unsafe "hs_bindgen_f12ea4b15194e665" hs_bindgen_f12ea4b15194e665_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float64_readonly@
hs_bindgen_f12ea4b15194e665 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst BG.CDouble)
hs_bindgen_f12ea4b15194e665 =
  BG.fromFFIType hs_bindgen_f12ea4b15194e665_base

{-| __C declaration:__ @heif_image_get_component_float64_readonly@

    __defined at:__ @libheif\/heif_components.h 228:15@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_float64_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst BG.CDouble)
heif_image_get_component_float64_readonly =
  hs_bindgen_f12ea4b15194e665

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float64@
foreign import ccall unsafe "hs_bindgen_ca1c705a0dd0055e" hs_bindgen_ca1c705a0dd0055e_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_float64@
hs_bindgen_ca1c705a0dd0055e ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CDouble)
hs_bindgen_ca1c705a0dd0055e =
  BG.fromFFIType hs_bindgen_ca1c705a0dd0055e_base

{-| __C declaration:__ @heif_image_get_component_float64@

    __defined at:__ @libheif\/heif_components.h 231:9@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_float64 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr BG.CDouble)
heif_image_get_component_float64 =
  hs_bindgen_ca1c705a0dd0055e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex32_readonly@
foreign import ccall unsafe "hs_bindgen_a98fe7eded61994f" hs_bindgen_a98fe7eded61994f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex32_readonly@
hs_bindgen_a98fe7eded61994f ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst Heif_complex32)
hs_bindgen_a98fe7eded61994f =
  BG.fromFFIType hs_bindgen_a98fe7eded61994f_base

{-| __C declaration:__ @heif_image_get_component_complex32_readonly@

    __defined at:__ @libheif\/heif_components.h 234:23@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_complex32_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst Heif_complex32)
heif_image_get_component_complex32_readonly =
  hs_bindgen_a98fe7eded61994f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex32@
foreign import ccall unsafe "hs_bindgen_d6ca0ebc868780f0" hs_bindgen_d6ca0ebc868780f0_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex32@
hs_bindgen_d6ca0ebc868780f0 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr Heif_complex32)
hs_bindgen_d6ca0ebc868780f0 =
  BG.fromFFIType hs_bindgen_d6ca0ebc868780f0_base

{-| __C declaration:__ @heif_image_get_component_complex32@

    __defined at:__ @libheif\/heif_components.h 237:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_complex32 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr Heif_complex32)
heif_image_get_component_complex32 =
  hs_bindgen_d6ca0ebc868780f0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex64_readonly@
foreign import ccall unsafe "hs_bindgen_bad0deef2747e198" hs_bindgen_bad0deef2747e198_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex64_readonly@
hs_bindgen_bad0deef2747e198 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst Heif_complex64)
hs_bindgen_bad0deef2747e198 =
  BG.fromFFIType hs_bindgen_bad0deef2747e198_base

{-| __C declaration:__ @heif_image_get_component_complex64_readonly@

    __defined at:__ @libheif\/heif_components.h 240:23@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_complex64_readonly ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (PtrConst.PtrConst Heif_complex64)
heif_image_get_component_complex64_readonly =
  hs_bindgen_bad0deef2747e198

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex64@
foreign import ccall unsafe "hs_bindgen_d421676f6243ada6" hs_bindgen_d421676f6243ada6_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_component_complex64@
hs_bindgen_d421676f6243ada6 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr Heif_complex64)
hs_bindgen_d421676f6243ada6 =
  BG.fromFFIType hs_bindgen_d421676f6243ada6_base

{-| __C declaration:__ @heif_image_get_component_complex64@

    __defined at:__ @libheif\/heif_components.h 243:17@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_component_complex64 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
     -- ^ __C declaration:__ @out_row_elements@
  -> IO (BG.Ptr Heif_complex64)
heif_image_get_component_complex64 =
  hs_bindgen_d421676f6243ada6

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_gimi_component_content_id@
foreign import ccall unsafe "hs_bindgen_e6f35aaf095c291e" hs_bindgen_e6f35aaf095c291e_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_gimi_component_content_id@
hs_bindgen_e6f35aaf095c291e ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e6f35aaf095c291e =
  BG.fromFFIType hs_bindgen_e6f35aaf095c291e_base

{-| __C declaration:__ @heif_image_set_gimi_component_content_id@

    __defined at:__ @libheif\/heif_components.h 255:12@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_gimi_component_content_id ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
     -- ^ __C declaration:__ @component_id@
  -> PtrConst.PtrConst BG.CChar
     -- ^ __C declaration:__ @content_id@
  -> IO Heif_error
heif_image_set_gimi_component_content_id =
  \x0 ->
    \component_id1 ->
      \content_id2 ->
        BG.allocaAndPeek (\res3 ->
                            hs_bindgen_e6f35aaf095c291e x0 component_id1 content_id2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_omaf_image_projection@
foreign import ccall unsafe "hs_bindgen_8c10fbaea42a19e7" hs_bindgen_8c10fbaea42a19e7_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_get_omaf_image_projection@
hs_bindgen_8c10fbaea42a19e7 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_omaf_image_projection
hs_bindgen_8c10fbaea42a19e7 =
  BG.fromFFIType hs_bindgen_8c10fbaea42a19e7_base

{-| __C declaration:__ @heif_image_handle_get_omaf_image_projection@

    __defined at:__ @libheif\/heif_omaf.h 83:28@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_get_omaf_image_projection ::
     PtrConst.PtrConst Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> IO Heif_omaf_image_projection
heif_image_handle_get_omaf_image_projection =
  hs_bindgen_8c10fbaea42a19e7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_omaf_image_projection@
foreign import ccall unsafe "hs_bindgen_3affee0f8870d4ec" hs_bindgen_3affee0f8870d4ec_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_handle_set_omaf_image_projection@
hs_bindgen_3affee0f8870d4ec ::
     BG.Ptr Heif_image_handle
  -> Heif_omaf_image_projection
  -> IO ()
hs_bindgen_3affee0f8870d4ec =
  BG.fromFFIType hs_bindgen_3affee0f8870d4ec_base

{-| __C declaration:__ @heif_image_handle_set_omaf_image_projection@

    __defined at:__ @libheif\/heif_omaf.h 86:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_handle_set_omaf_image_projection ::
     BG.Ptr Heif_image_handle
     -- ^ __C declaration:__ @handle@
  -> Heif_omaf_image_projection
     -- ^ __C declaration:__ @image_projection@
  -> IO ()
heif_image_handle_set_omaf_image_projection =
  hs_bindgen_3affee0f8870d4ec

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_omaf_image_projection@
foreign import ccall unsafe "hs_bindgen_a29dc52a1e29118f" hs_bindgen_a29dc52a1e29118f_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_get_omaf_image_projection@
hs_bindgen_a29dc52a1e29118f ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_omaf_image_projection
hs_bindgen_a29dc52a1e29118f =
  BG.fromFFIType hs_bindgen_a29dc52a1e29118f_base

{-| __C declaration:__ @heif_image_get_omaf_image_projection@

    __defined at:__ @libheif\/heif_omaf.h 94:28@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_get_omaf_image_projection ::
     PtrConst.PtrConst Heif_image
     -- ^ __C declaration:__ @image@
  -> IO Heif_omaf_image_projection
heif_image_get_omaf_image_projection =
  hs_bindgen_a29dc52a1e29118f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_omaf_image_projection@
foreign import ccall unsafe "hs_bindgen_5ca071150556330e" hs_bindgen_5ca071150556330e_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Unsafe_heif_image_set_omaf_image_projection@
hs_bindgen_5ca071150556330e ::
     BG.Ptr Heif_image
  -> Heif_omaf_image_projection
  -> IO ()
hs_bindgen_5ca071150556330e =
  BG.fromFFIType hs_bindgen_5ca071150556330e_base

{-| __C declaration:__ @heif_image_set_omaf_image_projection@

    __defined at:__ @libheif\/heif_omaf.h 97:6@

    __exported by:__ @libheif\/heif.h@
-}
heif_image_set_omaf_image_projection ::
     BG.Ptr Heif_image
     -- ^ __C declaration:__ @image@
  -> Heif_omaf_image_projection
     -- ^ __C declaration:__ @image_projection@
  -> IO ()
heif_image_set_omaf_image_projection =
  hs_bindgen_5ca071150556330e