compatibility
TypeScriptget compatibility(): CVPixelFormatDescription_CompatibilitySwift declarationvar compatibility: CVPixelFormatDescription.CompatibilityDefines interoperability of pixel buffers with other frameworks
struct · iOS 26.0+ · SDK 27.1
struct CreationAttributesAttributes needed for creating a pixel buffer.
get compatibility(): CVPixelFormatDescription_CompatibilitySwift declarationvar compatibility: CVPixelFormatDescription.CompatibilityDefines interoperability of pixel buffers with other frameworks
set compatibility(value: CVPixelFormatDescription_Compatibility)Swift declarationvar compatibility: CVPixelFormatDescription.CompatibilityDefines interoperability of pixel buffers with other frameworks
get extendedPixels(): (CVPixelBufferPadding) | nullSwift declarationvar extendedPixels: CVPixelBufferPadding?Sets the amount of extended pixel padding in the pixel buffer.
set extendedPixels(value: (CVPixelBufferPadding) | null)Swift declarationvar extendedPixels: CVPixelBufferPadding?Sets the amount of extended pixel padding in the pixel buffer.
get planeAlignment(): (number) | nullSwift declarationvar planeAlignment: Int?Planes start on a byte number that’s a multiple of this value.
set planeAlignment(value: (number) | null)Swift declarationvar planeAlignment: Int?Planes start on a byte number that’s a multiple of this value.
static initPixelFormatTypeSizeCompatibilityBytesPerRowAlignmentPlaneAlignmentExtendedPixels(pixelFormatType: CVPixelFormatType, size: CVImageSize, compatibility?: CVPixelFormatDescription_Compatibility, bytesPerRowAlignment?: (number) | null, planeAlignment?: (number) | null, extendedPixels?: (CVPixelBufferPadding) | null): CVBuffer_CreationAttributesSwift declarationinit(pixelFormatType: CVPixelFormatType, size: CVImageSize, compatibility: CVPixelFormatDescription.Compatibility = [], bytesPerRowAlignment: Int? = nil, planeAlignment: Int? = nil, extendedPixels: CVPixelBufferPadding? = nil)get pixelFormatType(): CVPixelFormatTypeSwift declarationvar pixelFormatType: CVPixelFormatTypeFormat of the pixel buffer bytes
set pixelFormatType(value: CVPixelFormatType)Swift declarationvar pixelFormatType: CVPixelFormatTypeFormat of the pixel buffer bytes
get bytesPerRowAlignment(): (number) | nullSwift declarationvar bytesPerRowAlignment: Int?The number of bytes per row in the pixel buffer must be a multiple of this number.
set bytesPerRowAlignment(value: (number) | null)Swift declarationvar bytesPerRowAlignment: Int?The number of bytes per row in the pixel buffer must be a multiple of this number.
get size(): CVImageSizeSwift declarationvar size: CVImageSizeSize of the buffer in pixels
set size(value: CVImageSize)Swift declarationvar size: CVImageSizeSize of the buffer in pixels
get backing(): CVBuffer_CreationAttributes_BackingSwift declarationvar backing: CVBuffer.CreationAttributes.BackingDefines how the memory for the pixel buffer backing is allocated. IOSurface backed pixel buffers can be shared between CPU and GPU also across process boundaries. Defaults to ``Backing.ioSurface``.
set backing(value: CVBuffer_CreationAttributes_Backing)Swift declarationvar backing: CVBuffer.CreationAttributes.BackingDefines how the memory for the pixel buffer backing is allocated. IOSurface backed pixel buffers can be shared between CPU and GPU also across process boundaries. Defaults to ``Backing.ioSurface``.
static init(attributes: CVBuffer_Attributes): (CVBuffer_CreationAttributes) | nullSwift declarationinit?(_ attributes: CVBuffer.Attributes)Convert Attributes to CreationAttributes. This init will fail if ``pixelFormatType`` or ``size`` properties are absent.
No declarations were skipped in this snapshot.