示例#1
0
 internal static extern heif_error heif_context_encode_thumbnail(SafeHeifContext context,
                                                                 SafeHeifImage thumbnail,
                                                                 SafeHeifImageHandle parentImageHandle,
                                                                 SafeHeifEncoder encoder,
                                                                 IntPtr options_MustBeZero,
                                                                 int boundingBoxSize,
                                                                 IntPtr outImageHandle_MustBeZero);
示例#2
0
 internal static extern unsafe heif_error heif_context_add_exif_metadata(SafeHeifContext context,
                                                                         SafeHeifImageHandle handle,
                                                                         byte *data,
                                                                         int dataSize);
 internal static extern UIntPtr heif_image_handle_get_metadata_size(SafeHeifImageHandle handle, HeifItemId id);
 internal static extern unsafe int heif_image_handle_get_list_of_metadata_block_IDs(SafeHeifImageHandle handle,
                                                                                    [MarshalAs(UnmanagedType.LPStr)] string type,
                                                                                    HeifItemId *idArrayPtr,
                                                                                    int idArrayCount);
 internal static extern unsafe heif_error heif_image_handle_get_nclx_color_profile(SafeHeifImageHandle handle,
                                                                                   out SafeHeifNclxColorProfile profile);
 internal static extern UIntPtr heif_image_handle_get_raw_color_profile_size(SafeHeifImageHandle handle);
 internal static extern bool heif_image_handle_is_primary_image(SafeHeifImageHandle handle);
 internal static extern heif_error heif_decode_image(SafeHeifImageHandle inHandle,
                                                     out SafeHeifImage outImage,
                                                     HeifColorspace colorspace,
                                                     HeifChroma chroma,
                                                     SafeHeifDecodingOptions options);
 internal static extern bool heif_image_handle_get_depth_image_representation_info(SafeHeifImageHandle handle,
                                                                                   HeifItemId id,
                                                                                   out SafeDepthRepresentationInfo depthInfoHandle);
 internal static extern heif_error heif_image_handle_get_depth_image_handle(SafeHeifImageHandle handle,
                                                                            HeifItemId id,
                                                                            out SafeHeifImageHandle depthImageHandle);
 internal static extern unsafe int heif_image_handle_get_list_of_depth_image_IDs(SafeHeifImageHandle handle,
                                                                                 HeifItemId *idArrayPtr,
                                                                                 int idArrayCount);
 internal static extern int heif_image_handle_get_number_of_depth_images(SafeHeifImageHandle handle);
 internal static extern bool heif_image_handle_has_depth_image(SafeHeifImageHandle handle);
 internal static extern heif_error heif_image_handle_get_thumbnail(SafeHeifImageHandle handle,
                                                                   HeifItemId id,
                                                                   out SafeHeifImageHandle thumbnailImageHandle);
 internal static extern int heif_image_handle_get_number_of_thumbnails(SafeHeifImageHandle handle);
 internal static extern bool heif_image_handle_has_alpha_channel(SafeHeifImageHandle handle);
 internal static extern bool heif_image_handle_is_premultiplied_alpha(SafeHeifImageHandle handle);
 internal static extern int heif_image_handle_get_number_of_auxiliary_images(SafeHeifImageHandle handle,
                                                                             heif_auxiliary_image_filter filter);
 internal static extern heif_error heif_decode_image(SafeHeifImageHandle inHandle,
                                                     out SafeHeifImage outImage,
                                                     HeifColorspace colorspace,
                                                     HeifChroma chroma,
                                                     IntPtr options_MustBeZero);
 internal static extern unsafe int heif_image_handle_get_list_of_auxiliary_image_IDs(SafeHeifImageHandle handle,
                                                                                     heif_auxiliary_image_filter filter,
                                                                                     HeifItemId *idArrayPtr,
                                                                                     int idArrayCount);
 internal static extern heif_color_profile_type heif_image_handle_get_color_profile_type(SafeHeifImageHandle handle);
 internal static extern heif_error heif_image_handle_get_auxiliary_image_handle(SafeHeifImageHandle handle,
                                                                                HeifItemId id,
                                                                                out SafeHeifImageHandle auxiliaryImageHandle);
 internal static extern unsafe heif_error heif_image_handle_get_raw_color_profile(SafeHeifImageHandle handle, byte *data);
 internal static extern unsafe heif_error heif_image_handle_get_auxiliary_type(SafeHeifImageHandle handle,
                                                                               out AuxiliaryType outType);
 internal static extern int heif_image_handle_get_number_of_metadata_blocks(SafeHeifImageHandle handle,
                                                                            [MarshalAs(UnmanagedType.LPStr)] string type);
 internal static extern unsafe void heif_image_handle_free_auxiliary_types(SafeHeifImageHandle handle,
                                                                           ref AuxiliaryType outType);
 internal static extern LibHeifOwnedString heif_image_handle_get_metadata_content_type(SafeHeifImageHandle handle, HeifItemId id);
 internal static extern int heif_image_handle_get_height(SafeHeifImageHandle handle);
 internal static extern unsafe heif_error heif_image_handle_get_metadata(SafeHeifImageHandle handle, HeifItemId id, byte *buffer);
 internal static extern int heif_image_handle_get_luma_bits_per_pixel(SafeHeifImageHandle handle);