Contents

VTPixelTransferSession

An object converts video data from source pixel buffers to destination pixel buffers.

Overview

A pixel transfer session supports the copying and/or conversion of images from source pixel buffers to destination pixel buffers. The basic workflow used when working with a pixel transfer session is as follows:

  1. Create a pixel transfer session by calling VTPixelTransferSessionCreate(allocator:pixelTransferSessionOut:).

  2. Optionally, configure the session with your desired Pixel Transfer Properties by calling VTSessionSetProperty(_:key:value:) or VTSessionSetProperties(_:propertyDictionary:).

  3. Transfer images by calling VTPixelTransferSessionTransferImage(_:from:to:).

  4. When you finish with the pixel transfer session, call VTPixelTransferSessionInvalidate(_:) to tear it down, and CFRelease to free its memory.

Topics

Creating Sessions

Configuring Sessions

Converting Image Data

Inspecting Sessions

Ending Sessions

Data Types

See Also

Transformation