---
title: "VTPixelTransferSessionCreate(allocator:pixelTransferSessionOut:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtpixeltransfersessioncreate(allocator:pixeltransfersessionout:)"
---

# VTPixelTransferSessionCreate(allocator:pixelTransferSessionOut:)

Creates a session for transferring images between Core Video image buffers that hold pixels in main memory.

## Declaration

```swift
func VTPixelTransferSessionCreate(allocator: CFAllocator?, pixelTransferSessionOut: UnsafeMutablePointer<VTPixelTransferSession?>) -> OSStatus
```

## Parameters

- `allocator`: An allocator for the session. Pass NULL to use the default allocator.
- `pixelTransferSessionOut`: Points to a variable to receive the new pixel transfer session.

## Discussion

Discussion The function creates a session for transferring images between CVPixelBuffer objects.
