Instance Property

pixelBuffer

The CoreVideo pixel buffer this image was created from, if applicable.

Declaration

@property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;

Discussion

If this image was create using the initWithCVPixelBuffer: initializer, this property’s value is the CVPixelBufferRef object that provides the image’s underlying image data. Do not modify the contents of this pixel buffer; doing so will cause undefined rendering results.

Otherwise, this property’s value is nil—in this case you can obtain a pixel buffer by rendering the image with the CIContext render:toCVPixelBuffer: method.

See Also

Accessing Original Image Content

CGImage

The CoreGraphics image object this image was created from, if applicable.

depthData

AVDepthData representation of the depth image.

portraitEffectsMatte

AVPortraitEffectsMatte representation of portrait effects.

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