pub unsafe extern "C-unwind" fn MAImageCaptioningCopyCaption(
url: &CFURL,
error: *mut *mut CFError,
) -> Option<CFRetained<CFString>>Available on crate feature
MAImageCaptioning only.Expand description
Returns an accessibility caption from an image’s metadata.
Parameter url: The URL locating the image on disk.
Parameter error: If an error occurs, a description will be provided.
Returns: A string with the image caption. Nil if there’s no caption.
A convenience function for retrieving a caption from an image file that aims to describe the photo accurately. This checks for XMP metadata field: Iptc4xmpExt:AOContentDescription.
§Safety
error must be a valid pointer or null.