colorSpace
TypeScriptget colorSpace(): (_CoreGraphics_CGColorSpace) | nullSwift declarationvar colorSpace: CGColorSpace? { get set }The color space of a Core Video image format.
class · SDK 27.1
class vImageCVImageFormatget colorSpace(): (_CoreGraphics_CGColorSpace) | nullSwift declarationvar colorSpace: CGColorSpace? { get set }The color space of a Core Video image format.
set colorSpace(value: (_CoreGraphics_CGColorSpace) | null)Swift declarationvar colorSpace: CGColorSpace? { get set }The color space of a Core Video image format.
get formatCode(): numberSwift declarationvar formatCode: UInt32 { get }The format code of a Core Video image format.
get channelCount(): numberSwift declarationvar channelCount: UInt32 { get }The number of channels, including alpha, for the Core Video image format.
get chromaSiting(): (vImageCVImageFormat_ChromaSiting) | nullSwift declarationvar chromaSiting: vImageCVImageFormat.ChromaSiting? { get set }The chroma siting of a Core Video image format.
set chromaSiting(value: (vImageCVImageFormat_ChromaSiting) | null)Swift declarationvar chromaSiting: vImageCVImageFormat.ChromaSiting? { get set }The chroma siting of a Core Video image format.
get alphaIsOpaqueHint(): booleanSwift declarationvar alphaIsOpaqueHint: Bool { get set }The alpha hint of a Core Video image format.
set alphaIsOpaqueHint(value: boolean)Swift declarationvar alphaIsOpaqueHint: Bool { get set }The alpha hint of a Core Video image format.
channelDescription(bufferType: vImage_BufferType): (vImageChannelDescription) | nullSwift declarationfunc channelDescription(bufferType: vImage.BufferType) -> vImageChannelDescription?Returns the channel description for a particular channel type.
static makeBuffer(buffer: _CoreVideo_CVBuffer): (vImageCVImageFormat) | nullSwift declarationstatic func make(buffer: CVPixelBuffer) -> vImageCVImageFormat?Creates the description of how an image is encoded in an existing Core Video pixel buffer. - Parameter buffer: The CVPixelBufferRef on which to base the returned vImageCVImageFormatRef. - Returns: A `vImageCVImageFormatRef` instance encoded with the supplied pixel buffer's pixel format.
static makeFormatColorSpaceAlphaIsOpaqueHint(format: vImageCVImageFormat_Format, colorSpace: _CoreGraphics_CGColorSpace, alphaIsOpaqueHint: boolean): (vImageCVImageFormat) | nullSwift declarationstatic func make(format: vImageCVImageFormat.Format, colorSpace: CGColorSpace, alphaIsOpaqueHint: Bool) -> vImageCVImageFormat?Creates the description of how an RGB image is encoded in a Core Video pixel buffer. - Parameter format: The format type of the image. - Parameter colorSpace: The color space of the RGB and monochrome images. - Parameter alphaIsOpaqueHint: A hint indicating that an image with an alpha channel should be treated as opaque. - Returns: A `vImageCVImageFormatRef` instance encoded with the function's parameters.
static makeFormatMatrixChromaSitingColorSpaceAlphaIsOpaqueHint(format: vImageCVImageFormat_Format, matrix: vImage_ARGBToYpCbCrMatrix, chromaSiting: vImageCVImageFormat_ChromaSiting, colorSpace: _CoreGraphics_CGColorSpace, alphaIsOpaqueHint: boolean): (vImageCVImageFormat) | nullSwift declarationstatic func make(format: vImageCVImageFormat.Format, matrix: vImage_ARGBToYpCbCrMatrix, chromaSiting: vImageCVImageFormat.ChromaSiting, colorSpace: CGColorSpace, alphaIsOpaqueHint: Bool) -> vImageCVImageFormat?Creates the description of how an image is encoded in a Core Video pixel buffer. - Parameter format: The format type of the image. - Parameter matrix: A `vImage_ARGBToYpCbCrMatrix` that describes the conversion from RGB to the YpCbCr format. - Parameter chromaSiting: The chroma location. - Parameter colorSpace: The color space of the RGB and monochrome images. - Parameter alphaIsOpaqueHint: A hint indicating that an image with an alpha channel should be treated as opaque. - Returns: A `vImageCVImageFormatRef` instance encoded with the function's parameters.
get channels(): Array<vImage_BufferType>Swift declarationvar channels: [vImage.BufferType] { get }The names of the channels of a Core Video image format.
No declarations were skipped in this snapshot.