packages feed

libheif-hs-0.1.0.0: src-wasm/Codec/HEIF/Bindings/Generated/Safe.hs

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

module Codec.HEIF.Bindings.Generated.Safe
    ( Codec.HEIF.Bindings.Generated.Safe.heif_get_version
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_version_number
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_version_number_major
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_version_number_minor
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_version_number_maintenance
    , Codec.HEIF.Bindings.Generated.Safe.heif_string_release
    , Codec.HEIF.Bindings.Generated.Safe.heif_init
    , Codec.HEIF.Bindings.Generated.Safe.heif_deinit
    , Codec.HEIF.Bindings.Generated.Safe.heif_load_plugin
    , Codec.HEIF.Bindings.Generated.Safe.heif_load_plugins
    , Codec.HEIF.Bindings.Generated.Safe.heif_unload_plugin
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_plugin_directories
    , Codec.HEIF.Bindings.Generated.Safe.heif_free_plugin_directories
    , Codec.HEIF.Bindings.Generated.Safe.heif_register_decoder_plugin
    , Codec.HEIF.Bindings.Generated.Safe.heif_register_encoder_plugin
    , Codec.HEIF.Bindings.Generated.Safe.heif_register_decoder
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_colorspace
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_chroma_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_width
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_height
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_primary_width
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_primary_height
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_crop
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_extract_area
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_bits_per_pixel_range
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_has_channel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_plane_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_plane
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_plane_readonly2
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_plane2
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_scale_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_extend_to_size_fill_with_zero
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_decoding_warnings
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_add_decoding_warning
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_release
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_create
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_add_plane
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_add_plane_safe
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_is_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_extend_padding_to_size
    , Codec.HEIF.Bindings.Generated.Safe.heif_color_conversion_options_set_defaults
    , Codec.HEIF.Bindings.Generated.Safe.heif_color_conversion_options_ext_alloc
    , Codec.HEIF.Bindings.Generated.Safe.heif_color_conversion_options_ext_copy
    , Codec.HEIF.Bindings.Generated.Safe.heif_color_conversion_options_ext_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_color_profile_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_raw_color_profile_size
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_nclx_color_profile_set_color_primaries
    , Codec.HEIF.Bindings.Generated.Safe.heif_nclx_color_profile_set_transfer_characteristics
    , Codec.HEIF.Bindings.Generated.Safe.heif_nclx_color_profile_set_matrix_coefficients
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_nclx_color_profile_alloc
    , Codec.HEIF.Bindings.Generated.Safe.heif_nclx_color_profile_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_color_profile_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_raw_color_profile_size
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_raw_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_nclx_color_profile
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_has_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_content_light_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_has_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_mastering_display_colour_volume
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_has_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_ambient_viewing_environment
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_has_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_nominal_diffuse_white_luminance
    , Codec.HEIF.Bindings.Generated.Safe.heif_mastering_display_colour_volume_decode
    , Codec.HEIF.Bindings.Generated.Safe.heif_read_main_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_read_minor_version_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_fourcc_to_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_brand_to_fourcc
    , Codec.HEIF.Bindings.Generated.Safe.heif_has_compatible_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_list_compatible_brands
    , Codec.HEIF.Bindings.Generated.Safe.heif_free_list_of_compatible_brands
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_file_mime_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_check_filetype
    , Codec.HEIF.Bindings.Generated.Safe.heif_has_compatible_filetype
    , Codec.HEIF.Bindings.Generated.Safe.heif_check_jpeg_filetype
    , Codec.HEIF.Bindings.Generated.Safe.heif_main_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_metadata_compression_method_supported
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_metadata_blocks
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_list_of_metadata_block_IDs
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_metadata_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_metadata_content_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_metadata_size
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_metadata
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_metadata_item_uri_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_exif_metadata
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_XMP_metadata
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_XMP_metadata2
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_generic_metadata
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_generic_uri_metadata
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_depth_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_depth_images
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_list_of_depth_image_IDs
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_depth_image_handle
    , Codec.HEIF.Bindings.Generated.Safe.heif_depth_representation_info_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_depth_image_representation_info
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_thumbnails
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_list_of_thumbnail_IDs
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_thumbnail
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_encode_thumbnail
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_assign_thumbnail
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_auxiliary_images
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_list_of_auxiliary_image_IDs
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_auxiliary_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_release_auxiliary_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_auxiliary_image_handle
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_free_auxiliary_types
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_entity_groups
    , Codec.HEIF.Bindings.Generated.Safe.heif_entity_groups_release
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_global_security_limits
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_disabled_security_limits
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_security_limits
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_security_limits
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_maximum_image_size_limit
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_alloc
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_read_from_file
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_read_from_memory
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_read_from_memory_without_copy
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_read_from_reader
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_number_of_top_level_images
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_is_top_level_image_ID
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_list_of_top_level_image_IDs
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_primary_image_ID
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_primary_image_handle
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_image_handle
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_debug_dump_boxes_to_file
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_write_mini_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_write_to_file
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_write
    , Codec.HEIF.Bindings.Generated.Safe.heif_have_encoder_for_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_encoder_descriptors
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_get_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_get_id_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_get_compression_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_supports_lossy_compression
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_supports_lossless_compression
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_encoder
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_encoder_for_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_release
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_get_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_lossy_quality
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_lossless
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_logging_level
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_list_parameters
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_get_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_get_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_get_valid_integer_range
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_get_valid_integer_values
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_get_valid_string_values
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_parameter_integer
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_get_parameter_integer
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_integer_valid_range
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_parameter_boolean
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_get_parameter_boolean
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_parameter_string
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_get_parameter_string
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_string_valid_values
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_parameter_integer_valid_values
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_set_parameter
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_get_parameter
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_has_default
    , Codec.HEIF.Bindings.Generated.Safe.heif_orientation_concat
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoding_options_alloc
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoding_options_copy
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoding_options_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_encode_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_overlay_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_primary_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_major_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_compatible_brand
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_unif
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_supportes_lossy_compression
    , Codec.HEIF.Bindings.Generated.Safe.heif_encoder_descriptor_supportes_lossless_compression
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_encoder_descriptors
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_set_max_decoding_threads
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_get_max_decoding_threads
    , Codec.HEIF.Bindings.Generated.Safe.heif_have_decoder_for_format
    , Codec.HEIF.Bindings.Generated.Safe.heif_decoding_options_alloc
    , Codec.HEIF.Bindings.Generated.Safe.heif_decoding_options_copy
    , Codec.HEIF.Bindings.Generated.Safe.heif_decoding_options_free
    , Codec.HEIF.Bindings.Generated.Safe.heif_get_decoder_descriptors
    , Codec.HEIF.Bindings.Generated.Safe.heif_decoder_descriptor_get_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_decoder_descriptor_get_id_name
    , Codec.HEIF.Bindings.Generated.Safe.heif_decode_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_release
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_is_primary_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_item_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_width
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_height
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_alpha_channel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_is_premultiplied_alpha
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_luma_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_chroma_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_preferred_decoding_colorspace
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_ispe_width
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_ispe_height
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_pixel_aspect_ratio
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_context
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_gimi_content_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_gimi_content_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_cmpd_components
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_cmpd_component_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_cmpd_component_type_uri
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_has_gimi_component_content_ids
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_image_tiling
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_grid_image_tile_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_decode_image_tile
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_encode_grid
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_grid_image
    , Codec.HEIF.Bindings.Generated.Safe.heif_context_add_image_tile
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_number_of_used_components
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_used_component_ids
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_channel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_width
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_height
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_datatype
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_number_of_components
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_used_component_ids
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_component_type
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_component_bits_per_pixel
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_component_datatype
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_add_component
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint16_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint16
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint32_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint32
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint64_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_uint64
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int8_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int8
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int16_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int16
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int32_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int32
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int64_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_int64
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_float32_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_float32
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_float64_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_float64
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_complex32_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_complex32
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_complex64_readonly
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_component_complex64
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_set_gimi_component_content_id
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_get_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_handle_set_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Safe.heif_image_get_omaf_image_projection
    , Codec.HEIF.Bindings.Generated.Safe.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_526a1f6b22fefe8b (void)"
  , "{"
  , "  return (heif_get_version)();"
  , "}"
  , "uint32_t hs_bindgen_d348cdf389fc821b (void)"
  , "{"
  , "  return (heif_get_version_number)();"
  , "}"
  , "signed int hs_bindgen_54539907a8a819ec (void)"
  , "{"
  , "  return (heif_get_version_number_major)();"
  , "}"
  , "signed int hs_bindgen_99688cbd2bdbfbf1 (void)"
  , "{"
  , "  return (heif_get_version_number_minor)();"
  , "}"
  , "signed int hs_bindgen_8c29009de8a18700 (void)"
  , "{"
  , "  return (heif_get_version_number_maintenance)();"
  , "}"
  , "void hs_bindgen_fcaafd84ca7cd587 ("
  , "  char const *arg1"
  , ")"
  , "{"
  , "  (heif_string_release)(arg1);"
  , "}"
  , "void hs_bindgen_3ca612619d3ab3ae ("
  , "  heif_init_params *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_init)(arg1);"
  , "}"
  , "void hs_bindgen_9757d907b81ea727 (void)"
  , "{"
  , "  (heif_deinit)();"
  , "}"
  , "void hs_bindgen_d87782b5fd1266aa ("
  , "  char const *arg1,"
  , "  heif_plugin_info const **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_load_plugin)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_810a0abbae4db007 ("
  , "  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_8dc42646c10ca139 ("
  , "  heif_plugin_info const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_unload_plugin)(arg1);"
  , "}"
  , "char const *const *hs_bindgen_576d8a6064774f22 (void)"
  , "{"
  , "  return (heif_get_plugin_directories)();"
  , "}"
  , "void hs_bindgen_515afb4714206d4e ("
  , "  char const *const *arg1"
  , ")"
  , "{"
  , "  (heif_free_plugin_directories)(arg1);"
  , "}"
  , "void hs_bindgen_4723fe4fa34139fb ("
  , "  heif_decoder_plugin const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_register_decoder_plugin)(arg1);"
  , "}"
  , "void hs_bindgen_39215f276df43117 ("
  , "  heif_encoder_plugin const *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  *arg2 = (heif_register_encoder_plugin)(arg1);"
  , "}"
  , "void hs_bindgen_ba37352b5e42f3a1 ("
  , "  heif_context *arg1,"
  , "  heif_decoder_plugin const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_register_decoder)(arg1, arg2);"
  , "}"
  , "heif_colorspace hs_bindgen_0e1ae4cfeb1ed87e ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_colorspace)(arg1);"
  , "}"
  , "heif_chroma hs_bindgen_8c2218fdbacdba5b ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_chroma_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_1ccc91118173a9e1 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_width)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_d2e454a8a0e1e648 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_height)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_b5b1443b20a8511b ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_primary_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_827b20df504b1a95 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_primary_height)(arg1);"
  , "}"
  , "void hs_bindgen_aceb30cee371fd39 ("
  , "  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_ba79018a9ec3506c ("
  , "  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_5fcef9fa747db223 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_770d1451f25f23d0 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_bits_per_pixel_range)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_ac6d99ace06cf7a9 ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2"
  , ")"
  , "{"
  , "  return (heif_image_has_channel)(arg1, arg2);"
  , "}"
  , "uint8_t const *hs_bindgen_047b40903c05997c ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2,"
  , "  signed int *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_462f74b6b0e51669 ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  signed int *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t const *hs_bindgen_c562b49565dea50d ("
  , "  heif_image const *arg1,"
  , "  heif_channel arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane_readonly2)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_c7baba8551bab583 ("
  , "  heif_image *arg1,"
  , "  heif_channel arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_plane2)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_356bd5ab0a7e162c ("
  , "  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_1f51057f3f3ab220 ("
  , "  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_0f73243f659b5839 ("
  , "  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_ff4db425910d967f ("
  , "  heif_image *arg1,"
  , "  heif_error *arg2"
  , ")"
  , "{"
  , "  (heif_image_add_decoding_warning)(arg1, *arg2);"
  , "}"
  , "void hs_bindgen_40ef7aca6e2177d1 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  (heif_image_release)(arg1);"
  , "}"
  , "void hs_bindgen_c59879f567050fcc ("
  , "  heif_image const *arg1,"
  , "  uint32_t *arg2,"
  , "  uint32_t *arg3"
  , ")"
  , "{"
  , "  (heif_image_get_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_382fdd46c680e29d ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3"
  , ")"
  , "{"
  , "  (heif_image_set_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_d5e4426964217a2b ("
  , "  heif_image_handle *arg1,"
  , "  uint32_t arg2,"
  , "  uint32_t arg3"
  , ")"
  , "{"
  , "  (heif_image_handle_set_pixel_aspect_ratio)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_048c16976f9d00a6 ("
  , "  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_39098c398bab3049 ("
  , "  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_b43a95f5d0d97321 ("
  , "  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_66befebbb3cfe08f ("
  , "  heif_image *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_image_set_premultiplied_alpha)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_7f39c909f50251bd ("
  , "  heif_image *arg1"
  , ")"
  , "{"
  , "  return (heif_image_is_premultiplied_alpha)(arg1);"
  , "}"
  , "void hs_bindgen_0a9de4fb42d7aef8 ("
  , "  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_635c898d9653c258 ("
  , "  heif_color_conversion_options *arg1"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_set_defaults)(arg1);"
  , "}"
  , "heif_color_conversion_options_ext *hs_bindgen_f9767fc846991850 (void)"
  , "{"
  , "  return (heif_color_conversion_options_ext_alloc)();"
  , "}"
  , "void hs_bindgen_e89e40cb42b3dbf6 ("
  , "  heif_color_conversion_options_ext *arg1,"
  , "  heif_color_conversion_options_ext const *arg2"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_ext_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_015954e3f538afdf ("
  , "  heif_color_conversion_options_ext *arg1"
  , ")"
  , "{"
  , "  (heif_color_conversion_options_ext_free)(arg1);"
  , "}"
  , "heif_color_profile_type hs_bindgen_c2e2151a49511790 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_color_profile_type)(arg1);"
  , "}"
  , "size_t hs_bindgen_f3b5e52cf4c98431 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_raw_color_profile_size)(arg1);"
  , "}"
  , "void hs_bindgen_70185cdfc94f6180 ("
  , "  heif_image_handle const *arg1,"
  , "  void *arg2,"
  , "  struct heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_handle_get_raw_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_fd1b0dc517553ea4 ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_color_primaries)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4cd780e465edf8f1 ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_transfer_characteristics)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4c2b93b4d0d31039 ("
  , "  heif_color_profile_nclx *arg1,"
  , "  uint16_t arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_nclx_color_profile_set_matrix_coefficients)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4878761a3eacdfd6 ("
  , "  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_252b9611425ba79d (void)"
  , "{"
  , "  return (heif_nclx_color_profile_alloc)();"
  , "}"
  , "void hs_bindgen_baafd267dd3a7eda ("
  , "  heif_color_profile_nclx *arg1"
  , ")"
  , "{"
  , "  (heif_nclx_color_profile_free)(arg1);"
  , "}"
  , "heif_color_profile_type hs_bindgen_451f04ca40155e84 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_color_profile_type)(arg1);"
  , "}"
  , "size_t hs_bindgen_6a45102328f17806 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_raw_color_profile_size)(arg1);"
  , "}"
  , "void hs_bindgen_ea1a521369743d6e ("
  , "  heif_image const *arg1,"
  , "  void *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_get_raw_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4a81755ffaafdd5e ("
  , "  heif_image const *arg1,"
  , "  heif_color_profile_nclx **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_get_nclx_color_profile)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8b84f0de01d3fc38 ("
  , "  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_290eaac614fe5c21 ("
  , "  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_d9106e024a66d6c7 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_content_light_level)(arg1);"
  , "}"
  , "signed int hs_bindgen_004c713c5bed589a ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_content_light_level)(arg1);"
  , "}"
  , "void hs_bindgen_224bdf9ae9bc86e4 ("
  , "  heif_image const *arg1,"
  , "  heif_content_light_level *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_content_light_level)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_0573bf5680dead95 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_content_light_level *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_content_light_level)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_61eb469d896a68ed ("
  , "  heif_image const *arg1,"
  , "  heif_content_light_level const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_content_light_level)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_b94eaa9d4f03b208 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_content_light_level const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_content_light_level)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_65fda22aec99af16 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_mastering_display_colour_volume)(arg1);"
  , "}"
  , "signed int hs_bindgen_ba412b5c11d4ce2c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_mastering_display_colour_volume)(arg1);"
  , "}"
  , "void hs_bindgen_40e6f048c71c0839 ("
  , "  heif_image const *arg1,"
  , "  heif_mastering_display_colour_volume *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_f5f710dd952f38b2 ("
  , "  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_7c7394e5ab9a2522 ("
  , "  heif_image const *arg1,"
  , "  heif_mastering_display_colour_volume const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_mastering_display_colour_volume)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_e71af6fb39f6c6a7 ("
  , "  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_5aefb28b52c74a49 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_ambient_viewing_environment)(arg1);"
  , "}"
  , "signed int hs_bindgen_fb72753dff464187 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_ambient_viewing_environment)(arg1);"
  , "}"
  , "signed int hs_bindgen_e4865cd1be357ee7 ("
  , "  heif_image const *arg1,"
  , "  heif_ambient_viewing_environment *arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_9975a4f39370fa33 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_ambient_viewing_environment *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_be117bf48bd413ce ("
  , "  heif_image const *arg1,"
  , "  heif_ambient_viewing_environment const *arg2"
  , ")"
  , "{"
  , "  (heif_image_set_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_b6a2b9efd97046de ("
  , "  heif_image_handle const *arg1,"
  , "  heif_ambient_viewing_environment const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_ambient_viewing_environment)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_0392b2a2a62a17b9 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_has_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "uint32_t hs_bindgen_2cc0bd424cc13ef0 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "void hs_bindgen_d822f8181b9f461f ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  (heif_image_set_nominal_diffuse_white_luminance)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_75f707df4737c64c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "uint32_t hs_bindgen_88b825fccd56f83a ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_nominal_diffuse_white_luminance)(arg1);"
  , "}"
  , "void hs_bindgen_d54b499790eb4475 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_nominal_diffuse_white_luminance)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_7af8bd15dda9d8da ("
  , "  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_eb070136a1fc7d04 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_read_main_brand)(arg1, arg2);"
  , "}"
  , "heif_brand2 hs_bindgen_99628e0c9a83fd4a ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_read_minor_version_brand)(arg1, arg2);"
  , "}"
  , "heif_brand2 hs_bindgen_8ddb7de5c3530060 ("
  , "  char const *arg1"
  , ")"
  , "{"
  , "  return (heif_fourcc_to_brand)(arg1);"
  , "}"
  , "void hs_bindgen_9ccdf2cb99660b08 ("
  , "  heif_brand2 arg1,"
  , "  char *arg2"
  , ")"
  , "{"
  , "  (heif_brand_to_fourcc)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_80dc19fc26906086 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2,"
  , "  char const *arg3"
  , ")"
  , "{"
  , "  return (heif_has_compatible_brand)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_97aa636c233d899b ("
  , "  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_9bb6fcadffe04582 ("
  , "  heif_brand2 *arg1"
  , ")"
  , "{"
  , "  (heif_free_list_of_compatible_brands)(arg1);"
  , "}"
  , "char const *hs_bindgen_db3e04ae1bcbe4c0 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_get_file_mime_type)(arg1, arg2);"
  , "}"
  , "enum heif_filetype_result hs_bindgen_ab7eedc4f1bb8c0b ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_check_filetype)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_8913d7bc32d127f4 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_has_compatible_filetype)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_d83270b51d72cc95 ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_check_jpeg_filetype)(arg1, arg2);"
  , "}"
  , "enum heif_brand hs_bindgen_bae440faea94f3ea ("
  , "  uint8_t const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_main_brand)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_77b745f8ec6e141f ("
  , "  enum heif_metadata_compression arg1"
  , ")"
  , "{"
  , "  return (heif_metadata_compression_method_supported)(arg1);"
  , "}"
  , "signed int hs_bindgen_221fe3032a7fe8dd ("
  , "  heif_image_handle const *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_metadata_blocks)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_0789072dbb9a1da7 ("
  , "  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_a597fdc86acc8f1b ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_type)(arg1, arg2);"
  , "}"
  , "char const *hs_bindgen_e419666dded9a0a4 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_content_type)(arg1, arg2);"
  , "}"
  , "size_t hs_bindgen_c5dbe28d404f70c2 ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_size)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_40f28b061d8968ee ("
  , "  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_5add5de233105e0a ("
  , "  heif_image_handle const *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_metadata_item_uri_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_50f28b858c52d38b ("
  , "  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_5e1f813465bb1fe7 ("
  , "  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_a4bb5759aaf233ed ("
  , "  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_a112ed25576e1ead ("
  , "  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_4228fc144395b704 ("
  , "  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_c9fd0d64d2e4ff6c ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_depth_image)(arg1);"
  , "}"
  , "signed int hs_bindgen_3168bad746d58363 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_depth_images)(arg1);"
  , "}"
  , "signed int hs_bindgen_6ce7ff0f64592f3b ("
  , "  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_bca9f64d9bf4b689 ("
  , "  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_3e42610ddf090daa ("
  , "  heif_depth_representation_info const *arg1"
  , ")"
  , "{"
  , "  (heif_depth_representation_info_free)(arg1);"
  , "}"
  , "signed int hs_bindgen_be71395884eb3a2e ("
  , "  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_789c72581f93b4f7 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_thumbnails)(arg1);"
  , "}"
  , "signed int hs_bindgen_3f158a04db84b93c ("
  , "  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_74fcac5da0f6fe3d ("
  , "  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_0d7512b56eac000e ("
  , "  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_efcd1e0532f3cce0 ("
  , "  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_c91e031dfd1a0e78 ("
  , "  heif_image_handle const *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_auxiliary_images)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_fcf1bde2005bf76f ("
  , "  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_7eda525d1bdf7412 ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_image_handle_get_auxiliary_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_7a949d12902feb72 ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_release_auxiliary_type)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_aad627a91e87ac22 ("
  , "  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_3e5bdbce07abeacb ("
  , "  heif_image_handle const *arg1,"
  , "  char const **arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_free_auxiliary_types)(arg1, arg2);"
  , "}"
  , "heif_entity_group *hs_bindgen_324b9ac9bccacbea ("
  , "  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_5b6c3bc2afeaec5a ("
  , "  heif_entity_group *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_entity_groups_release)(arg1, arg2);"
  , "}"
  , "heif_security_limits const *hs_bindgen_8bb38c3366b348bc (void)"
  , "{"
  , "  return (heif_get_global_security_limits)();"
  , "}"
  , "heif_security_limits const *hs_bindgen_21dab9bbdea240f9 (void)"
  , "{"
  , "  return (heif_get_disabled_security_limits)();"
  , "}"
  , "heif_security_limits *hs_bindgen_5ef579d9235552d1 ("
  , "  heif_context const *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_security_limits)(arg1);"
  , "}"
  , "void hs_bindgen_57a440143dafec19 ("
  , "  heif_context *arg1,"
  , "  heif_security_limits const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_set_security_limits)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_cf4163e78a532a00 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_maximum_image_size_limit)(arg1, arg2);"
  , "}"
  , "heif_context *hs_bindgen_4f11b82642ca89a5 (void)"
  , "{"
  , "  return (heif_context_alloc)();"
  , "}"
  , "void hs_bindgen_97d3146ab8e2e79e ("
  , "  heif_context *arg1"
  , ")"
  , "{"
  , "  (heif_context_free)(arg1);"
  , "}"
  , "void hs_bindgen_da6b2212d5c04e61 ("
  , "  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_e14cdfad18c1ee01 ("
  , "  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_41af2790f3e2e582 ("
  , "  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_41beae81a04b6975 ("
  , "  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_24967fda9033f6a8 ("
  , "  heif_context *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_number_of_top_level_images)(arg1);"
  , "}"
  , "signed int hs_bindgen_60a32ad03b88d023 ("
  , "  heif_context *arg1,"
  , "  heif_item_id arg2"
  , ")"
  , "{"
  , "  return (heif_context_is_top_level_image_ID)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_0b88933276286d97 ("
  , "  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_d2b9465ca3f1a7a3 ("
  , "  heif_context *arg1,"
  , "  heif_item_id *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_get_primary_image_ID)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_eddef87dcb6b9da2 ("
  , "  heif_context *arg1,"
  , "  heif_image_handle **arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_get_primary_image_handle)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_64043a0ab8e93721 ("
  , "  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_b25f68ddfd09f003 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_debug_dump_boxes_to_file)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_33eec71afe55377e ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_write_mini_format)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_4ccb67696cf9af48 ("
  , "  heif_context *arg1,"
  , "  char const *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_write_to_file)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_567900ed014ef754 ("
  , "  heif_context *arg1,"
  , "  heif_writer *arg2,"
  , "  void *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_context_write)(arg1, arg2, arg3);"
  , "}"
  , "signed int hs_bindgen_eec4a0d4bef90233 ("
  , "  heif_compression_format arg1"
  , ")"
  , "{"
  , "  return (heif_have_encoder_for_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_52de4c5e7a32818d ("
  , "  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_1174aa754ff0ec8a ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_name)(arg1);"
  , "}"
  , "char const *hs_bindgen_db3d052821cb7feb ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_id_name)(arg1);"
  , "}"
  , "heif_compression_format hs_bindgen_7a091fe5257e2928 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_get_compression_format)(arg1);"
  , "}"
  , "signed int hs_bindgen_9855aa70160fb232 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supports_lossy_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_e8aa3e2ad6e21521 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supports_lossless_compression)(arg1);"
  , "}"
  , "void hs_bindgen_5e0d51edb7f5e790 ("
  , "  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_e87023be50eb7156 ("
  , "  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_9ef0bda629baf529 ("
  , "  heif_encoder *arg1"
  , ")"
  , "{"
  , "  (heif_encoder_release)(arg1);"
  , "}"
  , "char const *hs_bindgen_eb93268554bef6fb ("
  , "  heif_encoder const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_get_name)(arg1);"
  , "}"
  , "void hs_bindgen_eb6a076f846bdaa3 ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_lossy_quality)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_979d01b0f5a3cad4 ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_lossless)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_24781b15a9b8e5df ("
  , "  heif_encoder *arg1,"
  , "  signed int arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_encoder_set_logging_level)(arg1, arg2);"
  , "}"
  , "heif_encoder_parameter const *const *hs_bindgen_18ea2b17f3c2144a ("
  , "  heif_encoder *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_list_parameters)(arg1);"
  , "}"
  , "char const *hs_bindgen_af3caa9ff0a88eb8 ("
  , "  heif_encoder_parameter const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_parameter_get_name)(arg1);"
  , "}"
  , "enum heif_encoder_parameter_type hs_bindgen_a1285395e3755e61 ("
  , "  heif_encoder_parameter const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_parameter_get_type)(arg1);"
  , "}"
  , "void hs_bindgen_f5e5f609ff5ef7aa ("
  , "  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_41c9049f903741b9 ("
  , "  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_83a47350b89b3e72 ("
  , "  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_18cabf49ede306b0 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_integer)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_9904a2037102bffe ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_get_parameter_integer)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_1bc5d24eb27254b7 ("
  , "  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_836ffd64ae147e78 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_boolean)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_19a10bdb28e623c2 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  signed int *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_get_parameter_boolean)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_6e45433398da3eb9 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter_string)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_85f0477af2b5af28 ("
  , "  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_813480544a744b7d ("
  , "  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_06fdadacba1a360c ("
  , "  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_3e58e2dcaa03feb8 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2,"
  , "  char const *arg3,"
  , "  heif_error *arg4"
  , ")"
  , "{"
  , "  *arg4 = (heif_encoder_set_parameter)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_931fa955709de69d ("
  , "  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_cadb6a2220566e31 ("
  , "  heif_encoder *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  return (heif_encoder_has_default)(arg1, arg2);"
  , "}"
  , "heif_orientation hs_bindgen_73125422635fa771 ("
  , "  heif_orientation arg1,"
  , "  heif_orientation arg2"
  , ")"
  , "{"
  , "  return (heif_orientation_concat)(arg1, arg2);"
  , "}"
  , "heif_encoding_options *hs_bindgen_1800acc2f4b03a9f (void)"
  , "{"
  , "  return (heif_encoding_options_alloc)();"
  , "}"
  , "void hs_bindgen_fe75402432667b03 ("
  , "  heif_encoding_options *arg1,"
  , "  heif_encoding_options const *arg2"
  , ")"
  , "{"
  , "  (heif_encoding_options_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_da67241096710c84 ("
  , "  heif_encoding_options *arg1"
  , ")"
  , "{"
  , "  (heif_encoding_options_free)(arg1);"
  , "}"
  , "void hs_bindgen_28f09a80ffe40e3d ("
  , "  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_60d0c75f40f4d059 ("
  , "  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_63e1fd26aac84129 ("
  , "  heif_context *arg1,"
  , "  heif_image_handle *arg2,"
  , "  heif_error *arg3"
  , ")"
  , "{"
  , "  *arg3 = (heif_context_set_primary_image)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_97f56663bca77c21 ("
  , "  heif_context *arg1,"
  , "  heif_brand2 arg2"
  , ")"
  , "{"
  , "  (heif_context_set_major_brand)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_03d0e64d393a7f95 ("
  , "  heif_context *arg1,"
  , "  heif_brand2 arg2"
  , ")"
  , "{"
  , "  (heif_context_add_compatible_brand)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_17c891d9806c5635 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_unif)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_7331b243ac8c0c44 ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supportes_lossy_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_d9ed40b1c61c857e ("
  , "  heif_encoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_encoder_descriptor_supportes_lossless_compression)(arg1);"
  , "}"
  , "signed int hs_bindgen_6b3293489791860e ("
  , "  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_28f0ed35cb9d2279 ("
  , "  heif_context *arg1,"
  , "  signed int arg2"
  , ")"
  , "{"
  , "  (heif_context_set_max_decoding_threads)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_70c02de3fb64eb44 ("
  , "  heif_context const *arg1"
  , ")"
  , "{"
  , "  return (heif_context_get_max_decoding_threads)(arg1);"
  , "}"
  , "signed int hs_bindgen_fae52e49bce8c2d9 ("
  , "  heif_compression_format arg1"
  , ")"
  , "{"
  , "  return (heif_have_decoder_for_format)(arg1);"
  , "}"
  , "heif_decoding_options *hs_bindgen_102ab775cba50d0e (void)"
  , "{"
  , "  return (heif_decoding_options_alloc)();"
  , "}"
  , "void hs_bindgen_dd38a52f42e667b2 ("
  , "  heif_decoding_options *arg1,"
  , "  heif_decoding_options const *arg2"
  , ")"
  , "{"
  , "  (heif_decoding_options_copy)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_9ce764a4e512cd45 ("
  , "  heif_decoding_options *arg1"
  , ")"
  , "{"
  , "  (heif_decoding_options_free)(arg1);"
  , "}"
  , "signed int hs_bindgen_89078000e479e916 ("
  , "  heif_compression_format arg1,"
  , "  heif_decoder_descriptor const **arg2,"
  , "  signed int arg3"
  , ")"
  , "{"
  , "  return (heif_get_decoder_descriptors)(arg1, arg2, arg3);"
  , "}"
  , "char const *hs_bindgen_6dbb7f5c61ececf8 ("
  , "  heif_decoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_decoder_descriptor_get_name)(arg1);"
  , "}"
  , "char const *hs_bindgen_ac750dacaf5ed61b ("
  , "  heif_decoder_descriptor const *arg1"
  , ")"
  , "{"
  , "  return (heif_decoder_descriptor_get_id_name)(arg1);"
  , "}"
  , "void hs_bindgen_9df2f46857b2f874 ("
  , "  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_3f481728e9551d14 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  (heif_image_handle_release)(arg1);"
  , "}"
  , "signed int hs_bindgen_c047b47f9376d997 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_is_primary_image)(arg1);"
  , "}"
  , "heif_item_id hs_bindgen_36d4e2a162ff52b2 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_item_id)(arg1);"
  , "}"
  , "signed int hs_bindgen_ebd6ded40b5d2ee4 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_43b18c70d95495b8 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_height)(arg1);"
  , "}"
  , "signed int hs_bindgen_d43fe68f9e8aea95 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_alpha_channel)(arg1);"
  , "}"
  , "signed int hs_bindgen_318428b307f06343 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_is_premultiplied_alpha)(arg1);"
  , "}"
  , "signed int hs_bindgen_be41ab4faa6f8082 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_luma_bits_per_pixel)(arg1);"
  , "}"
  , "signed int hs_bindgen_984920cbd156ac9b ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_chroma_bits_per_pixel)(arg1);"
  , "}"
  , "void hs_bindgen_f5e3531e6391b927 ("
  , "  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_d0e9054b24cf1428 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ispe_width)(arg1);"
  , "}"
  , "signed int hs_bindgen_dbbbf9b131586b02 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_ispe_height)(arg1);"
  , "}"
  , "signed int hs_bindgen_3c36641a28b1e88c ("
  , "  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_84a3dea317661a70 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_context)(arg1);"
  , "}"
  , "char const *hs_bindgen_e67495bf8fb75694 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_gimi_content_id)(arg1);"
  , "}"
  , "void hs_bindgen_a61840a08f259978 ("
  , "  heif_image_handle *arg1,"
  , "  char const *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_gimi_content_id)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_ecf5d96ae1394088 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_cmpd_components)(arg1);"
  , "}"
  , "uint16_t hs_bindgen_c39b365ae6463988 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_cmpd_component_type)(arg1, arg2);"
  , "}"
  , "char const *hs_bindgen_df63ee961806d207 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_cmpd_component_type_uri)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_6a5a1af4a8a1b33e ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_has_gimi_component_content_ids)(arg1);"
  , "}"
  , "char const *hs_bindgen_a39896583d9d4999 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_gimi_component_content_id)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_dacd0cb9d512c937 ("
  , "  heif_image_handle *arg1,"
  , "  uint32_t arg2,"
  , "  char const *arg3"
  , ")"
  , "{"
  , "  (heif_image_handle_set_gimi_component_content_id)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_898454a03bf14ab5 ("
  , "  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_413be3dbf7649192 ("
  , "  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_f101837a6b5be78b ("
  , "  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_164a168311e3f152 ("
  , "  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_7c8ae7abdb656611 ("
  , "  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_03065a3517ed4b58 ("
  , "  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_4c8ac68e14c896d9 ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_number_of_used_components)(arg1);"
  , "}"
  , "void hs_bindgen_89f9c71152d117b0 ("
  , "  heif_image const *arg1,"
  , "  uint32_t *arg2"
  , ")"
  , "{"
  , "  (heif_image_get_used_component_ids)(arg1, arg2);"
  , "}"
  , "heif_channel hs_bindgen_95adbac0d70eaf89 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_channel)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_2563edac91916690 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_width)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_708542ac3769da22 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_height)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_24cce2d768157520 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "uint16_t hs_bindgen_1b3bc84f810e6784 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_type)(arg1, arg2);"
  , "}"
  , "heif_component_datatype hs_bindgen_3427ead05335058d ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_get_component_datatype)(arg1, arg2);"
  , "}"
  , "uint32_t hs_bindgen_08e2626fbb4c7263 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_number_of_components)(arg1);"
  , "}"
  , "void hs_bindgen_8f4c6fe1328df951 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t *arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_get_used_component_ids)(arg1, arg2);"
  , "}"
  , "uint16_t hs_bindgen_da1741b447f6b55f ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_type)(arg1, arg2);"
  , "}"
  , "signed int hs_bindgen_c06a69cd444c0e91 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_bits_per_pixel)(arg1, arg2);"
  , "}"
  , "heif_component_datatype hs_bindgen_246e8aac86313c19 ("
  , "  heif_image_handle const *arg1,"
  , "  uint32_t arg2"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_component_datatype)(arg1, arg2);"
  , "}"
  , "void hs_bindgen_58211ee9d9aaff0b ("
  , "  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_f3b3dd6d12db8090 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint8_t *hs_bindgen_797598038668dd27 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component)(arg1, arg2, arg3);"
  , "}"
  , "uint16_t const *hs_bindgen_dd2caf5774deaa63 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint16_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint16_t *hs_bindgen_c24b1fb221a59544 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint16)(arg1, arg2, arg3);"
  , "}"
  , "uint32_t const *hs_bindgen_f7092ec4941635e4 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint32_t *hs_bindgen_b69a8682c27eebbe ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint32)(arg1, arg2, arg3);"
  , "}"
  , "uint64_t const *hs_bindgen_21af790d31a25679 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "uint64_t *hs_bindgen_052a1b04a5028cc7 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_uint64)(arg1, arg2, arg3);"
  , "}"
  , "int8_t const *hs_bindgen_0647bc125c518139 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int8_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int8_t *hs_bindgen_2b6baabe97efc9ee ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int8)(arg1, arg2, arg3);"
  , "}"
  , "int16_t const *hs_bindgen_05cd3db068fb993a ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int16_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int16_t *hs_bindgen_3a8ffa58a1670f46 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int16)(arg1, arg2, arg3);"
  , "}"
  , "int32_t const *hs_bindgen_f59a29fdf460e965 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int32_t *hs_bindgen_80e3e994059d8dc9 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int32)(arg1, arg2, arg3);"
  , "}"
  , "int64_t const *hs_bindgen_9f7c83bd2e97ad43 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "int64_t *hs_bindgen_fee1de1a1474b6a3 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_int64)(arg1, arg2, arg3);"
  , "}"
  , "float const *hs_bindgen_05ed1c08b5116807 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "float *hs_bindgen_ad009c9ed1ffc812 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float32)(arg1, arg2, arg3);"
  , "}"
  , "double const *hs_bindgen_de66df56dbf48814 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "double *hs_bindgen_0ad1b60eeb8d63bd ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_float64)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex32 const *hs_bindgen_ac4a57dd34ca375a ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex32_readonly)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex32 *hs_bindgen_cfa79a05b01a8fc7 ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex32)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex64 const *hs_bindgen_e0f8d25e700e39b7 ("
  , "  heif_image const *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex64_readonly)(arg1, arg2, arg3);"
  , "}"
  , "heif_complex64 *hs_bindgen_378fc308bf4e003a ("
  , "  heif_image *arg1,"
  , "  uint32_t arg2,"
  , "  size_t *arg3"
  , ")"
  , "{"
  , "  return (heif_image_get_component_complex64)(arg1, arg2, arg3);"
  , "}"
  , "void hs_bindgen_430d40ab533188ef ("
  , "  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_dc0b57c80dcd5111 ("
  , "  heif_image_handle const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_handle_get_omaf_image_projection)(arg1);"
  , "}"
  , "void hs_bindgen_c2c7dbcbc67f17cb ("
  , "  heif_image_handle *arg1,"
  , "  heif_omaf_image_projection arg2"
  , ")"
  , "{"
  , "  (heif_image_handle_set_omaf_image_projection)(arg1, arg2);"
  , "}"
  , "heif_omaf_image_projection hs_bindgen_78b31f0f9d6a835b ("
  , "  heif_image const *arg1"
  , ")"
  , "{"
  , "  return (heif_image_get_omaf_image_projection)(arg1);"
  , "}"
  , "void hs_bindgen_88e80c816c94bac9 ("
  , "  heif_image *arg1,"
  , "  heif_omaf_image_projection arg2"
  , ")"
  , "{"
  , "  (heif_image_set_omaf_image_projection)(arg1, arg2);"
  , "}"
  ]))

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version@
foreign import ccall safe "hs_bindgen_526a1f6b22fefe8b" hs_bindgen_526a1f6b22fefe8b_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version@
hs_bindgen_526a1f6b22fefe8b :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_526a1f6b22fefe8b =
  BG.fromFFIType hs_bindgen_526a1f6b22fefe8b_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_526a1f6b22fefe8b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number@
