<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEVideoDecoderPixelBufferManager/makePixelBuffer()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)MEVideoDecoderPixelBufferManager(im)createPixelBufferAndReturnError:"
  },
  "title" : "makePixelBuffer()"
}
-->

# makePixelBuffer()

Generates a pixel buffer using the session’s pixel buffer pool.

```
func makePixelBuffer() throws -> CVPixelBuffer
```

## Return Value

A pixel buffer that’s compatible with the extension’s most recently set pixel buffer attributes.

---

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)