attachments
TypeScriptget attachments(): (CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>) | nullSwift declarationvar attachments: CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>?Attachments to set on the pixel buffer.
struct · iOS 26.0+ · SDK 27.1
struct CVPixelBufferCreationAttributesAttributes needed for creating a pixel buffer.
get attachments(): (CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>) | nullSwift declarationvar attachments: CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>?Attachments to set on the pixel buffer.
set attachments(value: (CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>) | null)Swift declarationvar attachments: CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>?Attachments to set on the 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 initPixelFormatTypeSizeCompatibilityBytesPerRowAlignmentPlaneAlignmentExtendedPixelsAttachments(pixelFormatType: CVPixelFormatType, size: CVImageSize, compatibility?: CVPixelFormatDescription_Compatibility, bytesPerRowAlignment?: (number) | null, planeAlignment?: (number) | null, extendedPixels?: (CVPixelBufferPadding) | null, attachments?: (CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>) | null): CVPixelBufferCreationAttributesSwift declarationinit(pixelFormatType: CVPixelFormatType, size: CVImageSize, compatibility: CVPixelFormatDescription.Compatibility = [], bytesPerRowAlignment: Int? = nil, planeAlignment: Int? = nil, extendedPixels: CVPixelBufferPadding? = nil, attachments: CVAttachmentContainer<CVPixelBufferAttachmentKeyDefinitions>? = nil)static initPixelFormatTypeSizeCompatibilityBytesPerRowAlignmentPlaneAlignmentExtendedPixels(pixelFormatType: CVPixelFormatType, size: CVImageSize, compatibility?: CVPixelFormatDescription_Compatibility, bytesPerRowAlignment?: (number) | null, planeAlignment?: (number) | null, extendedPixels?: (CVPixelBufferPadding) | null): CVPixelBufferCreationAttributesSwift 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(): CVPixelBufferCreationAttributes_BackingSwift declarationvar backing: CVPixelBufferCreationAttributes.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: CVPixelBufferCreationAttributes_Backing)Swift declarationvar backing: CVPixelBufferCreationAttributes.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: CVPixelBufferAttributes): (CVPixelBufferCreationAttributes) | nullSwift declarationinit?(_ attributes: CVPixelBufferAttributes)Convert Attributes to CreationAttributes. This init will fail if ``pixelFormatType`` or ``size`` properties are absent.
No declarations were skipped in this snapshot.