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

# registerCustomPixelFormat(_:)

```
func registerCustomPixelFormat(_ customPixelFormat: [String : Any])
```

## Parameters

`customPixelFormat`

A dictionary containing a set of keys and values as described in <doc://com.apple.documentation/documentation/CoreVideo/CVPixelFormatDescription> suitable for providing as the ‘description’ parameter to <doc://com.apple.documentation/documentation/CoreVideo/CVPixelFormatDescriptionCreateWithPixelFormatType(_:_:)>.  This must contain the custom pixel format fourCC as the value for the `kCVPixelFormatCodecType` key.

## Discussion

This property is appropriate for decoders which produce output in a custom pixel format. This will generally only be used by decoders which produce RAW output, where the decoder’s output buffers will only be consumed by an [`MERAWProcessor`](/documentation/MediaExtension/MERAWProcessor) extension which registers the same pixel format. The [`MERAWProcessor`](/documentation/MediaExtension/MERAWProcessor) needs to manually register the custom pixel format using <doc://com.apple.documentation/documentation/CoreVideo/CVPixelFormatDescriptionCreateWithPixelFormatType(_:_:)>.

---

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)