---
title: "registerCustomPixelFormat(_:)"
framework: MediaExtension
role: symbol
role_heading: Instance Method
platforms: [macOS 14.0+]
path: "mediaextension/mevideodecoderpixelbuffermanager/registercustompixelformat(_:)"
---

# registerCustomPixelFormat(_:)

## Declaration

```swift
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

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 extension which registers the same pixel format. The MERAWProcessor needs to manually register the custom pixel format using CVPixelFormatDescriptionCreateWithPixelFormatType(_:_:).