foreign import ccall safe "hs_bindgen_d348cdf389fc821b" hs_bindgen_d348cdf389fc821b_base ::
     IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number@
hs_bindgen_d348cdf389fc821b :: IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_d348cdf389fc821b =
  BG.fromFFIType hs_bindgen_d348cdf389fc821b_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_d348cdf389fc821b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_major@
foreign import ccall safe "hs_bindgen_54539907a8a819ec" hs_bindgen_54539907a8a819ec_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_major@
hs_bindgen_54539907a8a819ec :: IO BG.CInt
hs_bindgen_54539907a8a819ec =
  BG.fromFFIType hs_bindgen_54539907a8a819ec_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_54539907a8a819ec

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_minor@
foreign import ccall safe "hs_bindgen_99688cbd2bdbfbf1" hs_bindgen_99688cbd2bdbfbf1_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_minor@
hs_bindgen_99688cbd2bdbfbf1 :: IO BG.CInt
hs_bindgen_99688cbd2bdbfbf1 =
  BG.fromFFIType hs_bindgen_99688cbd2bdbfbf1_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_99688cbd2bdbfbf1

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_maintenance@
foreign import ccall safe "hs_bindgen_8c29009de8a18700" hs_bindgen_8c29009de8a18700_base ::
     IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_version_number_maintenance@
