Determines whether a converter is capable of operating in place.
- Parameter source: The source buffer.
- Parameter destination: The destination buffer.
- Parameter options: The options to use when performing this operation.
- Returns: `true` if the conversion must operate out of place or `false`
if the operation will work in place.
get · iOS 13.0+
destinationBufferCount
TypeScript
get destinationBufferCount(): number
Swift declaration
var destinationBufferCount: Int { get }
The number of destination buffers written to by the converter.
Returns an array of pixel buffers in the right order to convert an image to a Core Video formatted image.
- Parameter lockedCVPixelBuffer: The locked Core Video pixel buffer.
Use `CVPixelBufferLockBaseAddress` and `CVPixelBufferUnlockBaseAddress` to
lock and unlock the pixel buffer.
- Note: The converter must be Core Graphics to Core Video.
The buffers that this function returns share memory with the `CVPixelBuffer` and are only valid
while the `CVPixelBuffer` is locked with `CVPixelBufferLockBaseAddress`.
Returns an array of pixel buffers in the right order to convert a Core Video formatted image to another image format.
- Parameter lockedCVPixelBuffer: The locked Core Video pixel buffer.
Use `CVPixelBufferLockBaseAddress` and `CVPixelBufferUnlockBaseAddress` to
lock and unlock the pixel buffer.
- Note: The converter must be Core Video to Core Graphics.
The buffers that this function returns share memory with the `CVPixelBuffer` and are only valid
while the `CVPixelBuffer` is locked with `CVPixelBufferLockBaseAddress`.
Creates an any-to-any converter that uses a color conversion information object to convert from one image format to another.
- Parameter sourceFormat: A `vImage_CGImageFormat` structure that describes the image format of the source image.
- Parameter destinationFormat: A `vImage_CGImageFormat` structure that describes the image format of the destination image.
- Parameter colorConversionInfo: The object that describes how to convert between color spaces.
- Parameter options: The options to use when performing this operation.
- Returns: a vImage converter to convert from one vImage Core Graphics image format to another.
- Important: The source and destination color spaces must have the same number of channels.
Creates a vImage converter that converts a Core Video-formatted image to a Core Graphics-formatted image.
- Parameter sourceFormat: A `vImageCVImageFormat` structure describing the image format of the source image
- Parameter destinationFormat: A `vImage_CGImageFormat` structure describing the image format of the destination image
- Parameter options: The options to use when performing this operation.
- Returns: a vImage converter to convert a Core Video-formatted image to a Core Graphics-formatted image.
Creates a vImage converter to convert from one vImage Core Graphics image format to another.
- Parameter sourceFormat: A `vImage_CGImageFormat` structure describing the image format of the source image
- Parameter destinationFormat: A `vImage_CGImageFormat` structure describing the image format of the destination image
- Parameter options: The options to use when performing this operation.
- Returns: a vImage converter to convert from one vImage Core Graphics image format to another.
Creates a vImage converter that converts a Core Graphics-formatted image to a Core Video-formatted image.
- Parameter sourceFormat: A `vImage_CGImageFormat` structure describing the image format of the source image
- Parameter destinationFormat: A `vImageCVImageFormat` structure describing the image format of the destination image
- Parameter options: The options to use when performing this operation.
- Returns: a vImage converter to convert a Core Graphics-formatted image to a Core Video-formatted image.
Converts the pixels in a vImage buffer to another format.
- Parameter source: The source buffer.
- Parameter destination: The destination buffer.
- Parameter options: The options to use when performing this operation.
- Returns: `kvImageNoError`; otherwise, one of the error codes described in _Data Types and Constants.
Omit the output parameters from the call. The result contains $ret and $out, with destination inside $out.
Skipped declarations
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
vImageConverter.convert(from:to:)
This declaration needs Swift generic type arguments. (no canonical witness for Src)
vImageConverter.convert(from:to:)
This declaration needs Swift generic type arguments. (no canonical witness for F1)