<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTDecompressionSessionCopyBlackPixelBuffer"
  },
  "title" : "VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)"
}
-->

# VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)

Copies a black pixel buffer from the decompression session.

```
func VTDecompressionSessionCopyBlackPixelBuffer(_ session: VTDecompressionSession, pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> OSStatus
```

## Parameters

`session`

The decompression session.

`pixelBufferOut`

A pointer to receive the copied pixel buffer.

## Return Value

An `OSStatus` value that indicates the result of the operation.

## Discussion

The pixel buffer is in the same format as the decompression session.

---

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)