hs_bindgen_8c29009de8a18700 :: IO BG.CInt
hs_bindgen_8c29009de8a18700 =
  BG.fromFFIType hs_bindgen_8c29009de8a18700_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_8c29009de8a18700

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_string_release@
foreign import ccall safe "hs_bindgen_fcaafd84ca7cd587" hs_bindgen_fcaafd84ca7cd587_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_string_release@
hs_bindgen_fcaafd84ca7cd587 ::
     PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_fcaafd84ca7cd587 =
  BG.fromFFIType hs_bindgen_fcaafd84ca7cd587_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_fcaafd84ca7cd587

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_init@
foreign import ccall safe "hs_bindgen_3ca612619d3ab3ae" hs_bindgen_3ca612619d3ab3ae_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_init@
hs_bindgen_3ca612619d3ab3ae ::
     BG.Ptr Heif_init_params
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_3ca612619d3ab3ae =
  BG.fromFFIType hs_bindgen_3ca612619d3ab3ae_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_3ca612619d3ab3ae x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_deinit@
foreign import ccall safe "hs_bindgen_9757d907b81ea727" hs_bindgen_9757d907b81ea727_base ::
     IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_deinit@
hs_bindgen_9757d907b81ea727 :: IO ()
hs_bindgen_9757d907b81ea727 =
  BG.fromFFIType hs_bindgen_9757d907b81ea727_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_9757d907b81ea727

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_load_plugin@
foreign import ccall safe "hs_bindgen_d87782b5fd1266aa" hs_bindgen_d87782b5fd1266aa_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_load_plugin@
hs_bindgen_d87782b5fd1266aa ::
     PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d87782b5fd1266aa =
  BG.fromFFIType hs_bindgen_d87782b5fd1266aa_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_d87782b5fd1266aa filename0 out_plugin1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_load_plugins@
foreign import ccall safe "hs_bindgen_810a0abbae4db007" hs_bindgen_810a0abbae4db007_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_Safe_heif_load_plugins@
hs_bindgen_810a0abbae4db007 ::
     PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_plugin_info)
  -> BG.Ptr BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_810a0abbae4db007 =
  BG.fromFFIType hs_bindgen_810a0abbae4db007_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_810a0abbae4db007 directory0 out_plugins1 out_nPluginsLoaded2 output_array_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_unload_plugin@
foreign import ccall safe "hs_bindgen_8dc42646c10ca139" hs_bindgen_8dc42646c10ca139_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_unload_plugin@
hs_bindgen_8dc42646c10ca139 ::
     PtrConst.PtrConst Heif_plugin_info
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8dc42646c10ca139 =
  BG.fromFFIType hs_bindgen_8dc42646c10ca139_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_8dc42646c10ca139 plugin0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_plugin_directories@
