Function VTPixelTransferSessionTransferImage

Source
pub unsafe extern "C-unwind" fn VTPixelTransferSessionTransferImage(
    session: &VTPixelTransferSession,
    source_buffer: &CVPixelBuffer,
    destination_buffer: &CVPixelBuffer,
) -> i32
Available on crate features VTPixelTransferSession and objc2-core-video only.
Expand description

Copies and/or converts an image from one pixel buffer to another.

By default, the full width and height of sourceBuffer are scaled to the full width and height of destinationBuffer. By default, all existing attachments on destinationBuffer are removed and new attachments are set describing the transferred image. Unrecognised attachments on sourceBuffer will be propagated to destinationBuffer. Some properties will modify this behaviour; see VTPixelTransferProperties.h for more details.

Parameter session: The pixel transfer session.

Parameter sourceBuffer: The source buffer.

Parameter destinationBuffer: The destination buffer.

Returns: If the transfer was successful, noErr; otherwise an error code, such as kVTPixelTransferNotSupportedErr.