Protocol

AVCapturePhotoFileDataRepresentationCustomizer

A set of delegate callbacks to be implemented by callers of fileDataRepresentationWithCustomizer:.

Declaration

@protocol AVCapturePhotoFileDataRepresentationCustomizer

Overview

AVCapturePhoto is a wrapper representing a photo in a file container. To flatten the photo to an NSData object to write to file, call fileDataRepresentation. For more complex flattening operations such as replacing or stripping metadata, call fileDataRepresentationWithCustomizer: and provide a delegate for customized replacement or stripping behavior. This delegate’s methods are called synchronously before the flattening process begins.

Topics

Replacing or Removing Metadata

- replacementMetadataForPhoto:

A callback in which you can provide replacement metadata or direct AVCapturePhoto to strip existing metadata from the flattened file.

- replacementEmbeddedThumbnailPixelBufferWithPhotoFormat:forPhoto:

A callback in which you can provide a replacement embedded thumbnail image with compression settings, or strip the existing embedded thumbnail image from the flattened file.

- replacementDepthDataForPhoto:

A callback in which you can provide replacement depth data or strip existing depth data from the file.

- replacementPortraitEffectsMatteForPhoto:

A callback in which you can provide a replacement portrait effects matte, or strip the existing portrait effects matte from the file.

- replacementSemanticSegmentationMatteOfType:forPhoto:

Replaces or removes the semantic segmentation matte of the specified type from the flattened file data representation.

Beta

Relationships

Inherits From

See Also

Packaging Data for File Output

- fileDataRepresentation

Generates and returns a flat data representation of the photo and its attachments.

- CGImageRepresentation

Extracts and returns the captured photo's primary image as a Core Graphics image object.

- previewCGImageRepresentation

Extracts and returns the captured photo's preview image as a CoreGraphics image object.

- fileDataRepresentationWithReplacementMetadata:replacementEmbeddedThumbnailPhotoFormat:replacementEmbeddedThumbnailPixelBuffer:replacementDepthData:

Generates and returns a flat data representation of the photo, using the specified replacements for some or all of its attachments.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software