foreign import ccall safe "hs_bindgen_576d8a6064774f22" hs_bindgen_576d8a6064774f22_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_plugin_directories@
hs_bindgen_576d8a6064774f22 :: IO (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
hs_bindgen_576d8a6064774f22 =
  BG.fromFFIType hs_bindgen_576d8a6064774f22_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_576d8a6064774f22

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_free_plugin_directories@
foreign import ccall safe "hs_bindgen_515afb4714206d4e" hs_bindgen_515afb4714206d4e_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_free_plugin_directories@
hs_bindgen_515afb4714206d4e ::
     PtrConst.PtrConst (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_515afb4714206d4e =
  BG.fromFFIType hs_bindgen_515afb4714206d4e_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_515afb4714206d4e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_decoder_plugin@
foreign import ccall safe "hs_bindgen_4723fe4fa34139fb" hs_bindgen_4723fe4fa34139fb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_decoder_plugin@
hs_bindgen_4723fe4fa34139fb ::
     PtrConst.PtrConst Heif_decoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4723fe4fa34139fb =
  BG.fromFFIType hs_bindgen_4723fe4fa34139fb_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_4723fe4fa34139fb x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_encoder_plugin@
foreign import ccall safe "hs_bindgen_39215f276df43117" hs_bindgen_39215f276df43117_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_encoder_plugin@
hs_bindgen_39215f276df43117 ::
     PtrConst.PtrConst Heif_encoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_39215f276df43117 =
  BG.fromFFIType hs_bindgen_39215f276df43117_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_39215f276df43117 x0 res1)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_decoder@
foreign import ccall safe "hs_bindgen_ba37352b5e42f3a1" hs_bindgen_ba37352b5e42f3a1_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_register_decoder@
hs_bindgen_ba37352b5e42f3a1 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_decoder_plugin
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_ba37352b5e42f3a1 =
  BG.fromFFIType hs_bindgen_ba37352b5e42f3a1_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_ba37352b5e42f3a1 heif0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_colorspace@
foreign import ccall safe "hs_bindgen_0e1ae4cfeb1ed87e" hs_bindgen_0e1ae4cfeb1ed87e_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_colorspace@
hs_bindgen_0e1ae4cfeb1ed87e ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_colorspace
hs_bindgen_0e1ae4cfeb1ed87e =
  BG.fromFFIType hs_bindgen_0e1ae4cfeb1ed87e_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_0e1ae4cfeb1ed87e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_chroma_format@
foreign import ccall safe "hs_bindgen_8c2218fdbacdba5b" hs_bindgen_8c2218fdbacdba5b_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_chroma_format@
hs_bindgen_8c2218fdbacdba5b ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_chroma
hs_bindgen_8c2218fdbacdba5b =
  BG.fromFFIType hs_bindgen_8c2218fdbacdba5b_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_8c2218fdbacdba5b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_width@
foreign import ccall safe "hs_bindgen_1ccc91118173a9e1" hs_bindgen_1ccc91118173a9e1_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_width@
hs_bindgen_1ccc91118173a9e1 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_1ccc91118173a9e1 =
  BG.fromFFIType hs_bindgen_1ccc91118173a9e1_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_1ccc91118173a9e1

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_height@
foreign import ccall safe "hs_bindgen_d2e454a8a0e1e648" hs_bindgen_d2e454a8a0e1e648_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_height@
hs_bindgen_d2e454a8a0e1e648 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_d2e454a8a0e1e648 =
  BG.fromFFIType hs_bindgen_d2e454a8a0e1e648_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_d2e454a8a0e1e648

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_primary_width@
foreign import ccall safe "hs_bindgen_b5b1443b20a8511b" hs_bindgen_b5b1443b20a8511b_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_primary_width@
hs_bindgen_b5b1443b20a8511b ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_b5b1443b20a8511b =
  BG.fromFFIType hs_bindgen_b5b1443b20a8511b_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_b5b1443b20a8511b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_primary_height@
foreign import ccall safe "hs_bindgen_827b20df504b1a95" hs_bindgen_827b20df504b1a95_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_primary_height@
hs_bindgen_827b20df504b1a95 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_827b20df504b1a95 =
  BG.fromFFIType hs_bindgen_827b20df504b1a95_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_827b20df504b1a95

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_crop@
foreign import ccall safe "hs_bindgen_aceb30cee371fd39" hs_bindgen_aceb30cee371fd39_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_Safe_heif_image_crop@
hs_bindgen_aceb30cee371fd39 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_aceb30cee371fd39 =
  BG.fromFFIType hs_bindgen_aceb30cee371fd39_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_aceb30cee371fd39 img0 left1 right2 top3 bottom4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_extract_area@
foreign import ccall safe "hs_bindgen_ba79018a9ec3506c" hs_bindgen_ba79018a9ec3506c_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_Safe_heif_image_extract_area@
hs_bindgen_ba79018a9ec3506c ::
     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_ba79018a9ec3506c =
  BG.fromFFIType hs_bindgen_ba79018a9ec3506c_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_ba79018a9ec3506c x0 x01 y02 w3 h4 limits5 out_image6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_bits_per_pixel@
foreign import ccall safe "hs_bindgen_5fcef9fa747db223" hs_bindgen_5fcef9fa747db223_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_bits_per_pixel@
hs_bindgen_5fcef9fa747db223 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_5fcef9fa747db223 =
  BG.fromFFIType hs_bindgen_5fcef9fa747db223_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_5fcef9fa747db223

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_bits_per_pixel_range@
foreign import ccall safe "hs_bindgen_770d1451f25f23d0" hs_bindgen_770d1451f25f23d0_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_bits_per_pixel_range@
hs_bindgen_770d1451f25f23d0 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_770d1451f25f23d0 =
  BG.fromFFIType hs_bindgen_770d1451f25f23d0_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_770d1451f25f23d0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_channel@
foreign import ccall safe "hs_bindgen_ac6d99ace06cf7a9" hs_bindgen_ac6d99ace06cf7a9_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_channel@
hs_bindgen_ac6d99ace06cf7a9 ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> IO BG.CInt
hs_bindgen_ac6d99ace06cf7a9 =
  BG.fromFFIType hs_bindgen_ac6d99ace06cf7a9_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_ac6d99ace06cf7a9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane_readonly@
foreign import ccall safe "hs_bindgen_047b40903c05997c" hs_bindgen_047b40903c05997c_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane_readonly@
hs_bindgen_047b40903c05997c ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> BG.Ptr BG.CInt
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_047b40903c05997c =
  BG.fromFFIType hs_bindgen_047b40903c05997c_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_047b40903c05997c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane@
foreign import ccall safe "hs_bindgen_462f74b6b0e51669" hs_bindgen_462f74b6b0e51669_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane@
hs_bindgen_462f74b6b0e51669 ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.Ptr BG.CInt
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_462f74b6b0e51669 =
  BG.fromFFIType hs_bindgen_462f74b6b0e51669_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_462f74b6b0e51669

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane_readonly2@
foreign import ccall safe "hs_bindgen_c562b49565dea50d" hs_bindgen_c562b49565dea50d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane_readonly2@
hs_bindgen_c562b49565dea50d ::
     PtrConst.PtrConst Heif_image
  -> Heif_channel
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_c562b49565dea50d =
  BG.fromFFIType hs_bindgen_c562b49565dea50d_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_c562b49565dea50d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane2@
foreign import ccall safe "hs_bindgen_c7baba8551bab583" hs_bindgen_c7baba8551bab583_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_plane2@
hs_bindgen_c7baba8551bab583 ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_c7baba8551bab583 =
  BG.fromFFIType hs_bindgen_c7baba8551bab583_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_c7baba8551bab583

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_scale_image@
foreign import ccall safe "hs_bindgen_356bd5ab0a7e162c" hs_bindgen_356bd5ab0a7e162c_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_Safe_heif_image_scale_image@
hs_bindgen_356bd5ab0a7e162c ::
     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_356bd5ab0a7e162c =
  BG.fromFFIType hs_bindgen_356bd5ab0a7e162c_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_356bd5ab0a7e162c input0 output1 width2 height3 options4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_extend_to_size_fill_with_zero@
foreign import ccall safe "hs_bindgen_1f51057f3f3ab220" hs_bindgen_1f51057f3f3ab220_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_extend_to_size_fill_with_zero@
hs_bindgen_1f51057f3f3ab220 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_1f51057f3f3ab220 =
  BG.fromFFIType hs_bindgen_1f51057f3f3ab220_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_1f51057f3f3ab220 image0 width1 height2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_decoding_warnings@
foreign import ccall safe "hs_bindgen_0f73243f659b5839" hs_bindgen_0f73243f659b5839_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_decoding_warnings@
hs_bindgen_0f73243f659b5839 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_0f73243f659b5839 =
  BG.fromFFIType hs_bindgen_0f73243f659b5839_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_0f73243f659b5839

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_add_decoding_warning@
foreign import ccall safe "hs_bindgen_ff4db425910d967f" hs_bindgen_ff4db425910d967f_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_add_decoding_warning@
hs_bindgen_ff4db425910d967f ::
     BG.Ptr Heif_image
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_ff4db425910d967f =
  BG.fromFFIType hs_bindgen_ff4db425910d967f_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_ff4db425910d967f image0 err2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_release@
foreign import ccall safe "hs_bindgen_40ef7aca6e2177d1" hs_bindgen_40ef7aca6e2177d1_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_release@
hs_bindgen_40ef7aca6e2177d1 ::
     PtrConst.PtrConst Heif_image
  -> IO ()
hs_bindgen_40ef7aca6e2177d1 =
  BG.fromFFIType hs_bindgen_40ef7aca6e2177d1_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_40ef7aca6e2177d1

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_pixel_aspect_ratio@
foreign import ccall safe "hs_bindgen_c59879f567050fcc" hs_bindgen_c59879f567050fcc_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_pixel_aspect_ratio@
hs_bindgen_c59879f567050fcc ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_c59879f567050fcc =
  BG.fromFFIType hs_bindgen_c59879f567050fcc_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_c59879f567050fcc

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_pixel_aspect_ratio@
foreign import ccall safe "hs_bindgen_382fdd46c680e29d" hs_bindgen_382fdd46c680e29d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_pixel_aspect_ratio@
hs_bindgen_382fdd46c680e29d ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_382fdd46c680e29d =
  BG.fromFFIType hs_bindgen_382fdd46c680e29d_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_382fdd46c680e29d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_pixel_aspect_ratio@
foreign import ccall safe "hs_bindgen_d5e4426964217a2b" hs_bindgen_d5e4426964217a2b_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_pixel_aspect_ratio@
hs_bindgen_d5e4426964217a2b ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_d5e4426964217a2b =
  BG.fromFFIType hs_bindgen_d5e4426964217a2b_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_d5e4426964217a2b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_create@
foreign import ccall safe "hs_bindgen_048c16976f9d00a6" hs_bindgen_048c16976f9d00a6_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_Safe_heif_image_create@
hs_bindgen_048c16976f9d00a6 ::
     BG.CInt
  -> BG.CInt
  -> Heif_colorspace
  -> Heif_chroma
  -> BG.Ptr (BG.Ptr Heif_image)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_048c16976f9d00a6 =
  BG.fromFFIType hs_bindgen_048c16976f9d00a6_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_048c16976f9d00a6 width0 height1 colorspace2 chroma3 out_image4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_add_plane@
foreign import ccall safe "hs_bindgen_39098c398bab3049" hs_bindgen_39098c398bab3049_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_Safe_heif_image_add_plane@
hs_bindgen_39098c398bab3049 ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_39098c398bab3049 =
  BG.fromFFIType hs_bindgen_39098c398bab3049_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_39098c398bab3049 image0 channel1 width2 height3 bit_depth4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_add_plane_safe@
foreign import ccall safe "hs_bindgen_b43a95f5d0d97321" hs_bindgen_b43a95f5d0d97321_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_Safe_heif_image_add_plane_safe@
hs_bindgen_b43a95f5d0d97321 ::
     BG.Ptr Heif_image
  -> Heif_channel
  -> BG.CInt
  -> BG.CInt
  -> BG.CInt
  -> PtrConst.PtrConst Heif_security_limits
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_b43a95f5d0d97321 =
  BG.fromFFIType hs_bindgen_b43a95f5d0d97321_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_b43a95f5d0d97321 image0 channel1 width2 height3 bit_depth4 limits5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_premultiplied_alpha@
foreign import ccall safe "hs_bindgen_66befebbb3cfe08f" hs_bindgen_66befebbb3cfe08f_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_premultiplied_alpha@
hs_bindgen_66befebbb3cfe08f ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> IO ()
hs_bindgen_66befebbb3cfe08f =
  BG.fromFFIType hs_bindgen_66befebbb3cfe08f_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_66befebbb3cfe08f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_is_premultiplied_alpha@
foreign import ccall safe "hs_bindgen_7f39c909f50251bd" hs_bindgen_7f39c909f50251bd_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_is_premultiplied_alpha@
hs_bindgen_7f39c909f50251bd ::
     BG.Ptr Heif_image
  -> IO BG.CInt
hs_bindgen_7f39c909f50251bd =
  BG.fromFFIType hs_bindgen_7f39c909f50251bd_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_7f39c909f50251bd

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_extend_padding_to_size@
foreign import ccall safe "hs_bindgen_0a9de4fb42d7aef8" hs_bindgen_0a9de4fb42d7aef8_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_extend_padding_to_size@
hs_bindgen_0a9de4fb42d7aef8 ::
     BG.Ptr Heif_image
  -> BG.CInt
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_0a9de4fb42d7aef8 =
  BG.fromFFIType hs_bindgen_0a9de4fb42d7aef8_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_0a9de4fb42d7aef8 image0 min_physical_width1 min_physical_height2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_set_defaults@
foreign import ccall safe "hs_bindgen_635c898d9653c258" hs_bindgen_635c898d9653c258_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_set_defaults@
hs_bindgen_635c898d9653c258 ::
     BG.Ptr Heif_color_conversion_options
  -> IO ()
hs_bindgen_635c898d9653c258 =
  BG.fromFFIType hs_bindgen_635c898d9653c258_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_635c898d9653c258

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_alloc@
foreign import ccall safe "hs_bindgen_f9767fc846991850" hs_bindgen_f9767fc846991850_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_alloc@
hs_bindgen_f9767fc846991850 :: IO (BG.Ptr Heif_color_conversion_options_ext)
hs_bindgen_f9767fc846991850 =
  BG.fromFFIType hs_bindgen_f9767fc846991850_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_f9767fc846991850

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_copy@
foreign import ccall safe "hs_bindgen_e89e40cb42b3dbf6" hs_bindgen_e89e40cb42b3dbf6_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_copy@
hs_bindgen_e89e40cb42b3dbf6 ::
     BG.Ptr Heif_color_conversion_options_ext
  -> PtrConst.PtrConst Heif_color_conversion_options_ext
  -> IO ()
hs_bindgen_e89e40cb42b3dbf6 =
  BG.fromFFIType hs_bindgen_e89e40cb42b3dbf6_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_e89e40cb42b3dbf6

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_free@
foreign import ccall safe "hs_bindgen_015954e3f538afdf" hs_bindgen_015954e3f538afdf_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_color_conversion_options_ext_free@
hs_bindgen_015954e3f538afdf ::
     BG.Ptr Heif_color_conversion_options_ext
  -> IO ()
hs_bindgen_015954e3f538afdf =
  BG.fromFFIType hs_bindgen_015954e3f538afdf_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_015954e3f538afdf

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_color_profile_type@
foreign import ccall safe "hs_bindgen_c2e2151a49511790" hs_bindgen_c2e2151a49511790_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_color_profile_type@
hs_bindgen_c2e2151a49511790 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_color_profile_type
hs_bindgen_c2e2151a49511790 =
  BG.fromFFIType hs_bindgen_c2e2151a49511790_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_c2e2151a49511790

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_raw_color_profile_size@
foreign import ccall safe "hs_bindgen_f3b5e52cf4c98431" hs_bindgen_f3b5e52cf4c98431_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_raw_color_profile_size@
hs_bindgen_f3b5e52cf4c98431 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_f3b5e52cf4c98431 =
  BG.fromFFIType hs_bindgen_f3b5e52cf4c98431_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_f3b5e52cf4c98431

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_raw_color_profile@
foreign import ccall safe "hs_bindgen_70185cdfc94f6180" hs_bindgen_70185cdfc94f6180_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_raw_color_profile@
hs_bindgen_70185cdfc94f6180 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_70185cdfc94f6180 =
  BG.fromFFIType hs_bindgen_70185cdfc94f6180_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_70185cdfc94f6180 handle0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_color_primaries@
foreign import ccall safe "hs_bindgen_fd1b0dc517553ea4" hs_bindgen_fd1b0dc517553ea4_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_color_primaries@
hs_bindgen_fd1b0dc517553ea4 ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_fd1b0dc517553ea4 =
  BG.fromFFIType hs_bindgen_fd1b0dc517553ea4_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_fd1b0dc517553ea4 nclx0 cp1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_transfer_characteristics@
foreign import ccall safe "hs_bindgen_4cd780e465edf8f1" hs_bindgen_4cd780e465edf8f1_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_transfer_characteristics@
hs_bindgen_4cd780e465edf8f1 ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4cd780e465edf8f1 =
  BG.fromFFIType hs_bindgen_4cd780e465edf8f1_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_4cd780e465edf8f1 nclx0 transfer_characteristics1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_matrix_coefficients@
foreign import ccall safe "hs_bindgen_4c2b93b4d0d31039" hs_bindgen_4c2b93b4d0d31039_base ::
     BG.Ptr BG.Void
  -> BG.Word16
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_set_matrix_coefficients@
hs_bindgen_4c2b93b4d0d31039 ::
     BG.Ptr Heif_color_profile_nclx
  -> HsBindgen.Runtime.LibC.Word16
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4c2b93b4d0d31039 =
  BG.fromFFIType hs_bindgen_4c2b93b4d0d31039_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_4c2b93b4d0d31039 nclx0 matrix_coefficients1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_nclx_color_profile@
foreign import ccall safe "hs_bindgen_4878761a3eacdfd6" hs_bindgen_4878761a3eacdfd6_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_nclx_color_profile@
hs_bindgen_4878761a3eacdfd6 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4878761a3eacdfd6 =
  BG.fromFFIType hs_bindgen_4878761a3eacdfd6_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_4878761a3eacdfd6 handle0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_alloc@
foreign import ccall safe "hs_bindgen_252b9611425ba79d" hs_bindgen_252b9611425ba79d_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_alloc@
hs_bindgen_252b9611425ba79d :: IO (BG.Ptr Heif_color_profile_nclx)
hs_bindgen_252b9611425ba79d =
  BG.fromFFIType hs_bindgen_252b9611425ba79d_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_252b9611425ba79d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_free@
foreign import ccall safe "hs_bindgen_baafd267dd3a7eda" hs_bindgen_baafd267dd3a7eda_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_nclx_color_profile_free@
hs_bindgen_baafd267dd3a7eda ::
     BG.Ptr Heif_color_profile_nclx
  -> IO ()
hs_bindgen_baafd267dd3a7eda =
  BG.fromFFIType hs_bindgen_baafd267dd3a7eda_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_baafd267dd3a7eda

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_color_profile_type@
foreign import ccall safe "hs_bindgen_451f04ca40155e84" hs_bindgen_451f04ca40155e84_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_color_profile_type@
hs_bindgen_451f04ca40155e84 ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_color_profile_type
hs_bindgen_451f04ca40155e84 =
  BG.fromFFIType hs_bindgen_451f04ca40155e84_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_451f04ca40155e84

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_raw_color_profile_size@
foreign import ccall safe "hs_bindgen_6a45102328f17806" hs_bindgen_6a45102328f17806_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_raw_color_profile_size@
hs_bindgen_6a45102328f17806 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_6a45102328f17806 =
  BG.fromFFIType hs_bindgen_6a45102328f17806_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_6a45102328f17806

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_raw_color_profile@
foreign import ccall safe "hs_bindgen_ea1a521369743d6e" hs_bindgen_ea1a521369743d6e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_raw_color_profile@
hs_bindgen_ea1a521369743d6e ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_ea1a521369743d6e =
  BG.fromFFIType hs_bindgen_ea1a521369743d6e_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_ea1a521369743d6e image0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_nclx_color_profile@
foreign import ccall safe "hs_bindgen_4a81755ffaafdd5e" hs_bindgen_4a81755ffaafdd5e_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_nclx_color_profile@
hs_bindgen_4a81755ffaafdd5e ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr (BG.Ptr Heif_color_profile_nclx)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4a81755ffaafdd5e =
  BG.fromFFIType hs_bindgen_4a81755ffaafdd5e_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_4a81755ffaafdd5e image0 out_data1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_raw_color_profile@
foreign import ccall safe "hs_bindgen_8b84f0de01d3fc38" hs_bindgen_8b84f0de01d3fc38_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_raw_color_profile@
hs_bindgen_8b84f0de01d3fc38 ::
     BG.Ptr Heif_image
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8b84f0de01d3fc38 =
  BG.fromFFIType hs_bindgen_8b84f0de01d3fc38_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_8b84f0de01d3fc38 image0 profile_type_fourcc_string1 profile_data2 profile_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_nclx_color_profile@
foreign import ccall safe "hs_bindgen_290eaac614fe5c21" hs_bindgen_290eaac614fe5c21_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_nclx_color_profile@
hs_bindgen_290eaac614fe5c21 ::
     BG.Ptr Heif_image
  -> PtrConst.PtrConst Heif_color_profile_nclx
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_290eaac614fe5c21 =
  BG.fromFFIType hs_bindgen_290eaac614fe5c21_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_290eaac614fe5c21 image0 color_profile1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_content_light_level@
foreign import ccall safe "hs_bindgen_d9106e024a66d6c7" hs_bindgen_d9106e024a66d6c7_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_content_light_level@
hs_bindgen_d9106e024a66d6c7 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_d9106e024a66d6c7 =
  BG.fromFFIType hs_bindgen_d9106e024a66d6c7_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_d9106e024a66d6c7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_content_light_level@
foreign import ccall safe "hs_bindgen_004c713c5bed589a" hs_bindgen_004c713c5bed589a_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_content_light_level@
hs_bindgen_004c713c5bed589a ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_004c713c5bed589a =
  BG.fromFFIType hs_bindgen_004c713c5bed589a_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_004c713c5bed589a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_content_light_level@
foreign import ccall safe "hs_bindgen_224bdf9ae9bc86e4" hs_bindgen_224bdf9ae9bc86e4_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_content_light_level@
hs_bindgen_224bdf9ae9bc86e4 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_content_light_level
  -> IO ()
hs_bindgen_224bdf9ae9bc86e4 =
  BG.fromFFIType hs_bindgen_224bdf9ae9bc86e4_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_224bdf9ae9bc86e4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_content_light_level@
foreign import ccall safe "hs_bindgen_0573bf5680dead95" hs_bindgen_0573bf5680dead95_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_content_light_level@
hs_bindgen_0573bf5680dead95 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_content_light_level
  -> IO BG.CInt
hs_bindgen_0573bf5680dead95 =
  BG.fromFFIType hs_bindgen_0573bf5680dead95_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_0573bf5680dead95

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_content_light_level@
foreign import ccall safe "hs_bindgen_61eb469d896a68ed" hs_bindgen_61eb469d896a68ed_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_content_light_level@
hs_bindgen_61eb469d896a68ed ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_content_light_level
  -> IO ()
hs_bindgen_61eb469d896a68ed =
  BG.fromFFIType hs_bindgen_61eb469d896a68ed_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_61eb469d896a68ed

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_content_light_level@
foreign import ccall safe "hs_bindgen_b94eaa9d4f03b208" hs_bindgen_b94eaa9d4f03b208_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_content_light_level@
hs_bindgen_b94eaa9d4f03b208 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_content_light_level
  -> IO ()
hs_bindgen_b94eaa9d4f03b208 =
  BG.fromFFIType hs_bindgen_b94eaa9d4f03b208_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_b94eaa9d4f03b208

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_65fda22aec99af16" hs_bindgen_65fda22aec99af16_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_mastering_display_colour_volume@
hs_bindgen_65fda22aec99af16 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_65fda22aec99af16 =
  BG.fromFFIType hs_bindgen_65fda22aec99af16_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_65fda22aec99af16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_ba412b5c11d4ce2c" hs_bindgen_ba412b5c11d4ce2c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_mastering_display_colour_volume@
hs_bindgen_ba412b5c11d4ce2c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_ba412b5c11d4ce2c =
  BG.fromFFIType hs_bindgen_ba412b5c11d4ce2c_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_ba412b5c11d4ce2c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_40e6f048c71c0839" hs_bindgen_40e6f048c71c0839_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_mastering_display_colour_volume@
hs_bindgen_40e6f048c71c0839 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_40e6f048c71c0839 =
  BG.fromFFIType hs_bindgen_40e6f048c71c0839_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_40e6f048c71c0839

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_f5f710dd952f38b2" hs_bindgen_f5f710dd952f38b2_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_mastering_display_colour_volume@
hs_bindgen_f5f710dd952f38b2 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_mastering_display_colour_volume
  -> IO BG.CInt
hs_bindgen_f5f710dd952f38b2 =
  BG.fromFFIType hs_bindgen_f5f710dd952f38b2_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_f5f710dd952f38b2

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_7c7394e5ab9a2522" hs_bindgen_7c7394e5ab9a2522_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_mastering_display_colour_volume@
hs_bindgen_7c7394e5ab9a2522 ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_7c7394e5ab9a2522 =
  BG.fromFFIType hs_bindgen_7c7394e5ab9a2522_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_7c7394e5ab9a2522

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_mastering_display_colour_volume@
foreign import ccall safe "hs_bindgen_e71af6fb39f6c6a7" hs_bindgen_e71af6fb39f6c6a7_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_mastering_display_colour_volume@
hs_bindgen_e71af6fb39f6c6a7 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> IO ()
hs_bindgen_e71af6fb39f6c6a7 =
  BG.fromFFIType hs_bindgen_e71af6fb39f6c6a7_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_e71af6fb39f6c6a7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_5aefb28b52c74a49" hs_bindgen_5aefb28b52c74a49_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_ambient_viewing_environment@
hs_bindgen_5aefb28b52c74a49 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_5aefb28b52c74a49 =
  BG.fromFFIType hs_bindgen_5aefb28b52c74a49_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_5aefb28b52c74a49

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_fb72753dff464187" hs_bindgen_fb72753dff464187_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_ambient_viewing_environment@
hs_bindgen_fb72753dff464187 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_fb72753dff464187 =
  BG.fromFFIType hs_bindgen_fb72753dff464187_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_fb72753dff464187

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_e4865cd1be357ee7" hs_bindgen_e4865cd1be357ee7_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_ambient_viewing_environment@
hs_bindgen_e4865cd1be357ee7 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr Heif_ambient_viewing_environment
  -> IO BG.CInt
hs_bindgen_e4865cd1be357ee7 =
  BG.fromFFIType hs_bindgen_e4865cd1be357ee7_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_e4865cd1be357ee7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_9975a4f39370fa33" hs_bindgen_9975a4f39370fa33_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ambient_viewing_environment@
hs_bindgen_9975a4f39370fa33 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_ambient_viewing_environment
  -> IO BG.CInt
hs_bindgen_9975a4f39370fa33 =
  BG.fromFFIType hs_bindgen_9975a4f39370fa33_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_9975a4f39370fa33

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_be117bf48bd413ce" hs_bindgen_be117bf48bd413ce_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_ambient_viewing_environment@
hs_bindgen_be117bf48bd413ce ::
     PtrConst.PtrConst Heif_image
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
  -> IO ()
hs_bindgen_be117bf48bd413ce =
  BG.fromFFIType hs_bindgen_be117bf48bd413ce_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_be117bf48bd413ce

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_ambient_viewing_environment@
foreign import ccall safe "hs_bindgen_b6a2b9efd97046de" hs_bindgen_b6a2b9efd97046de_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_ambient_viewing_environment@
hs_bindgen_b6a2b9efd97046de ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_ambient_viewing_environment
  -> IO ()
hs_bindgen_b6a2b9efd97046de =
  BG.fromFFIType hs_bindgen_b6a2b9efd97046de_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_b6a2b9efd97046de

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_0392b2a2a62a17b9" hs_bindgen_0392b2a2a62a17b9_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_has_nominal_diffuse_white_luminance@
hs_bindgen_0392b2a2a62a17b9 ::
     PtrConst.PtrConst Heif_image
  -> IO BG.CInt
hs_bindgen_0392b2a2a62a17b9 =
  BG.fromFFIType hs_bindgen_0392b2a2a62a17b9_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_0392b2a2a62a17b9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_2cc0bd424cc13ef0" hs_bindgen_2cc0bd424cc13ef0_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_nominal_diffuse_white_luminance@
hs_bindgen_2cc0bd424cc13ef0 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_2cc0bd424cc13ef0 =
  BG.fromFFIType hs_bindgen_2cc0bd424cc13ef0_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_2cc0bd424cc13ef0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_d822f8181b9f461f" hs_bindgen_d822f8181b9f461f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_nominal_diffuse_white_luminance@
hs_bindgen_d822f8181b9f461f ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_d822f8181b9f461f =
  BG.fromFFIType hs_bindgen_d822f8181b9f461f_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_d822f8181b9f461f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_75f707df4737c64c" hs_bindgen_75f707df4737c64c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_nominal_diffuse_white_luminance@
hs_bindgen_75f707df4737c64c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_75f707df4737c64c =
  BG.fromFFIType hs_bindgen_75f707df4737c64c_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_75f707df4737c64c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_88b825fccd56f83a" hs_bindgen_88b825fccd56f83a_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_nominal_diffuse_white_luminance@
hs_bindgen_88b825fccd56f83a ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_88b825fccd56f83a =
  BG.fromFFIType hs_bindgen_88b825fccd56f83a_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_88b825fccd56f83a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_nominal_diffuse_white_luminance@
foreign import ccall safe "hs_bindgen_d54b499790eb4475" hs_bindgen_d54b499790eb4475_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_nominal_diffuse_white_luminance@
hs_bindgen_d54b499790eb4475 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_d54b499790eb4475 =
  BG.fromFFIType hs_bindgen_d54b499790eb4475_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_d54b499790eb4475

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_mastering_display_colour_volume_decode@
foreign import ccall safe "hs_bindgen_7af8bd15dda9d8da" hs_bindgen_7af8bd15dda9d8da_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_mastering_display_colour_volume_decode@
hs_bindgen_7af8bd15dda9d8da ::
     PtrConst.PtrConst Heif_mastering_display_colour_volume
  -> BG.Ptr Heif_decoded_mastering_display_colour_volume
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_7af8bd15dda9d8da =
  BG.fromFFIType hs_bindgen_7af8bd15dda9d8da_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_7af8bd15dda9d8da in'0 out1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_read_main_brand@
foreign import ccall safe "hs_bindgen_eb070136a1fc7d04" hs_bindgen_eb070136a1fc7d04_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_read_main_brand@
hs_bindgen_eb070136a1fc7d04 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand2
hs_bindgen_eb070136a1fc7d04 =
  BG.fromFFIType hs_bindgen_eb070136a1fc7d04_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_eb070136a1fc7d04

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_read_minor_version_brand@
foreign import ccall safe "hs_bindgen_99628e0c9a83fd4a" hs_bindgen_99628e0c9a83fd4a_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_read_minor_version_brand@
hs_bindgen_99628e0c9a83fd4a ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand2
hs_bindgen_99628e0c9a83fd4a =
  BG.fromFFIType hs_bindgen_99628e0c9a83fd4a_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_99628e0c9a83fd4a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_fourcc_to_brand@
foreign import ccall safe "hs_bindgen_8ddb7de5c3530060" hs_bindgen_8ddb7de5c3530060_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_fourcc_to_brand@
hs_bindgen_8ddb7de5c3530060 ::
     PtrConst.PtrConst BG.CChar
  -> IO Heif_brand2
hs_bindgen_8ddb7de5c3530060 =
  BG.fromFFIType hs_bindgen_8ddb7de5c3530060_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_8ddb7de5c3530060

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_brand_to_fourcc@
foreign import ccall safe "hs_bindgen_9ccdf2cb99660b08" hs_bindgen_9ccdf2cb99660b08_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_brand_to_fourcc@
hs_bindgen_9ccdf2cb99660b08 ::
     Heif_brand2
  -> BG.Ptr BG.CChar
  -> IO ()
hs_bindgen_9ccdf2cb99660b08 =
  BG.fromFFIType hs_bindgen_9ccdf2cb99660b08_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_9ccdf2cb99660b08

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_has_compatible_brand@
foreign import ccall safe "hs_bindgen_80dc19fc26906086" hs_bindgen_80dc19fc26906086_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_has_compatible_brand@
hs_bindgen_80dc19fc26906086 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_80dc19fc26906086 =
  BG.fromFFIType hs_bindgen_80dc19fc26906086_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_80dc19fc26906086

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_list_compatible_brands@
foreign import ccall safe "hs_bindgen_97aa636c233d899b" hs_bindgen_97aa636c233d899b_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_Safe_heif_list_compatible_brands@
hs_bindgen_97aa636c233d899b ::
     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_97aa636c233d899b =
  BG.fromFFIType hs_bindgen_97aa636c233d899b_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_97aa636c233d899b data'0 len1 out_brands2 out_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_free_list_of_compatible_brands@
foreign import ccall safe "hs_bindgen_9bb6fcadffe04582" hs_bindgen_9bb6fcadffe04582_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_free_list_of_compatible_brands@
hs_bindgen_9bb6fcadffe04582 ::
     BG.Ptr Heif_brand2
  -> IO ()
hs_bindgen_9bb6fcadffe04582 =
  BG.fromFFIType hs_bindgen_9bb6fcadffe04582_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_9bb6fcadffe04582

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_file_mime_type@
foreign import ccall safe "hs_bindgen_db3e04ae1bcbe4c0" hs_bindgen_db3e04ae1bcbe4c0_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_file_mime_type@
hs_bindgen_db3e04ae1bcbe4c0 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_db3e04ae1bcbe4c0 =
  BG.fromFFIType hs_bindgen_db3e04ae1bcbe4c0_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_db3e04ae1bcbe4c0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_check_filetype@
foreign import ccall safe "hs_bindgen_ab7eedc4f1bb8c0b" hs_bindgen_ab7eedc4f1bb8c0b_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_check_filetype@
hs_bindgen_ab7eedc4f1bb8c0b ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_filetype_result
hs_bindgen_ab7eedc4f1bb8c0b =
  BG.fromFFIType hs_bindgen_ab7eedc4f1bb8c0b_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_ab7eedc4f1bb8c0b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_has_compatible_filetype@
foreign import ccall safe "hs_bindgen_8913d7bc32d127f4" hs_bindgen_8913d7bc32d127f4_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_has_compatible_filetype@
hs_bindgen_8913d7bc32d127f4 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_8913d7bc32d127f4 =
  BG.fromFFIType hs_bindgen_8913d7bc32d127f4_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_8913d7bc32d127f4 data'0 len1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_check_jpeg_filetype@
foreign import ccall safe "hs_bindgen_d83270b51d72cc95" hs_bindgen_d83270b51d72cc95_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_check_jpeg_filetype@
hs_bindgen_d83270b51d72cc95 ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_d83270b51d72cc95 =
  BG.fromFFIType hs_bindgen_d83270b51d72cc95_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_d83270b51d72cc95

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_main_brand@
foreign import ccall safe "hs_bindgen_bae440faea94f3ea" hs_bindgen_bae440faea94f3ea_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_main_brand@
hs_bindgen_bae440faea94f3ea ::
     PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8
  -> BG.CInt
  -> IO Heif_brand
hs_bindgen_bae440faea94f3ea =
  BG.fromFFIType hs_bindgen_bae440faea94f3ea_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_bae440faea94f3ea

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_metadata_compression_method_supported@
foreign import ccall safe "hs_bindgen_77b745f8ec6e141f" hs_bindgen_77b745f8ec6e141f_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_metadata_compression_method_supported@
hs_bindgen_77b745f8ec6e141f ::
     Heif_metadata_compression
  -> IO BG.CInt
hs_bindgen_77b745f8ec6e141f =
  BG.fromFFIType hs_bindgen_77b745f8ec6e141f_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_77b745f8ec6e141f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_metadata_blocks@
foreign import ccall safe "hs_bindgen_221fe3032a7fe8dd" hs_bindgen_221fe3032a7fe8dd_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_metadata_blocks@
hs_bindgen_221fe3032a7fe8dd ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_221fe3032a7fe8dd =
  BG.fromFFIType hs_bindgen_221fe3032a7fe8dd_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_221fe3032a7fe8dd

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_metadata_block_IDs@
foreign import ccall safe "hs_bindgen_0789072dbb9a1da7" hs_bindgen_0789072dbb9a1da7_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_Safe_heif_image_handle_get_list_of_metadata_block_IDs@
hs_bindgen_0789072dbb9a1da7 ::
     PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_0789072dbb9a1da7 =
  BG.fromFFIType hs_bindgen_0789072dbb9a1da7_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_0789072dbb9a1da7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_type@
foreign import ccall safe "hs_bindgen_a597fdc86acc8f1b" hs_bindgen_a597fdc86acc8f1b_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_type@
hs_bindgen_a597fdc86acc8f1b ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_a597fdc86acc8f1b =
  BG.fromFFIType hs_bindgen_a597fdc86acc8f1b_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_a597fdc86acc8f1b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_content_type@
foreign import ccall safe "hs_bindgen_e419666dded9a0a4" hs_bindgen_e419666dded9a0a4_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_content_type@
hs_bindgen_e419666dded9a0a4 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_e419666dded9a0a4 =
  BG.fromFFIType hs_bindgen_e419666dded9a0a4_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_e419666dded9a0a4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_size@
foreign import ccall safe "hs_bindgen_c5dbe28d404f70c2" hs_bindgen_c5dbe28d404f70c2_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_size@
hs_bindgen_c5dbe28d404f70c2 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO HsBindgen.Runtime.LibC.CSize
hs_bindgen_c5dbe28d404f70c2 =
  BG.fromFFIType hs_bindgen_c5dbe28d404f70c2_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_c5dbe28d404f70c2

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata@
foreign import ccall safe "hs_bindgen_40f28b061d8968ee" hs_bindgen_40f28b061d8968ee_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata@
hs_bindgen_40f28b061d8968ee ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_40f28b061d8968ee =
  BG.fromFFIType hs_bindgen_40f28b061d8968ee_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_40f28b061d8968ee handle0 metadata_id1 out_data2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_item_uri_type@
foreign import ccall safe "hs_bindgen_5add5de233105e0a" hs_bindgen_5add5de233105e0a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_metadata_item_uri_type@
hs_bindgen_5add5de233105e0a ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_5add5de233105e0a =
  BG.fromFFIType hs_bindgen_5add5de233105e0a_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_5add5de233105e0a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_exif_metadata@
foreign import ccall safe "hs_bindgen_50f28b858c52d38b" hs_bindgen_50f28b858c52d38b_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_Safe_heif_context_add_exif_metadata@
hs_bindgen_50f28b858c52d38b ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_50f28b858c52d38b =
  BG.fromFFIType hs_bindgen_50f28b858c52d38b_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_50f28b858c52d38b x0 image_handle1 data'2 size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_XMP_metadata@
foreign import ccall safe "hs_bindgen_5e1f813465bb1fe7" hs_bindgen_5e1f813465bb1fe7_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_Safe_heif_context_add_XMP_metadata@
hs_bindgen_5e1f813465bb1fe7 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst BG.Void
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_5e1f813465bb1fe7 =
  BG.fromFFIType hs_bindgen_5e1f813465bb1fe7_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_5e1f813465bb1fe7 x0 image_handle1 data'2 size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_XMP_metadata2@
foreign import ccall safe "hs_bindgen_a4bb5759aaf233ed" hs_bindgen_a4bb5759aaf233ed_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_Safe_heif_context_add_XMP_metadata2@
hs_bindgen_a4bb5759aaf233ed ::
     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_a4bb5759aaf233ed =
  BG.fromFFIType hs_bindgen_a4bb5759aaf233ed_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_a4bb5759aaf233ed x0 image_handle1 data'2 size3 compression4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_generic_metadata@
foreign import ccall safe "hs_bindgen_a112ed25576e1ead" hs_bindgen_a112ed25576e1ead_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_Safe_heif_context_add_generic_metadata@
hs_bindgen_a112ed25576e1ead ::
     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_a112ed25576e1ead =
  BG.fromFFIType hs_bindgen_a112ed25576e1ead_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_a112ed25576e1ead ctx0 image_handle1 data'2 size3 item_type4 content_type5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_generic_uri_metadata@
foreign import ccall safe "hs_bindgen_4228fc144395b704" hs_bindgen_4228fc144395b704_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_Safe_heif_context_add_generic_uri_metadata@
hs_bindgen_4228fc144395b704 ::
     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_4228fc144395b704 =
  BG.fromFFIType hs_bindgen_4228fc144395b704_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_4228fc144395b704 ctx0 image_handle1 data'2 size3 item_uri_type4 out_item_id5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_depth_image@
foreign import ccall safe "hs_bindgen_c9fd0d64d2e4ff6c" hs_bindgen_c9fd0d64d2e4ff6c_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_depth_image@
hs_bindgen_c9fd0d64d2e4ff6c ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_c9fd0d64d2e4ff6c =
  BG.fromFFIType hs_bindgen_c9fd0d64d2e4ff6c_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_c9fd0d64d2e4ff6c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_depth_images@
foreign import ccall safe "hs_bindgen_3168bad746d58363" hs_bindgen_3168bad746d58363_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_depth_images@
hs_bindgen_3168bad746d58363 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_3168bad746d58363 =
  BG.fromFFIType hs_bindgen_3168bad746d58363_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_3168bad746d58363

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_depth_image_IDs@
foreign import ccall safe "hs_bindgen_6ce7ff0f64592f3b" hs_bindgen_6ce7ff0f64592f3b_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_depth_image_IDs@
hs_bindgen_6ce7ff0f64592f3b ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_6ce7ff0f64592f3b =
  BG.fromFFIType hs_bindgen_6ce7ff0f64592f3b_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_6ce7ff0f64592f3b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_depth_image_handle@
foreign import ccall safe "hs_bindgen_bca9f64d9bf4b689" hs_bindgen_bca9f64d9bf4b689_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_depth_image_handle@
hs_bindgen_bca9f64d9bf4b689 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_bca9f64d9bf4b689 =
  BG.fromFFIType hs_bindgen_bca9f64d9bf4b689_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_bca9f64d9bf4b689 handle0 depth_image_id1 out_depth_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_depth_representation_info_free@
foreign import ccall safe "hs_bindgen_3e42610ddf090daa" hs_bindgen_3e42610ddf090daa_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_depth_representation_info_free@
hs_bindgen_3e42610ddf090daa ::
     PtrConst.PtrConst Heif_depth_representation_info
  -> IO ()
hs_bindgen_3e42610ddf090daa =
  BG.fromFFIType hs_bindgen_3e42610ddf090daa_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_3e42610ddf090daa

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_depth_image_representation_info@
foreign import ccall safe "hs_bindgen_be71395884eb3a2e" hs_bindgen_be71395884eb3a2e_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_depth_image_representation_info@
hs_bindgen_be71395884eb3a2e ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (PtrConst.PtrConst Heif_depth_representation_info)
  -> IO BG.CInt
hs_bindgen_be71395884eb3a2e =
  BG.fromFFIType hs_bindgen_be71395884eb3a2e_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_be71395884eb3a2e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_thumbnails@
foreign import ccall safe "hs_bindgen_789c72581f93b4f7" hs_bindgen_789c72581f93b4f7_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_thumbnails@
hs_bindgen_789c72581f93b4f7 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_789c72581f93b4f7 =
  BG.fromFFIType hs_bindgen_789c72581f93b4f7_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_789c72581f93b4f7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_thumbnail_IDs@
foreign import ccall safe "hs_bindgen_3f158a04db84b93c" hs_bindgen_3f158a04db84b93c_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_thumbnail_IDs@
hs_bindgen_3f158a04db84b93c ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_3f158a04db84b93c =
  BG.fromFFIType hs_bindgen_3f158a04db84b93c_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_3f158a04db84b93c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_thumbnail@
foreign import ccall safe "hs_bindgen_74fcac5da0f6fe3d" hs_bindgen_74fcac5da0f6fe3d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_thumbnail@
hs_bindgen_74fcac5da0f6fe3d ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_74fcac5da0f6fe3d =
  BG.fromFFIType hs_bindgen_74fcac5da0f6fe3d_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_74fcac5da0f6fe3d main_image_handle0 thumbnail_id1 out_thumbnail_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_encode_thumbnail@
foreign import ccall safe "hs_bindgen_0d7512b56eac000e" hs_bindgen_0d7512b56eac000e_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_Safe_heif_context_encode_thumbnail@
hs_bindgen_0d7512b56eac000e ::
     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_0d7512b56eac000e =
  BG.fromFFIType hs_bindgen_0d7512b56eac000e_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_0d7512b56eac000e x0 image1 master_image_handle2 encoder3 options4 bbox_size5 out_thumb_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_assign_thumbnail@
foreign import ccall safe "hs_bindgen_efcd1e0532f3cce0" hs_bindgen_efcd1e0532f3cce0_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_Safe_heif_context_assign_thumbnail@
hs_bindgen_efcd1e0532f3cce0 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_image_handle
  -> PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_efcd1e0532f3cce0 =
  BG.fromFFIType hs_bindgen_efcd1e0532f3cce0_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_efcd1e0532f3cce0 x0 master_image1 thumbnail_image2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_auxiliary_images@
foreign import ccall safe "hs_bindgen_c91e031dfd1a0e78" hs_bindgen_c91e031dfd1a0e78_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_auxiliary_images@
hs_bindgen_c91e031dfd1a0e78 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_c91e031dfd1a0e78 =
  BG.fromFFIType hs_bindgen_c91e031dfd1a0e78_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_c91e031dfd1a0e78

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_auxiliary_image_IDs@
foreign import ccall safe "hs_bindgen_fcf1bde2005bf76f" hs_bindgen_fcf1bde2005bf76f_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_list_of_auxiliary_image_IDs@
hs_bindgen_fcf1bde2005bf76f ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_fcf1bde2005bf76f =
  BG.fromFFIType hs_bindgen_fcf1bde2005bf76f_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_fcf1bde2005bf76f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_auxiliary_type@
foreign import ccall safe "hs_bindgen_7eda525d1bdf7412" hs_bindgen_7eda525d1bdf7412_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_auxiliary_type@
hs_bindgen_7eda525d1bdf7412 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_7eda525d1bdf7412 =
  BG.fromFFIType hs_bindgen_7eda525d1bdf7412_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_7eda525d1bdf7412 handle0 out_type1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_release_auxiliary_type@
foreign import ccall safe "hs_bindgen_7a949d12902feb72" hs_bindgen_7a949d12902feb72_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_release_auxiliary_type@
hs_bindgen_7a949d12902feb72 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_7a949d12902feb72 =
  BG.fromFFIType hs_bindgen_7a949d12902feb72_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_7a949d12902feb72

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_auxiliary_image_handle@
foreign import ccall safe "hs_bindgen_aad627a91e87ac22" hs_bindgen_aad627a91e87ac22_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_auxiliary_image_handle@
hs_bindgen_aad627a91e87ac22 ::
     PtrConst.PtrConst Heif_image_handle
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_aad627a91e87ac22 =
  BG.fromFFIType hs_bindgen_aad627a91e87ac22_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_aad627a91e87ac22 main_image_handle0 auxiliary_id1 out_auxiliary_handle2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_free_auxiliary_types@
foreign import ccall safe "hs_bindgen_3e5bdbce07abeacb" hs_bindgen_3e5bdbce07abeacb_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_free_auxiliary_types@
hs_bindgen_3e5bdbce07abeacb ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr (PtrConst.PtrConst BG.CChar)
  -> IO ()
hs_bindgen_3e5bdbce07abeacb =
  BG.fromFFIType hs_bindgen_3e5bdbce07abeacb_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_3e5bdbce07abeacb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_entity_groups@
foreign import ccall safe "hs_bindgen_324b9ac9bccacbea" hs_bindgen_324b9ac9bccacbea_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_Safe_heif_context_get_entity_groups@
hs_bindgen_324b9ac9bccacbea ::
     PtrConst.PtrConst Heif_context
  -> HsBindgen.Runtime.LibC.Word32
  -> Heif_item_id
  -> BG.Ptr BG.CInt
  -> IO (BG.Ptr Heif_entity_group)
hs_bindgen_324b9ac9bccacbea =
  BG.fromFFIType hs_bindgen_324b9ac9bccacbea_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_324b9ac9bccacbea

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_entity_groups_release@
foreign import ccall safe "hs_bindgen_5b6c3bc2afeaec5a" hs_bindgen_5b6c3bc2afeaec5a_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_entity_groups_release@
hs_bindgen_5b6c3bc2afeaec5a ::
     BG.Ptr Heif_entity_group
  -> BG.CInt
  -> IO ()
hs_bindgen_5b6c3bc2afeaec5a =
  BG.fromFFIType hs_bindgen_5b6c3bc2afeaec5a_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_5b6c3bc2afeaec5a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_global_security_limits@
foreign import ccall safe "hs_bindgen_8bb38c3366b348bc" hs_bindgen_8bb38c3366b348bc_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_global_security_limits@
hs_bindgen_8bb38c3366b348bc :: IO (PtrConst.PtrConst Heif_security_limits)
hs_bindgen_8bb38c3366b348bc =
  BG.fromFFIType hs_bindgen_8bb38c3366b348bc_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_8bb38c3366b348bc

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_disabled_security_limits@
foreign import ccall safe "hs_bindgen_21dab9bbdea240f9" hs_bindgen_21dab9bbdea240f9_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_disabled_security_limits@
hs_bindgen_21dab9bbdea240f9 :: IO (PtrConst.PtrConst Heif_security_limits)
hs_bindgen_21dab9bbdea240f9 =
  BG.fromFFIType hs_bindgen_21dab9bbdea240f9_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_21dab9bbdea240f9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_security_limits@
foreign import ccall safe "hs_bindgen_5ef579d9235552d1" hs_bindgen_5ef579d9235552d1_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_security_limits@
hs_bindgen_5ef579d9235552d1 ::
     PtrConst.PtrConst Heif_context
  -> IO (BG.Ptr Heif_security_limits)
hs_bindgen_5ef579d9235552d1 =
  BG.fromFFIType hs_bindgen_5ef579d9235552d1_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_5ef579d9235552d1

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_security_limits@
foreign import ccall safe "hs_bindgen_57a440143dafec19" hs_bindgen_57a440143dafec19_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_security_limits@
hs_bindgen_57a440143dafec19 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_security_limits
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_57a440143dafec19 =
  BG.fromFFIType hs_bindgen_57a440143dafec19_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_57a440143dafec19 x0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_maximum_image_size_limit@
foreign import ccall safe "hs_bindgen_cf4163e78a532a00" hs_bindgen_cf4163e78a532a00_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_maximum_image_size_limit@
hs_bindgen_cf4163e78a532a00 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_cf4163e78a532a00 =
  BG.fromFFIType hs_bindgen_cf4163e78a532a00_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_cf4163e78a532a00

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_alloc@
foreign import ccall safe "hs_bindgen_4f11b82642ca89a5" hs_bindgen_4f11b82642ca89a5_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_alloc@
hs_bindgen_4f11b82642ca89a5 :: IO (BG.Ptr Heif_context)
hs_bindgen_4f11b82642ca89a5 =
  BG.fromFFIType hs_bindgen_4f11b82642ca89a5_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_4f11b82642ca89a5

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_free@
foreign import ccall safe "hs_bindgen_97d3146ab8e2e79e" hs_bindgen_97d3146ab8e2e79e_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_free@
hs_bindgen_97d3146ab8e2e79e ::
     BG.Ptr Heif_context
  -> IO ()
hs_bindgen_97d3146ab8e2e79e =
  BG.fromFFIType hs_bindgen_97d3146ab8e2e79e_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_97d3146ab8e2e79e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_file@
foreign import ccall safe "hs_bindgen_da6b2212d5c04e61" hs_bindgen_da6b2212d5c04e61_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_Safe_heif_context_read_from_file@
hs_bindgen_da6b2212d5c04e61 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_da6b2212d5c04e61 =
  BG.fromFFIType hs_bindgen_da6b2212d5c04e61_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_da6b2212d5c04e61 x0 filename1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_memory@
foreign import ccall safe "hs_bindgen_e14cdfad18c1ee01" hs_bindgen_e14cdfad18c1ee01_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_memory@
hs_bindgen_e14cdfad18c1ee01 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e14cdfad18c1ee01 =
  BG.fromFFIType hs_bindgen_e14cdfad18c1ee01_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_e14cdfad18c1ee01 x0 mem1 size2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_memory_without_copy@
foreign import ccall safe "hs_bindgen_41af2790f3e2e582" hs_bindgen_41af2790f3e2e582_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_memory_without_copy@
hs_bindgen_41af2790f3e2e582 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.Void
  -> HsBindgen.Runtime.LibC.CSize
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_41af2790f3e2e582 =
  BG.fromFFIType hs_bindgen_41af2790f3e2e582_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_41af2790f3e2e582 x0 mem1 size2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_read_from_reader@
foreign import ccall safe "hs_bindgen_41beae81a04b6975" hs_bindgen_41beae81a04b6975_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_Safe_heif_context_read_from_reader@
hs_bindgen_41beae81a04b6975 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_reader
  -> BG.Ptr BG.Void
  -> PtrConst.PtrConst Heif_reading_options
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_41beae81a04b6975 =
  BG.fromFFIType hs_bindgen_41beae81a04b6975_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_41beae81a04b6975 x0 reader1 userdata2 x3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_number_of_top_level_images@
foreign import ccall safe "hs_bindgen_24967fda9033f6a8" hs_bindgen_24967fda9033f6a8_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_number_of_top_level_images@
hs_bindgen_24967fda9033f6a8 ::
     BG.Ptr Heif_context
  -> IO BG.CInt
hs_bindgen_24967fda9033f6a8 =
  BG.fromFFIType hs_bindgen_24967fda9033f6a8_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_24967fda9033f6a8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_is_top_level_image_ID@
foreign import ccall safe "hs_bindgen_60a32ad03b88d023" hs_bindgen_60a32ad03b88d023_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_is_top_level_image_ID@
hs_bindgen_60a32ad03b88d023 ::
     BG.Ptr Heif_context
  -> Heif_item_id
  -> IO BG.CInt
hs_bindgen_60a32ad03b88d023 =
  BG.fromFFIType hs_bindgen_60a32ad03b88d023_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_60a32ad03b88d023

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_list_of_top_level_image_IDs@
foreign import ccall safe "hs_bindgen_0b88933276286d97" hs_bindgen_0b88933276286d97_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_list_of_top_level_image_IDs@
hs_bindgen_0b88933276286d97 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_item_id
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_0b88933276286d97 =
  BG.fromFFIType hs_bindgen_0b88933276286d97_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_0b88933276286d97

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_primary_image_ID@
foreign import ccall safe "hs_bindgen_d2b9465ca3f1a7a3" hs_bindgen_d2b9465ca3f1a7a3_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_primary_image_ID@
hs_bindgen_d2b9465ca3f1a7a3 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_item_id
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_d2b9465ca3f1a7a3 =
  BG.fromFFIType hs_bindgen_d2b9465ca3f1a7a3_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_d2b9465ca3f1a7a3 ctx0 id1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_primary_image_handle@
foreign import ccall safe "hs_bindgen_eddef87dcb6b9da2" hs_bindgen_eddef87dcb6b9da2_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_primary_image_handle@
hs_bindgen_eddef87dcb6b9da2 ::
     BG.Ptr Heif_context
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_eddef87dcb6b9da2 =
  BG.fromFFIType hs_bindgen_eddef87dcb6b9da2_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_eddef87dcb6b9da2 ctx0 x1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_image_handle@
foreign import ccall safe "hs_bindgen_64043a0ab8e93721" hs_bindgen_64043a0ab8e93721_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_image_handle@
hs_bindgen_64043a0ab8e93721 ::
     BG.Ptr Heif_context
  -> Heif_item_id
  -> BG.Ptr (BG.Ptr Heif_image_handle)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_64043a0ab8e93721 =
  BG.fromFFIType hs_bindgen_64043a0ab8e93721_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_64043a0ab8e93721 ctx0 id1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_debug_dump_boxes_to_file@
foreign import ccall safe "hs_bindgen_b25f68ddfd09f003" hs_bindgen_b25f68ddfd09f003_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_debug_dump_boxes_to_file@
hs_bindgen_b25f68ddfd09f003 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_b25f68ddfd09f003 =
  BG.fromFFIType hs_bindgen_b25f68ddfd09f003_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_b25f68ddfd09f003

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_write_mini_format@
foreign import ccall safe "hs_bindgen_33eec71afe55377e" hs_bindgen_33eec71afe55377e_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_write_mini_format@
hs_bindgen_33eec71afe55377e ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_33eec71afe55377e =
  BG.fromFFIType hs_bindgen_33eec71afe55377e_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_33eec71afe55377e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_write_to_file@
foreign import ccall safe "hs_bindgen_4ccb67696cf9af48" hs_bindgen_4ccb67696cf9af48_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_write_to_file@
hs_bindgen_4ccb67696cf9af48 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_4ccb67696cf9af48 =
  BG.fromFFIType hs_bindgen_4ccb67696cf9af48_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_4ccb67696cf9af48 x0 filename1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_write@
foreign import ccall safe "hs_bindgen_567900ed014ef754" hs_bindgen_567900ed014ef754_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_Safe_heif_context_write@
hs_bindgen_567900ed014ef754 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_writer
  -> BG.Ptr BG.Void
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_567900ed014ef754 =
  BG.fromFFIType hs_bindgen_567900ed014ef754_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_567900ed014ef754 x0 writer1 userdata2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_have_encoder_for_format@
foreign import ccall safe "hs_bindgen_eec4a0d4bef90233" hs_bindgen_eec4a0d4bef90233_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_have_encoder_for_format@
hs_bindgen_eec4a0d4bef90233 ::
     Heif_compression_format
  -> IO BG.CInt
hs_bindgen_eec4a0d4bef90233 =
  BG.fromFFIType hs_bindgen_eec4a0d4bef90233_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_eec4a0d4bef90233

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_encoder_descriptors@
foreign import ccall safe "hs_bindgen_52de4c5e7a32818d" hs_bindgen_52de4c5e7a32818d_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_encoder_descriptors@
hs_bindgen_52de4c5e7a32818d ::
     Heif_compression_format
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst Heif_encoder_descriptor)
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_52de4c5e7a32818d =
  BG.fromFFIType hs_bindgen_52de4c5e7a32818d_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_52de4c5e7a32818d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_name@
