public interface AVCapturePhotoFileDataRepresentationCustomizer
A set of delegate callbacks to be implemented by a client who calls AVCapturePhoto's -fileDataRepresentationWithCustomizer:.
AVCapturePhoto is a wrapper representing a file-containerized photo in memory. If you simply wish to flatten the photo to an NSData to be written to a file, you may call -[AVCapturePhoto fileDataRepresentation]. For more complex flattening operations in which you wish to replace or strip metadata, you should call -[AVCapturePhoto fileDataRepresentationWithCustomizer:] instead, providing a delegate for customized stripping / replacing behavior. This delegate's methods are called synchronously before the flattening process commences.
| Modifier and Type | Method and Description |
|---|---|
default NSDictionary<java.lang.String,?> |
replacementAppleProRAWCompressionSettingsForPhotoDefaultSettingsMaximumBitDepth(AVCapturePhoto photo,
NSDictionary<java.lang.String,?> defaultSettings,
long maximumBitDepth)
replacementAppleProRAWCompressionSettingsForPhoto:defaultSettings:maximumBitDepth:
|
default AVDepthData |
replacementDepthDataForPhoto(AVCapturePhoto photo)
replacementDepthDataForPhoto:
|
default CVBufferRef |
replacementEmbeddedThumbnailPixelBufferWithPhotoFormatForPhoto(org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> replacementEmbeddedThumbnailPhotoFormatOut,
AVCapturePhoto photo)
replacementEmbeddedThumbnailPixelBufferWithPhotoFormat:forPhoto:
|
default NSDictionary<java.lang.String,?> |
replacementMetadataForPhoto(AVCapturePhoto photo)
replacementMetadataForPhoto:
|
default AVPortraitEffectsMatte |
replacementPortraitEffectsMatteForPhoto(AVCapturePhoto photo)
replacementPortraitEffectsMatteForPhoto:
|
default AVSemanticSegmentationMatte |
replacementSemanticSegmentationMatteOfTypeForPhoto(java.lang.String semanticSegmentationMatteType,
AVCapturePhoto photo)
replacementSemanticSegmentationMatteOfType:forPhoto:
|
default AVDepthData replacementDepthDataForPhoto(AVCapturePhoto photo)
A callback in which you may provide replacement depth data, or strip the existing depth data from the flattened file data representation.
This callback is optional. If your delegate does not implement this callback, the existing depth data in the in-memory AVCapturePhoto container will be written to the file data representation.
photo - The calling instance of AVCapturePhoto.default CVBufferRef replacementEmbeddedThumbnailPixelBufferWithPhotoFormatForPhoto(org.moe.natj.general.ptr.Ptr<NSDictionary<java.lang.String,?>> replacementEmbeddedThumbnailPhotoFormatOut, AVCapturePhoto photo)
A callback in which you may provide a replacement embedded thumbnail image with compression settings, or strip the existing embedded thumbnail image from the flattened file data representation.
This callback is optional. If your delegate does not implement this callback, the existing embedded thumbnail photo in the in-memory AVCapturePhoto container will be written to the file data representation.
replacementEmbeddedThumbnailPhotoFormatOut - On output, a pointer to a dictionary of keys and values from photo - The calling instance of AVCapturePhoto.default NSDictionary<java.lang.String,?> replacementMetadataForPhoto(AVCapturePhoto photo)
A callback in which you may provide replacement metadata, or direct the AVCapturePhoto to strip existing metadata from the flattened file data representation.
This callback is optional. If your delegate does not implement this callback, the existing metadata in the in-memory AVCapturePhoto container will be written to the file data representation.
photo - The calling instance of AVCapturePhoto.default AVPortraitEffectsMatte replacementPortraitEffectsMatteForPhoto(AVCapturePhoto photo)
A callback in which you may provide a replacement portrait effects matte, or strip the existing portrait effects matte from the flattened file data representation.
This callback is optional. If your delegate does not implement this callback, the existing portrait effects matte in the in-memory AVCapturePhoto container will be written to the file data representation.
photo - The calling instance of AVCapturePhoto.default AVSemanticSegmentationMatte replacementSemanticSegmentationMatteOfTypeForPhoto(java.lang.String semanticSegmentationMatteType, AVCapturePhoto photo)
A callback in which you may provide a replacement semantic segmentation matte of the indicated type, or strip the existing one from the flattened file data representation.
This callback is optional. If your delegate does not implement this callback, the existing semantic segmentation matte of the specified type in the in-memory AVCapturePhoto container will be written to the file data representation.
semanticSegmentationMatteType - The type of semantic segmentation matte to be replaced or stripped.photo - The calling instance of AVCapturePhoto.default NSDictionary<java.lang.String,?> replacementAppleProRAWCompressionSettingsForPhotoDefaultSettingsMaximumBitDepth(AVCapturePhoto photo, NSDictionary<java.lang.String,?> defaultSettings, long maximumBitDepth)
A callback in which you may provide replacement compression settings for the DNG flattened file data representation of Apple ProRAW. This callback will only be invoked for Apple ProRAW captures written to DNG.
This callback is optional. If your delegate does not implement this callback, the default compression settings for the file type will be used.
photo - The calling instance of AVCapturePhoto.defaultSettings - The default settings that will be used if not overridden.maximumBitDepth - The maximum bit depth that can be specified with AVVideoAppleProRAWBitDepthKey in the returned settings dictionary.