One Logo Pool Ball
Accelerate · IOS API REFERENCE

vImage.BufferType

enum · iOS 13.0+ · SDK 27.1

enum BufferType

Type codes for what is in a `vImage_Buffer`, such as red or luminance.

Members (4)

init · iOS 13.0+

init

TypeScript
initBufferTypeCodeModel(bufferTypeCode: number, model?: (_CoreGraphics_CGColorSpaceModel) | null): (vImage_BufferType) | null
Swift declaration
init?(bufferTypeCode: Int, model: CGColorSpaceModel?)

Returns a new `BufferType` enum from the supplied code and color space model.

get · iOS 13.0+

bufferTypeCode

TypeScript
getBufferTypeCode($self: vImage_BufferType): number
Swift declaration
var bufferTypeCode: vImageBufferTypeCode { get }

The `vImageBufferTypeCode` for this `BufferType` enum.

init · iOS 13.0+

init

TypeScript
initRawValue(rawValue: number): (vImage_BufferType) | null
Swift declaration
init?(rawValue: Int)

Creates a new instance with the specified raw value. If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example: enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil" - Parameter rawValue: The raw value to use for the new instance.

get · iOS 13.0+

rawValue

TypeScript
getRawValue($self: vImage_BufferType): number
Swift declaration
var rawValue: Int { get }

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

Skipped declarations

No declarations were skipped in this snapshot.

All Accelerate types →