foreign import ccall safe "hs_bindgen_1174aa754ff0ec8a" hs_bindgen_1174aa754ff0ec8a_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_name@
hs_bindgen_1174aa754ff0ec8a ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_1174aa754ff0ec8a =
  BG.fromFFIType hs_bindgen_1174aa754ff0ec8a_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_1174aa754ff0ec8a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_id_name@
foreign import ccall safe "hs_bindgen_db3d052821cb7feb" hs_bindgen_db3d052821cb7feb_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_id_name@
hs_bindgen_db3d052821cb7feb ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_db3d052821cb7feb =
  BG.fromFFIType hs_bindgen_db3d052821cb7feb_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_db3d052821cb7feb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_compression_format@
foreign import ccall safe "hs_bindgen_7a091fe5257e2928" hs_bindgen_7a091fe5257e2928_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_get_compression_format@
hs_bindgen_7a091fe5257e2928 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO Heif_compression_format
hs_bindgen_7a091fe5257e2928 =
  BG.fromFFIType hs_bindgen_7a091fe5257e2928_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_7a091fe5257e2928

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supports_lossy_compression@
foreign import ccall safe "hs_bindgen_9855aa70160fb232" hs_bindgen_9855aa70160fb232_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supports_lossy_compression@
hs_bindgen_9855aa70160fb232 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_9855aa70160fb232 =
  BG.fromFFIType hs_bindgen_9855aa70160fb232_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_9855aa70160fb232

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supports_lossless_compression@
foreign import ccall safe "hs_bindgen_e8aa3e2ad6e21521" hs_bindgen_e8aa3e2ad6e21521_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supports_lossless_compression@
hs_bindgen_e8aa3e2ad6e21521 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_e8aa3e2ad6e21521 =
  BG.fromFFIType hs_bindgen_e8aa3e2ad6e21521_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_e8aa3e2ad6e21521

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_encoder@
foreign import ccall safe "hs_bindgen_5e0d51edb7f5e790" hs_bindgen_5e0d51edb7f5e790_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_Safe_heif_context_get_encoder@
hs_bindgen_5e0d51edb7f5e790 ::
     BG.Ptr Heif_context
  -> PtrConst.PtrConst Heif_encoder_descriptor
  -> BG.Ptr (BG.Ptr Heif_encoder)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_5e0d51edb7f5e790 =
  BG.fromFFIType hs_bindgen_5e0d51edb7f5e790_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_5e0d51edb7f5e790 context0 x1 out_encoder2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_encoder_for_format@
