<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.4.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTFrameProcessorFrame/init(buffer:presentationTimeStamp:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:objc(cs)VTFrameProcessorFrame(im)initWithBuffer:presentationTimeStamp:"
  },
  "title" : "init(buffer:presentationTimeStamp:)"
}
-->

# init(buffer:presentationTimeStamp:)

Creates a frame object with a pixel buffer and presentation time.

```
init?(buffer: CVPixelBuffer, presentationTimeStamp: CMTime)
```

## Parameters

`buffer`

A pixel buffer for the frame. This value must be non-NULL and IOSurface backed.

`presentationTimeStamp`

The presentation timestamp of the buffer.

## Discussion

Initialization fails if you specify a `NULL` buffer or one that isn’t backed by an `IOSurface`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)