Instance Method

portraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBuffer:error:

Returns a portrait effects matte by wrapping the replacement pixel buffer.

Declaration

- (instancetype)portraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBuffer:(CVPixelBufferRef)pixelBuffer error:(NSError * _Nullable *)outError;

Parameters

pixelBuffer

A pixel buffer containing a portrait effects matte image, represented as kCVPixelFormatType_OneComponent8 with kCVImageBufferColorPrimaries_ITU_R_709_2 color primaries and a kCVImageBufferTransferFunction_Linear transfer function.

outError

If the portrait effects matte couldn't be created, an error that points to an NSError describing the problem.

See Also

Creating a Portrait Effects Matte

Configuring Camera Capture to Collect a Portrait Effects Matte

Prepare your app to capture a portrait effects matte when taking photos.

+ portraitEffectsMatteFromDictionaryRepresentation:error:

Initializes a portrait effects matte instance from auxiliary image information in an image file.

- portraitEffectsMatteByApplyingExifOrientation:

Returns a derivative portrait effects matte after applying the specified EXIF orientation.

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