foreign import ccall safe "hs_bindgen_e87023be50eb7156" hs_bindgen_e87023be50eb7156_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_encoder_for_format@
hs_bindgen_e87023be50eb7156 ::
     BG.Ptr Heif_context
  -> Heif_compression_format
  -> BG.Ptr (BG.Ptr Heif_encoder)
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_e87023be50eb7156 =
  BG.fromFFIType hs_bindgen_e87023be50eb7156_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_e87023be50eb7156 context0 format1 x2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_release@
foreign import ccall safe "hs_bindgen_9ef0bda629baf529" hs_bindgen_9ef0bda629baf529_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_release@
hs_bindgen_9ef0bda629baf529 ::
     BG.Ptr Heif_encoder
  -> IO ()
hs_bindgen_9ef0bda629baf529 =
  BG.fromFFIType hs_bindgen_9ef0bda629baf529_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_9ef0bda629baf529

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_name@
foreign import ccall safe "hs_bindgen_eb93268554bef6fb" hs_bindgen_eb93268554bef6fb_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_name@
hs_bindgen_eb93268554bef6fb ::
     PtrConst.PtrConst Heif_encoder
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_eb93268554bef6fb =
  BG.fromFFIType hs_bindgen_eb93268554bef6fb_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_eb93268554bef6fb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_lossy_quality@
foreign import ccall safe "hs_bindgen_eb6a076f846bdaa3" hs_bindgen_eb6a076f846bdaa3_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_lossy_quality@
hs_bindgen_eb6a076f846bdaa3 ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_eb6a076f846bdaa3 =
  BG.fromFFIType hs_bindgen_eb6a076f846bdaa3_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_eb6a076f846bdaa3 x0 quality1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_lossless@
foreign import ccall safe "hs_bindgen_979d01b0f5a3cad4" hs_bindgen_979d01b0f5a3cad4_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_lossless@
hs_bindgen_979d01b0f5a3cad4 ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_979d01b0f5a3cad4 =
  BG.fromFFIType hs_bindgen_979d01b0f5a3cad4_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_979d01b0f5a3cad4 x0 enable1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_logging_level@
foreign import ccall safe "hs_bindgen_24781b15a9b8e5df" hs_bindgen_24781b15a9b8e5df_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_logging_level@
hs_bindgen_24781b15a9b8e5df ::
     BG.Ptr Heif_encoder
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_24781b15a9b8e5df =
  BG.fromFFIType hs_bindgen_24781b15a9b8e5df_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_24781b15a9b8e5df x0 level1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_list_parameters@
foreign import ccall safe "hs_bindgen_18ea2b17f3c2144a" hs_bindgen_18ea2b17f3c2144a_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_list_parameters@
hs_bindgen_18ea2b17f3c2144a ::
     BG.Ptr Heif_encoder
  -> IO (PtrConst.PtrConst (PtrConst.PtrConst Heif_encoder_parameter))
hs_bindgen_18ea2b17f3c2144a =
  BG.fromFFIType hs_bindgen_18ea2b17f3c2144a_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_18ea2b17f3c2144a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_name@
foreign import ccall safe "hs_bindgen_af3caa9ff0a88eb8" hs_bindgen_af3caa9ff0a88eb8_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_name@
hs_bindgen_af3caa9ff0a88eb8 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_af3caa9ff0a88eb8 =
  BG.fromFFIType hs_bindgen_af3caa9ff0a88eb8_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_af3caa9ff0a88eb8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_type@
foreign import ccall safe "hs_bindgen_a1285395e3755e61" hs_bindgen_a1285395e3755e61_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_type@
hs_bindgen_a1285395e3755e61 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> IO Heif_encoder_parameter_type
hs_bindgen_a1285395e3755e61 =
  BG.fromFFIType hs_bindgen_a1285395e3755e61_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_a1285395e3755e61

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_valid_integer_range@
foreign import ccall safe "hs_bindgen_f5e5f609ff5ef7aa" hs_bindgen_f5e5f609ff5ef7aa_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_Safe_heif_encoder_parameter_get_valid_integer_range@
hs_bindgen_f5e5f609ff5ef7aa ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_f5e5f609ff5ef7aa =
  BG.fromFFIType hs_bindgen_f5e5f609ff5ef7aa_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_f5e5f609ff5ef7aa x0 have_minimum_maximum1 minimum2 maximum3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_valid_integer_values@
foreign import ccall safe "hs_bindgen_41c9049f903741b9" hs_bindgen_41c9049f903741b9_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_Safe_heif_encoder_parameter_get_valid_integer_values@
hs_bindgen_41c9049f903741b9 ::
     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_41c9049f903741b9 =
  BG.fromFFIType hs_bindgen_41c9049f903741b9_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_41c9049f903741b9 x0 have_minimum1 have_maximum2 minimum3 maximum4 num_valid_values5 out_integer_array6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_valid_string_values@
foreign import ccall safe "hs_bindgen_83a47350b89b3e72" hs_bindgen_83a47350b89b3e72_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_get_valid_string_values@
hs_bindgen_83a47350b89b3e72 ::
     PtrConst.PtrConst Heif_encoder_parameter
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_83a47350b89b3e72 =
  BG.fromFFIType hs_bindgen_83a47350b89b3e72_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_83a47350b89b3e72 x0 out_stringarray1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter_integer@
foreign import ccall safe "hs_bindgen_18cabf49ede306b0" hs_bindgen_18cabf49ede306b0_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter_integer@
hs_bindgen_18cabf49ede306b0 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_18cabf49ede306b0 =
  BG.fromFFIType hs_bindgen_18cabf49ede306b0_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_18cabf49ede306b0 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_parameter_integer@
foreign import ccall safe "hs_bindgen_9904a2037102bffe" hs_bindgen_9904a2037102bffe_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_Safe_heif_encoder_get_parameter_integer@
hs_bindgen_9904a2037102bffe ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_9904a2037102bffe =
  BG.fromFFIType hs_bindgen_9904a2037102bffe_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_9904a2037102bffe x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_integer_valid_range@
foreign import ccall safe "hs_bindgen_1bc5d24eb27254b7" hs_bindgen_1bc5d24eb27254b7_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_Safe_heif_encoder_parameter_integer_valid_range@
hs_bindgen_1bc5d24eb27254b7 ::
     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_1bc5d24eb27254b7 =
  BG.fromFFIType hs_bindgen_1bc5d24eb27254b7_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_1bc5d24eb27254b7 x0 parameter_name1 have_minimum_maximum2 minimum3 maximum4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter_boolean@
foreign import ccall safe "hs_bindgen_836ffd64ae147e78" hs_bindgen_836ffd64ae147e78_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter_boolean@
hs_bindgen_836ffd64ae147e78 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_836ffd64ae147e78 =
  BG.fromFFIType hs_bindgen_836ffd64ae147e78_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_836ffd64ae147e78 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_parameter_boolean@
foreign import ccall safe "hs_bindgen_19a10bdb28e623c2" hs_bindgen_19a10bdb28e623c2_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_Safe_heif_encoder_get_parameter_boolean@
hs_bindgen_19a10bdb28e623c2 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_19a10bdb28e623c2 =
  BG.fromFFIType hs_bindgen_19a10bdb28e623c2_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_19a10bdb28e623c2 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter_string@
foreign import ccall safe "hs_bindgen_6e45433398da3eb9" hs_bindgen_6e45433398da3eb9_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_Safe_heif_encoder_set_parameter_string@
hs_bindgen_6e45433398da3eb9 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_6e45433398da3eb9 =
  BG.fromFFIType hs_bindgen_6e45433398da3eb9_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_6e45433398da3eb9 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_parameter_string@
foreign import ccall safe "hs_bindgen_85f0477af2b5af28" hs_bindgen_85f0477af2b5af28_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_Safe_heif_encoder_get_parameter_string@
hs_bindgen_85f0477af2b5af28 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_85f0477af2b5af28 =
  BG.fromFFIType hs_bindgen_85f0477af2b5af28_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_85f0477af2b5af28 x0 parameter_name1 value2 value_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_string_valid_values@
foreign import ccall safe "hs_bindgen_813480544a744b7d" hs_bindgen_813480544a744b7d_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_Safe_heif_encoder_parameter_string_valid_values@
hs_bindgen_813480544a744b7d ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar))
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_813480544a744b7d =
  BG.fromFFIType hs_bindgen_813480544a744b7d_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_813480544a744b7d x0 parameter_name1 out_stringarray2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_parameter_integer_valid_values@
foreign import ccall safe "hs_bindgen_06fdadacba1a360c" hs_bindgen_06fdadacba1a360c_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_Safe_heif_encoder_parameter_integer_valid_values@
hs_bindgen_06fdadacba1a360c ::
     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_06fdadacba1a360c =
  BG.fromFFIType hs_bindgen_06fdadacba1a360c_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_06fdadacba1a360c x0 parameter_name1 have_minimum2 have_maximum3 minimum4 maximum5 num_valid_values6 out_integer_array7 res8)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_set_parameter@
foreign import ccall safe "hs_bindgen_3e58e2dcaa03feb8" hs_bindgen_3e58e2dcaa03feb8_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_Safe_heif_encoder_set_parameter@
hs_bindgen_3e58e2dcaa03feb8 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_3e58e2dcaa03feb8 =
  BG.fromFFIType hs_bindgen_3e58e2dcaa03feb8_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_3e58e2dcaa03feb8 x0 parameter_name1 value2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_get_parameter@
foreign import ccall safe "hs_bindgen_931fa955709de69d" hs_bindgen_931fa955709de69d_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_Safe_heif_encoder_get_parameter@
hs_bindgen_931fa955709de69d ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr BG.CChar
  -> BG.CInt
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_931fa955709de69d =
  BG.fromFFIType hs_bindgen_931fa955709de69d_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_931fa955709de69d x0 parameter_name1 value_ptr2 value_size3 res4)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_has_default@
foreign import ccall safe "hs_bindgen_cadb6a2220566e31" hs_bindgen_cadb6a2220566e31_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_has_default@
hs_bindgen_cadb6a2220566e31 ::
     BG.Ptr Heif_encoder
  -> PtrConst.PtrConst BG.CChar
  -> IO BG.CInt
hs_bindgen_cadb6a2220566e31 =
  BG.fromFFIType hs_bindgen_cadb6a2220566e31_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_cadb6a2220566e31

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_orientation_concat@
foreign import ccall safe "hs_bindgen_73125422635fa771" hs_bindgen_73125422635fa771_base ::
     BG.Word32
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_orientation_concat@
hs_bindgen_73125422635fa771 ::
     Heif_orientation
  -> Heif_orientation
  -> IO Heif_orientation
hs_bindgen_73125422635fa771 =
  BG.fromFFIType hs_bindgen_73125422635fa771_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_73125422635fa771

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_alloc@
foreign import ccall safe "hs_bindgen_1800acc2f4b03a9f" hs_bindgen_1800acc2f4b03a9f_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_alloc@
hs_bindgen_1800acc2f4b03a9f :: IO (BG.Ptr Heif_encoding_options)
hs_bindgen_1800acc2f4b03a9f =
  BG.fromFFIType hs_bindgen_1800acc2f4b03a9f_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_1800acc2f4b03a9f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_copy@
