<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVPixelBufferPoolCreate(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVPixelBufferPoolCreate"
  },
  "title" : "CVPixelBufferPoolCreate(_:_:_:_:)"
}
-->

# CVPixelBufferPoolCreate(_:_:_:_:)

Creates a pixel buffer pool using the allocator and attributes that you specify.

```
func CVPixelBufferPoolCreate(_ allocator: CFAllocator?, _ poolAttributes: CFDictionary?, _ pixelBufferAttributes: CFDictionary?, _ poolOut: UnsafeMutablePointer<CVPixelBufferPool?>) -> CVReturn
```

## Parameters

`allocator`

The allocator to use for creating the buffer pool. Pass <doc://com.apple.documentation/documentation/CoreFoundation/kCFAllocatorDefault> to use the default allocator. See <doc://com.apple.documentation/documentation/CoreFoundation/predefined-allocators> for additional values you can use.

`poolAttributes`

A Core Foundation dictionary that contains the attributes for the pixel buffer pool. See the Constants topic group below for possible values.

`pixelBufferAttributes`

An optional dictionary that contains the attributes to use to create new pixel buffers within the pool. See [Pixel Buffer Attribute Keys](/documentation/CoreVideo/pixel-buffer-attribute-keys) for possible values.

`poolOut`

On output, the newly created pixel buffer pool.

## Return Value

A Core Video result code. See [Result Codes](/documentation/CoreVideo/result-codes) for possible values.

## Discussion

Use [`CVPixelBufferPoolRelease`](/documentation/CoreVideo/CVPixelBufferPoolRelease) to release ownership of the `poolOut` object when you’re done with it.

---

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)