---
title: "VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtdecompressionsessioncopyblackpixelbuffer(_:pixelbufferout:)"
---

# VTDecompressionSessionCopyBlackPixelBuffer(_:pixelBufferOut:)

Copies a black pixel buffer from the decompression session.

## Declaration

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

## Parameters

- `session`: The decompression session.
- `pixelBufferOut`: A pointer to receive the copied pixel buffer.

## Return Value

Return Value An OSStatus value that indicates the result of the operation.

## Discussion

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

## See Also

### Decoding Frames

- [VTDecompressionSessionCanAcceptFormatDescription(_:formatDescription:)](videotoolbox/vtdecompressionsessioncanacceptformatdescription(_:formatdescription:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameRefcon:infoFlagsOut:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:frameRefcon:infoFlagsOut:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:framerefcon:infoflagsout:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:frameOptions:infoFlagsOut:outputHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:frameoptions:infoflagsout:outputhandler:).md)
- [VTDecompressionSessionDecodeFrame(_:sampleBuffer:flags:infoFlagsOut:completionHandler:)](videotoolbox/vtdecompressionsessiondecodeframe(_:samplebuffer:flags:infoflagsout:completionhandler:).md)
- [VTDecompressionSessionFinishDelayedFrames(_:)](videotoolbox/vtdecompressionsessionfinishdelayedframes(_:).md)
- [VTDecompressionSessionWaitForAsynchronousFrames(_:)](videotoolbox/vtdecompressionsessionwaitforasynchronousframes(_:).md)