foreign import ccall safe "hs_bindgen_fe75402432667b03" hs_bindgen_fe75402432667b03_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_copy@
hs_bindgen_fe75402432667b03 ::
     BG.Ptr Heif_encoding_options
  -> PtrConst.PtrConst Heif_encoding_options
  -> IO ()
hs_bindgen_fe75402432667b03 =
  BG.fromFFIType hs_bindgen_fe75402432667b03_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_fe75402432667b03

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_free@
foreign import ccall safe "hs_bindgen_da67241096710c84" hs_bindgen_da67241096710c84_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoding_options_free@
hs_bindgen_da67241096710c84 ::
     BG.Ptr Heif_encoding_options
  -> IO ()
hs_bindgen_da67241096710c84 =
  BG.fromFFIType hs_bindgen_da67241096710c84_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_da67241096710c84

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_encode_image@
foreign import ccall safe "hs_bindgen_28f09a80ffe40e3d" hs_bindgen_28f09a80ffe40e3d_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_Safe_heif_context_encode_image@
hs_bindgen_28f09a80ffe40e3d ::
     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_28f09a80ffe40e3d =
  BG.fromFFIType hs_bindgen_28f09a80ffe40e3d_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_28f09a80ffe40e3d x0 image1 encoder2 options3 out_image_handle4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_overlay_image@
foreign import ccall safe "hs_bindgen_60d0c75f40f4d059" hs_bindgen_60d0c75f40f4d059_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_Safe_heif_context_add_overlay_image@
hs_bindgen_60d0c75f40f4d059 ::
     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_60d0c75f40f4d059 =
  BG.fromFFIType hs_bindgen_60d0c75f40f4d059_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_60d0c75f40f4d059 ctx0 image_width1 image_height2 nImages3 image_ids4 offsets5 background_rgba6 out_iovl_image_handle7 res8)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_primary_image@
foreign import ccall safe "hs_bindgen_63e1fd26aac84129" hs_bindgen_63e1fd26aac84129_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_primary_image@
hs_bindgen_63e1fd26aac84129 ::
     BG.Ptr Heif_context
  -> BG.Ptr Heif_image_handle
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_63e1fd26aac84129 =
  BG.fromFFIType hs_bindgen_63e1fd26aac84129_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_63e1fd26aac84129 x0 image_handle1 res2)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_major_brand@
foreign import ccall safe "hs_bindgen_97f56663bca77c21" hs_bindgen_97f56663bca77c21_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_major_brand@
hs_bindgen_97f56663bca77c21 ::
     BG.Ptr Heif_context
  -> Heif_brand2
  -> IO ()
hs_bindgen_97f56663bca77c21 =
  BG.fromFFIType hs_bindgen_97f56663bca77c21_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_97f56663bca77c21

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_compatible_brand@
foreign import ccall safe "hs_bindgen_03d0e64d393a7f95" hs_bindgen_03d0e64d393a7f95_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_compatible_brand@
hs_bindgen_03d0e64d393a7f95 ::
     BG.Ptr Heif_context
  -> Heif_brand2
  -> IO ()
hs_bindgen_03d0e64d393a7f95 =
  BG.fromFFIType hs_bindgen_03d0e64d393a7f95_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_03d0e64d393a7f95

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_unif@
foreign import ccall safe "hs_bindgen_17c891d9806c5635" hs_bindgen_17c891d9806c5635_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_unif@
hs_bindgen_17c891d9806c5635 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_17c891d9806c5635 =
  BG.fromFFIType hs_bindgen_17c891d9806c5635_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_17c891d9806c5635

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supportes_lossy_compression@
foreign import ccall safe "hs_bindgen_7331b243ac8c0c44" hs_bindgen_7331b243ac8c0c44_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supportes_lossy_compression@
hs_bindgen_7331b243ac8c0c44 ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_7331b243ac8c0c44 =
  BG.fromFFIType hs_bindgen_7331b243ac8c0c44_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_7331b243ac8c0c44

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supportes_lossless_compression@
foreign import ccall safe "hs_bindgen_d9ed40b1c61c857e" hs_bindgen_d9ed40b1c61c857e_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_encoder_descriptor_supportes_lossless_compression@
hs_bindgen_d9ed40b1c61c857e ::
     PtrConst.PtrConst Heif_encoder_descriptor
  -> IO BG.CInt
hs_bindgen_d9ed40b1c61c857e =
  BG.fromFFIType hs_bindgen_d9ed40b1c61c857e_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_d9ed40b1c61c857e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_encoder_descriptors@
foreign import ccall safe "hs_bindgen_6b3293489791860e" hs_bindgen_6b3293489791860e_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_Safe_heif_context_get_encoder_descriptors@
hs_bindgen_6b3293489791860e ::
     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_6b3293489791860e =
  BG.fromFFIType hs_bindgen_6b3293489791860e_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_6b3293489791860e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_max_decoding_threads@
foreign import ccall safe "hs_bindgen_28f0ed35cb9d2279" hs_bindgen_28f0ed35cb9d2279_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_set_max_decoding_threads@
hs_bindgen_28f0ed35cb9d2279 ::
     BG.Ptr Heif_context
  -> BG.CInt
  -> IO ()
hs_bindgen_28f0ed35cb9d2279 =
  BG.fromFFIType hs_bindgen_28f0ed35cb9d2279_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_28f0ed35cb9d2279

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_max_decoding_threads@
foreign import ccall safe "hs_bindgen_70c02de3fb64eb44" hs_bindgen_70c02de3fb64eb44_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_get_max_decoding_threads@
hs_bindgen_70c02de3fb64eb44 ::
     PtrConst.PtrConst Heif_context
  -> IO BG.CInt
hs_bindgen_70c02de3fb64eb44 =
  BG.fromFFIType hs_bindgen_70c02de3fb64eb44_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_70c02de3fb64eb44

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_have_decoder_for_format@
foreign import ccall safe "hs_bindgen_fae52e49bce8c2d9" hs_bindgen_fae52e49bce8c2d9_base ::
     BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_have_decoder_for_format@
hs_bindgen_fae52e49bce8c2d9 ::
     Heif_compression_format
  -> IO BG.CInt
hs_bindgen_fae52e49bce8c2d9 =
  BG.fromFFIType hs_bindgen_fae52e49bce8c2d9_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_fae52e49bce8c2d9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_alloc@
foreign import ccall safe "hs_bindgen_102ab775cba50d0e" hs_bindgen_102ab775cba50d0e_base ::
     IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_alloc@
hs_bindgen_102ab775cba50d0e :: IO (BG.Ptr Heif_decoding_options)
hs_bindgen_102ab775cba50d0e =
  BG.fromFFIType hs_bindgen_102ab775cba50d0e_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_102ab775cba50d0e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_copy@
foreign import ccall safe "hs_bindgen_dd38a52f42e667b2" hs_bindgen_dd38a52f42e667b2_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_copy@
hs_bindgen_dd38a52f42e667b2 ::
     BG.Ptr Heif_decoding_options
  -> PtrConst.PtrConst Heif_decoding_options
  -> IO ()
hs_bindgen_dd38a52f42e667b2 =
  BG.fromFFIType hs_bindgen_dd38a52f42e667b2_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_dd38a52f42e667b2

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_free@
foreign import ccall safe "hs_bindgen_9ce764a4e512cd45" hs_bindgen_9ce764a4e512cd45_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoding_options_free@
hs_bindgen_9ce764a4e512cd45 ::
     BG.Ptr Heif_decoding_options
  -> IO ()
hs_bindgen_9ce764a4e512cd45 =
  BG.fromFFIType hs_bindgen_9ce764a4e512cd45_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_9ce764a4e512cd45

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_decoder_descriptors@
foreign import ccall safe "hs_bindgen_89078000e479e916" hs_bindgen_89078000e479e916_base ::
     BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Int32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_get_decoder_descriptors@
hs_bindgen_89078000e479e916 ::
     Heif_compression_format
  -> BG.Ptr (PtrConst.PtrConst Heif_decoder_descriptor)
  -> BG.CInt
  -> IO BG.CInt
hs_bindgen_89078000e479e916 =
  BG.fromFFIType hs_bindgen_89078000e479e916_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_89078000e479e916

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoder_descriptor_get_name@
foreign import ccall safe "hs_bindgen_6dbb7f5c61ececf8" hs_bindgen_6dbb7f5c61ececf8_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoder_descriptor_get_name@
hs_bindgen_6dbb7f5c61ececf8 ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_6dbb7f5c61ececf8 =
  BG.fromFFIType hs_bindgen_6dbb7f5c61ececf8_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_6dbb7f5c61ececf8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoder_descriptor_get_id_name@
foreign import ccall safe "hs_bindgen_ac750dacaf5ed61b" hs_bindgen_ac750dacaf5ed61b_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decoder_descriptor_get_id_name@
hs_bindgen_ac750dacaf5ed61b ::
     PtrConst.PtrConst Heif_decoder_descriptor
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_ac750dacaf5ed61b =
  BG.fromFFIType hs_bindgen_ac750dacaf5ed61b_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_ac750dacaf5ed61b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_decode_image@
foreign import ccall safe "hs_bindgen_9df2f46857b2f874" hs_bindgen_9df2f46857b2f874_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_Safe_heif_decode_image@
hs_bindgen_9df2f46857b2f874 ::
     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_9df2f46857b2f874 =
  BG.fromFFIType hs_bindgen_9df2f46857b2f874_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_9df2f46857b2f874 in_handle0 out_img1 colorspace2 chroma3 options4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_release@
foreign import ccall safe "hs_bindgen_3f481728e9551d14" hs_bindgen_3f481728e9551d14_base ::
     BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_release@
hs_bindgen_3f481728e9551d14 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO ()
hs_bindgen_3f481728e9551d14 =
  BG.fromFFIType hs_bindgen_3f481728e9551d14_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_3f481728e9551d14

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_is_primary_image@
foreign import ccall safe "hs_bindgen_c047b47f9376d997" hs_bindgen_c047b47f9376d997_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_is_primary_image@
hs_bindgen_c047b47f9376d997 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_c047b47f9376d997 =
  BG.fromFFIType hs_bindgen_c047b47f9376d997_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_c047b47f9376d997

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_item_id@
foreign import ccall safe "hs_bindgen_36d4e2a162ff52b2" hs_bindgen_36d4e2a162ff52b2_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_item_id@
hs_bindgen_36d4e2a162ff52b2 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_item_id
hs_bindgen_36d4e2a162ff52b2 =
  BG.fromFFIType hs_bindgen_36d4e2a162ff52b2_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_36d4e2a162ff52b2

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_width@
foreign import ccall safe "hs_bindgen_ebd6ded40b5d2ee4" hs_bindgen_ebd6ded40b5d2ee4_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_width@
hs_bindgen_ebd6ded40b5d2ee4 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_ebd6ded40b5d2ee4 =
  BG.fromFFIType hs_bindgen_ebd6ded40b5d2ee4_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_ebd6ded40b5d2ee4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_height@
foreign import ccall safe "hs_bindgen_43b18c70d95495b8" hs_bindgen_43b18c70d95495b8_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_height@
hs_bindgen_43b18c70d95495b8 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_43b18c70d95495b8 =
  BG.fromFFIType hs_bindgen_43b18c70d95495b8_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_43b18c70d95495b8

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_alpha_channel@
foreign import ccall safe "hs_bindgen_d43fe68f9e8aea95" hs_bindgen_d43fe68f9e8aea95_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_alpha_channel@
hs_bindgen_d43fe68f9e8aea95 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_d43fe68f9e8aea95 =
  BG.fromFFIType hs_bindgen_d43fe68f9e8aea95_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_d43fe68f9e8aea95

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_is_premultiplied_alpha@
foreign import ccall safe "hs_bindgen_318428b307f06343" hs_bindgen_318428b307f06343_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_is_premultiplied_alpha@
hs_bindgen_318428b307f06343 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_318428b307f06343 =
  BG.fromFFIType hs_bindgen_318428b307f06343_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_318428b307f06343

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_luma_bits_per_pixel@
foreign import ccall safe "hs_bindgen_be41ab4faa6f8082" hs_bindgen_be41ab4faa6f8082_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_luma_bits_per_pixel@
hs_bindgen_be41ab4faa6f8082 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_be41ab4faa6f8082 =
  BG.fromFFIType hs_bindgen_be41ab4faa6f8082_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_be41ab4faa6f8082

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_chroma_bits_per_pixel@
foreign import ccall safe "hs_bindgen_984920cbd156ac9b" hs_bindgen_984920cbd156ac9b_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_chroma_bits_per_pixel@
hs_bindgen_984920cbd156ac9b ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_984920cbd156ac9b =
  BG.fromFFIType hs_bindgen_984920cbd156ac9b_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_984920cbd156ac9b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_preferred_decoding_colorspace@
foreign import ccall safe "hs_bindgen_f5e3531e6391b927" hs_bindgen_f5e3531e6391b927_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_Safe_heif_image_handle_get_preferred_decoding_colorspace@
hs_bindgen_f5e3531e6391b927 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr Heif_colorspace
  -> BG.Ptr Heif_chroma
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_f5e3531e6391b927 =
  BG.fromFFIType hs_bindgen_f5e3531e6391b927_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_f5e3531e6391b927 image_handle0 out_colorspace1 out_chroma2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ispe_width@
foreign import ccall safe "hs_bindgen_d0e9054b24cf1428" hs_bindgen_d0e9054b24cf1428_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ispe_width@
hs_bindgen_d0e9054b24cf1428 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_d0e9054b24cf1428 =
  BG.fromFFIType hs_bindgen_d0e9054b24cf1428_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_d0e9054b24cf1428

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ispe_height@
foreign import ccall safe "hs_bindgen_dbbbf9b131586b02" hs_bindgen_dbbbf9b131586b02_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_ispe_height@
hs_bindgen_dbbbf9b131586b02 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_dbbbf9b131586b02 =
  BG.fromFFIType hs_bindgen_dbbbf9b131586b02_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_dbbbf9b131586b02

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_pixel_aspect_ratio@
foreign import ccall safe "hs_bindgen_3c36641a28b1e88c" hs_bindgen_3c36641a28b1e88c_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_pixel_aspect_ratio@
hs_bindgen_3c36641a28b1e88c ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_3c36641a28b1e88c =
  BG.fromFFIType hs_bindgen_3c36641a28b1e88c_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_3c36641a28b1e88c

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_context@
foreign import ccall safe "hs_bindgen_84a3dea317661a70" hs_bindgen_84a3dea317661a70_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_context@
hs_bindgen_84a3dea317661a70 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO (BG.Ptr Heif_context)
hs_bindgen_84a3dea317661a70 =
  BG.fromFFIType hs_bindgen_84a3dea317661a70_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_84a3dea317661a70

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_gimi_content_id@
foreign import ccall safe "hs_bindgen_e67495bf8fb75694" hs_bindgen_e67495bf8fb75694_base ::
     BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_gimi_content_id@
hs_bindgen_e67495bf8fb75694 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_e67495bf8fb75694 =
  BG.fromFFIType hs_bindgen_e67495bf8fb75694_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_e67495bf8fb75694

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_gimi_content_id@
foreign import ccall safe "hs_bindgen_a61840a08f259978" hs_bindgen_a61840a08f259978_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_gimi_content_id@
hs_bindgen_a61840a08f259978 ::
     BG.Ptr Heif_image_handle
  -> PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_a61840a08f259978 =
  BG.fromFFIType hs_bindgen_a61840a08f259978_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_a61840a08f259978

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_cmpd_components@
foreign import ccall safe "hs_bindgen_ecf5d96ae1394088" hs_bindgen_ecf5d96ae1394088_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_cmpd_components@
hs_bindgen_ecf5d96ae1394088 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_ecf5d96ae1394088 =
  BG.fromFFIType hs_bindgen_ecf5d96ae1394088_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_ecf5d96ae1394088

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_cmpd_component_type@
foreign import ccall safe "hs_bindgen_c39b365ae6463988" hs_bindgen_c39b365ae6463988_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_cmpd_component_type@
hs_bindgen_c39b365ae6463988 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_c39b365ae6463988 =
  BG.fromFFIType hs_bindgen_c39b365ae6463988_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_c39b365ae6463988

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_cmpd_component_type_uri@
foreign import ccall safe "hs_bindgen_df63ee961806d207" hs_bindgen_df63ee961806d207_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_cmpd_component_type_uri@
hs_bindgen_df63ee961806d207 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_df63ee961806d207 =
  BG.fromFFIType hs_bindgen_df63ee961806d207_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_df63ee961806d207

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_gimi_component_content_ids@
foreign import ccall safe "hs_bindgen_6a5a1af4a8a1b33e" hs_bindgen_6a5a1af4a8a1b33e_base ::
     BG.Ptr BG.Void
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_has_gimi_component_content_ids@
hs_bindgen_6a5a1af4a8a1b33e ::
     PtrConst.PtrConst Heif_image_handle
  -> IO BG.CInt
hs_bindgen_6a5a1af4a8a1b33e =
  BG.fromFFIType hs_bindgen_6a5a1af4a8a1b33e_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_6a5a1af4a8a1b33e

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_gimi_component_content_id@
foreign import ccall safe "hs_bindgen_a39896583d9d4999" hs_bindgen_a39896583d9d4999_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_gimi_component_content_id@
hs_bindgen_a39896583d9d4999 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_a39896583d9d4999 =
  BG.fromFFIType hs_bindgen_a39896583d9d4999_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_a39896583d9d4999

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_gimi_component_content_id@
foreign import ccall safe "hs_bindgen_dacd0cb9d512c937" hs_bindgen_dacd0cb9d512c937_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_gimi_component_content_id@
hs_bindgen_dacd0cb9d512c937 ::
     BG.Ptr Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst BG.CChar
  -> IO ()
hs_bindgen_dacd0cb9d512c937 =
  BG.fromFFIType hs_bindgen_dacd0cb9d512c937_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_dacd0cb9d512c937

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_image_tiling@
foreign import ccall safe "hs_bindgen_898454a03bf14ab5" hs_bindgen_898454a03bf14ab5_base ::
     BG.Ptr BG.Void
  -> BG.Int32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_image_tiling@
hs_bindgen_898454a03bf14ab5 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.CInt
  -> BG.Ptr Heif_image_tiling
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_898454a03bf14ab5 =
  BG.fromFFIType hs_bindgen_898454a03bf14ab5_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_898454a03bf14ab5 handle0 process_image_transformations1 out_tiling2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_grid_image_tile_id@
foreign import ccall safe "hs_bindgen_413be3dbf7649192" hs_bindgen_413be3dbf7649192_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_Safe_heif_image_handle_get_grid_image_tile_id@
hs_bindgen_413be3dbf7649192 ::
     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_413be3dbf7649192 =
  BG.fromFFIType hs_bindgen_413be3dbf7649192_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_413be3dbf7649192 handle0 process_image_transformations1 tile_x2 tile_y3 out_tile_item_id4 res5)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_decode_image_tile@
foreign import ccall safe "hs_bindgen_f101837a6b5be78b" hs_bindgen_f101837a6b5be78b_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_Safe_heif_image_handle_decode_image_tile@
hs_bindgen_f101837a6b5be78b ::
     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_f101837a6b5be78b =
  BG.fromFFIType hs_bindgen_f101837a6b5be78b_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_f101837a6b5be78b in_handle0 out_img1 colorspace2 chroma3 options4 tile_x5 tile_y6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_encode_grid@
foreign import ccall safe "hs_bindgen_164a168311e3f152" hs_bindgen_164a168311e3f152_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_Safe_heif_context_encode_grid@
hs_bindgen_164a168311e3f152 ::
     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_164a168311e3f152 =
  BG.fromFFIType hs_bindgen_164a168311e3f152_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_164a168311e3f152 ctx0 tiles1 rows2 columns3 encoder4 input_options5 out_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_grid_image@
foreign import ccall safe "hs_bindgen_7c8ae7abdb656611" hs_bindgen_7c8ae7abdb656611_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_Safe_heif_context_add_grid_image@
hs_bindgen_7c8ae7abdb656611 ::
     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_7c8ae7abdb656611 =
  BG.fromFFIType hs_bindgen_7c8ae7abdb656611_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_7c8ae7abdb656611 ctx0 image_width1 image_height2 tile_columns3 tile_rows4 encoding_options5 out_grid_image_handle6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_context_add_image_tile@
foreign import ccall safe "hs_bindgen_03065a3517ed4b58" hs_bindgen_03065a3517ed4b58_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_Safe_heif_context_add_image_tile@
hs_bindgen_03065a3517ed4b58 ::
     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_03065a3517ed4b58 =
  BG.fromFFIType hs_bindgen_03065a3517ed4b58_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_03065a3517ed4b58 ctx0 tiled_image1 tile_x2 tile_y3 image4 encoder5 res6)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_number_of_used_components@
foreign import ccall safe "hs_bindgen_4c8ac68e14c896d9" hs_bindgen_4c8ac68e14c896d9_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_number_of_used_components@
hs_bindgen_4c8ac68e14c896d9 ::
     PtrConst.PtrConst Heif_image
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_4c8ac68e14c896d9 =
  BG.fromFFIType hs_bindgen_4c8ac68e14c896d9_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_4c8ac68e14c896d9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_used_component_ids@
foreign import ccall safe "hs_bindgen_89f9c71152d117b0" hs_bindgen_89f9c71152d117b0_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_used_component_ids@
hs_bindgen_89f9c71152d117b0 ::
     PtrConst.PtrConst Heif_image
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_89f9c71152d117b0 =
  BG.fromFFIType hs_bindgen_89f9c71152d117b0_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_89f9c71152d117b0

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_channel@
foreign import ccall safe "hs_bindgen_95adbac0d70eaf89" hs_bindgen_95adbac0d70eaf89_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_channel@
hs_bindgen_95adbac0d70eaf89 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_channel
hs_bindgen_95adbac0d70eaf89 =
  BG.fromFFIType hs_bindgen_95adbac0d70eaf89_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_95adbac0d70eaf89

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_width@
foreign import ccall safe "hs_bindgen_2563edac91916690" hs_bindgen_2563edac91916690_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_width@
hs_bindgen_2563edac91916690 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_2563edac91916690 =
  BG.fromFFIType hs_bindgen_2563edac91916690_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_2563edac91916690

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_height@
foreign import ccall safe "hs_bindgen_708542ac3769da22" hs_bindgen_708542ac3769da22_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_height@
hs_bindgen_708542ac3769da22 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_708542ac3769da22 =
  BG.fromFFIType hs_bindgen_708542ac3769da22_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_708542ac3769da22

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_bits_per_pixel@
foreign import ccall safe "hs_bindgen_24cce2d768157520" hs_bindgen_24cce2d768157520_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_bits_per_pixel@
hs_bindgen_24cce2d768157520 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_24cce2d768157520 =
  BG.fromFFIType hs_bindgen_24cce2d768157520_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_24cce2d768157520

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_type@
foreign import ccall safe "hs_bindgen_1b3bc84f810e6784" hs_bindgen_1b3bc84f810e6784_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_type@
hs_bindgen_1b3bc84f810e6784 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_1b3bc84f810e6784 =
  BG.fromFFIType hs_bindgen_1b3bc84f810e6784_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_1b3bc84f810e6784

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_datatype@
foreign import ccall safe "hs_bindgen_3427ead05335058d" hs_bindgen_3427ead05335058d_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_datatype@
hs_bindgen_3427ead05335058d ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_component_datatype
hs_bindgen_3427ead05335058d =
  BG.fromFFIType hs_bindgen_3427ead05335058d_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_3427ead05335058d

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_components@
foreign import ccall safe "hs_bindgen_08e2626fbb4c7263" hs_bindgen_08e2626fbb4c7263_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_number_of_components@
hs_bindgen_08e2626fbb4c7263 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_08e2626fbb4c7263 =
  BG.fromFFIType hs_bindgen_08e2626fbb4c7263_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_08e2626fbb4c7263

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_used_component_ids@
foreign import ccall safe "hs_bindgen_8f4c6fe1328df951" hs_bindgen_8f4c6fe1328df951_base ::
     BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_used_component_ids@
hs_bindgen_8f4c6fe1328df951 ::
     PtrConst.PtrConst Heif_image_handle
  -> BG.Ptr HsBindgen.Runtime.LibC.Word32
  -> IO ()
hs_bindgen_8f4c6fe1328df951 =
  BG.fromFFIType hs_bindgen_8f4c6fe1328df951_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_8f4c6fe1328df951

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_type@
foreign import ccall safe "hs_bindgen_da1741b447f6b55f" hs_bindgen_da1741b447f6b55f_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word16

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_type@
hs_bindgen_da1741b447f6b55f ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO HsBindgen.Runtime.LibC.Word16
hs_bindgen_da1741b447f6b55f =
  BG.fromFFIType hs_bindgen_da1741b447f6b55f_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_da1741b447f6b55f

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_bits_per_pixel@
foreign import ccall safe "hs_bindgen_c06a69cd444c0e91" hs_bindgen_c06a69cd444c0e91_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Int32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_bits_per_pixel@
hs_bindgen_c06a69cd444c0e91 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO BG.CInt
hs_bindgen_c06a69cd444c0e91 =
  BG.fromFFIType hs_bindgen_c06a69cd444c0e91_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_c06a69cd444c0e91

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_datatype@
foreign import ccall safe "hs_bindgen_246e8aac86313c19" hs_bindgen_246e8aac86313c19_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_component_datatype@
hs_bindgen_246e8aac86313c19 ::
     PtrConst.PtrConst Heif_image_handle
  -> HsBindgen.Runtime.LibC.Word32
  -> IO Heif_component_datatype
hs_bindgen_246e8aac86313c19 =
  BG.fromFFIType hs_bindgen_246e8aac86313c19_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_246e8aac86313c19

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_add_component@
foreign import ccall safe "hs_bindgen_58211ee9d9aaff0b" hs_bindgen_58211ee9d9aaff0b_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_Safe_heif_image_add_component@
hs_bindgen_58211ee9d9aaff0b ::
     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_58211ee9d9aaff0b =
  BG.fromFFIType hs_bindgen_58211ee9d9aaff0b_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_58211ee9d9aaff0b image0 width1 height2 component_type3 datatype4 bit_depth5 out_component_id6 res7)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_readonly@
foreign import ccall safe "hs_bindgen_f3b3dd6d12db8090" hs_bindgen_f3b3dd6d12db8090_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_readonly@
hs_bindgen_f3b3dd6d12db8090 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word8)
hs_bindgen_f3b3dd6d12db8090 =
  BG.fromFFIType hs_bindgen_f3b3dd6d12db8090_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_f3b3dd6d12db8090

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component@
foreign import ccall safe "hs_bindgen_797598038668dd27" hs_bindgen_797598038668dd27_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component@
hs_bindgen_797598038668dd27 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word8)
hs_bindgen_797598038668dd27 =
  BG.fromFFIType hs_bindgen_797598038668dd27_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_797598038668dd27

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint16_readonly@
foreign import ccall safe "hs_bindgen_dd2caf5774deaa63" hs_bindgen_dd2caf5774deaa63_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint16_readonly@
hs_bindgen_dd2caf5774deaa63 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word16)
hs_bindgen_dd2caf5774deaa63 =
  BG.fromFFIType hs_bindgen_dd2caf5774deaa63_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_dd2caf5774deaa63

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint16@
foreign import ccall safe "hs_bindgen_c24b1fb221a59544" hs_bindgen_c24b1fb221a59544_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint16@
hs_bindgen_c24b1fb221a59544 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word16)
hs_bindgen_c24b1fb221a59544 =
  BG.fromFFIType hs_bindgen_c24b1fb221a59544_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_c24b1fb221a59544

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint32_readonly@
foreign import ccall safe "hs_bindgen_f7092ec4941635e4" hs_bindgen_f7092ec4941635e4_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint32_readonly@
hs_bindgen_f7092ec4941635e4 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word32)
hs_bindgen_f7092ec4941635e4 =
  BG.fromFFIType hs_bindgen_f7092ec4941635e4_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_f7092ec4941635e4

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint32@
foreign import ccall safe "hs_bindgen_b69a8682c27eebbe" hs_bindgen_b69a8682c27eebbe_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint32@
hs_bindgen_b69a8682c27eebbe ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word32)
hs_bindgen_b69a8682c27eebbe =
  BG.fromFFIType hs_bindgen_b69a8682c27eebbe_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_b69a8682c27eebbe

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint64_readonly@
foreign import ccall safe "hs_bindgen_21af790d31a25679" hs_bindgen_21af790d31a25679_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint64_readonly@
hs_bindgen_21af790d31a25679 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Word64)
hs_bindgen_21af790d31a25679 =
  BG.fromFFIType hs_bindgen_21af790d31a25679_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_21af790d31a25679

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint64@
foreign import ccall safe "hs_bindgen_052a1b04a5028cc7" hs_bindgen_052a1b04a5028cc7_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_uint64@
hs_bindgen_052a1b04a5028cc7 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Word64)
hs_bindgen_052a1b04a5028cc7 =
  BG.fromFFIType hs_bindgen_052a1b04a5028cc7_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_052a1b04a5028cc7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int8_readonly@
foreign import ccall safe "hs_bindgen_0647bc125c518139" hs_bindgen_0647bc125c518139_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int8_readonly@
hs_bindgen_0647bc125c518139 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int8)
hs_bindgen_0647bc125c518139 =
  BG.fromFFIType hs_bindgen_0647bc125c518139_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_0647bc125c518139

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int8@
foreign import ccall safe "hs_bindgen_2b6baabe97efc9ee" hs_bindgen_2b6baabe97efc9ee_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int8@
hs_bindgen_2b6baabe97efc9ee ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int8)
hs_bindgen_2b6baabe97efc9ee =
  BG.fromFFIType hs_bindgen_2b6baabe97efc9ee_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_2b6baabe97efc9ee

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int16_readonly@
foreign import ccall safe "hs_bindgen_05cd3db068fb993a" hs_bindgen_05cd3db068fb993a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int16_readonly@
hs_bindgen_05cd3db068fb993a ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int16)
hs_bindgen_05cd3db068fb993a =
  BG.fromFFIType hs_bindgen_05cd3db068fb993a_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_05cd3db068fb993a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int16@
foreign import ccall safe "hs_bindgen_3a8ffa58a1670f46" hs_bindgen_3a8ffa58a1670f46_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int16@
hs_bindgen_3a8ffa58a1670f46 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int16)
hs_bindgen_3a8ffa58a1670f46 =
  BG.fromFFIType hs_bindgen_3a8ffa58a1670f46_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_3a8ffa58a1670f46

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int32_readonly@
foreign import ccall safe "hs_bindgen_f59a29fdf460e965" hs_bindgen_f59a29fdf460e965_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int32_readonly@
hs_bindgen_f59a29fdf460e965 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int32)
hs_bindgen_f59a29fdf460e965 =
  BG.fromFFIType hs_bindgen_f59a29fdf460e965_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_f59a29fdf460e965

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int32@
foreign import ccall safe "hs_bindgen_80e3e994059d8dc9" hs_bindgen_80e3e994059d8dc9_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int32@
hs_bindgen_80e3e994059d8dc9 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int32)
hs_bindgen_80e3e994059d8dc9 =
  BG.fromFFIType hs_bindgen_80e3e994059d8dc9_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_80e3e994059d8dc9

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int64_readonly@
foreign import ccall safe "hs_bindgen_9f7c83bd2e97ad43" hs_bindgen_9f7c83bd2e97ad43_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int64_readonly@
hs_bindgen_9f7c83bd2e97ad43 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst HsBindgen.Runtime.LibC.Int64)
hs_bindgen_9f7c83bd2e97ad43 =
  BG.fromFFIType hs_bindgen_9f7c83bd2e97ad43_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_9f7c83bd2e97ad43

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int64@
foreign import ccall safe "hs_bindgen_fee1de1a1474b6a3" hs_bindgen_fee1de1a1474b6a3_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_int64@
hs_bindgen_fee1de1a1474b6a3 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr HsBindgen.Runtime.LibC.Int64)
hs_bindgen_fee1de1a1474b6a3 =
  BG.fromFFIType hs_bindgen_fee1de1a1474b6a3_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_fee1de1a1474b6a3

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float32_readonly@
foreign import ccall safe "hs_bindgen_05ed1c08b5116807" hs_bindgen_05ed1c08b5116807_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float32_readonly@
hs_bindgen_05ed1c08b5116807 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst BG.CFloat)
hs_bindgen_05ed1c08b5116807 =
  BG.fromFFIType hs_bindgen_05ed1c08b5116807_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_05ed1c08b5116807

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float32@
foreign import ccall safe "hs_bindgen_ad009c9ed1ffc812" hs_bindgen_ad009c9ed1ffc812_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float32@
hs_bindgen_ad009c9ed1ffc812 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CFloat)
hs_bindgen_ad009c9ed1ffc812 =
  BG.fromFFIType hs_bindgen_ad009c9ed1ffc812_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_ad009c9ed1ffc812

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float64_readonly@
foreign import ccall safe "hs_bindgen_de66df56dbf48814" hs_bindgen_de66df56dbf48814_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float64_readonly@
hs_bindgen_de66df56dbf48814 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst BG.CDouble)
hs_bindgen_de66df56dbf48814 =
  BG.fromFFIType hs_bindgen_de66df56dbf48814_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_de66df56dbf48814

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float64@
foreign import ccall safe "hs_bindgen_0ad1b60eeb8d63bd" hs_bindgen_0ad1b60eeb8d63bd_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_float64@
hs_bindgen_0ad1b60eeb8d63bd ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr BG.CDouble)
hs_bindgen_0ad1b60eeb8d63bd =
  BG.fromFFIType hs_bindgen_0ad1b60eeb8d63bd_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_0ad1b60eeb8d63bd

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex32_readonly@
foreign import ccall safe "hs_bindgen_ac4a57dd34ca375a" hs_bindgen_ac4a57dd34ca375a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex32_readonly@
hs_bindgen_ac4a57dd34ca375a ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst Heif_complex32)
hs_bindgen_ac4a57dd34ca375a =
  BG.fromFFIType hs_bindgen_ac4a57dd34ca375a_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_ac4a57dd34ca375a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex32@
foreign import ccall safe "hs_bindgen_cfa79a05b01a8fc7" hs_bindgen_cfa79a05b01a8fc7_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex32@
hs_bindgen_cfa79a05b01a8fc7 ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr Heif_complex32)
hs_bindgen_cfa79a05b01a8fc7 =
  BG.fromFFIType hs_bindgen_cfa79a05b01a8fc7_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_cfa79a05b01a8fc7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex64_readonly@
foreign import ccall safe "hs_bindgen_e0f8d25e700e39b7" hs_bindgen_e0f8d25e700e39b7_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex64_readonly@
hs_bindgen_e0f8d25e700e39b7 ::
     PtrConst.PtrConst Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (PtrConst.PtrConst Heif_complex64)
hs_bindgen_e0f8d25e700e39b7 =
  BG.fromFFIType hs_bindgen_e0f8d25e700e39b7_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_e0f8d25e700e39b7

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex64@
foreign import ccall safe "hs_bindgen_378fc308bf4e003a" hs_bindgen_378fc308bf4e003a_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> IO (BG.Ptr BG.Void)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_component_complex64@
hs_bindgen_378fc308bf4e003a ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> BG.Ptr HsBindgen.Runtime.LibC.CSize
  -> IO (BG.Ptr Heif_complex64)
hs_bindgen_378fc308bf4e003a =
  BG.fromFFIType hs_bindgen_378fc308bf4e003a_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_378fc308bf4e003a

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_gimi_component_content_id@
foreign import ccall safe "hs_bindgen_430d40ab533188ef" hs_bindgen_430d40ab533188ef_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> BG.Ptr BG.Void
  -> BG.Ptr BG.Void
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_gimi_component_content_id@
hs_bindgen_430d40ab533188ef ::
     BG.Ptr Heif_image
  -> HsBindgen.Runtime.LibC.Word32
  -> PtrConst.PtrConst BG.CChar
  -> BG.Ptr Heif_error
  -> IO ()
hs_bindgen_430d40ab533188ef =
  BG.fromFFIType hs_bindgen_430d40ab533188ef_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_430d40ab533188ef x0 component_id1 content_id2 res3)

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_omaf_image_projection@
foreign import ccall safe "hs_bindgen_dc0b57c80dcd5111" hs_bindgen_dc0b57c80dcd5111_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_get_omaf_image_projection@
hs_bindgen_dc0b57c80dcd5111 ::
     PtrConst.PtrConst Heif_image_handle
  -> IO Heif_omaf_image_projection
hs_bindgen_dc0b57c80dcd5111 =
  BG.fromFFIType hs_bindgen_dc0b57c80dcd5111_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_dc0b57c80dcd5111

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_omaf_image_projection@
foreign import ccall safe "hs_bindgen_c2c7dbcbc67f17cb" hs_bindgen_c2c7dbcbc67f17cb_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_handle_set_omaf_image_projection@
hs_bindgen_c2c7dbcbc67f17cb ::
     BG.Ptr Heif_image_handle
  -> Heif_omaf_image_projection
  -> IO ()
hs_bindgen_c2c7dbcbc67f17cb =
  BG.fromFFIType hs_bindgen_c2c7dbcbc67f17cb_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_c2c7dbcbc67f17cb

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_omaf_image_projection@
foreign import ccall safe "hs_bindgen_78b31f0f9d6a835b" hs_bindgen_78b31f0f9d6a835b_base ::
     BG.Ptr BG.Void
  -> IO BG.Word32

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_get_omaf_image_projection@
hs_bindgen_78b31f0f9d6a835b ::
     PtrConst.PtrConst Heif_image
  -> IO Heif_omaf_image_projection
hs_bindgen_78b31f0f9d6a835b =
  BG.fromFFIType hs_bindgen_78b31f0f9d6a835b_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_78b31f0f9d6a835b

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_omaf_image_projection@
foreign import ccall safe "hs_bindgen_88e80c816c94bac9" hs_bindgen_88e80c816c94bac9_base ::
     BG.Ptr BG.Void
  -> BG.Word32
  -> IO ()

-- __unique:__ @org_libheifhs_Codec.HEIF.Bindings.Generated_Safe_heif_image_set_omaf_image_projection@
hs_bindgen_88e80c816c94bac9 ::
     BG.Ptr Heif_image
  -> Heif_omaf_image_projection
  -> IO ()
hs_bindgen_88e80c816c94bac9 =
  BG.fromFFIType hs_bindgen_88e80c816c94bac9_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_88e80c816c94bac9