---
title: "CVPixelBufferIsCompatibleWithAttributes(_:_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvpixelbufferiscompatiblewithattributes(_:_:)"
---

# CVPixelBufferIsCompatibleWithAttributes(_:_:)

## Declaration

```swift
func CVPixelBufferIsCompatibleWithAttributes(_ pixelBuffer: CVPixelBuffer, _ attributes: CFDictionary?) -> Bool
```

## Parameters

- `pixelBuffer`: PixelBuffer to check for compatibility.
- `attributes`: Creation attributes which pixel buffer should have.

## Discussion

Discussion Returns true if given pixel buffer is compatible with pixelBufferAttributes dictionary.

## See Also

### Inspecting Pixel Buffers

- [CVPixelBufferGetBaseAddress(_:)](corevideo/cvpixelbuffergetbaseaddress(_:).md)
- [CVPixelBufferGetBaseAddressOfPlane(_:_:)](corevideo/cvpixelbuffergetbaseaddressofplane(_:_:).md)
- [CVPixelBufferGetBytesPerRow(_:)](corevideo/cvpixelbuffergetbytesperrow(_:).md)
- [CVPixelBufferGetBytesPerRowOfPlane(_:_:)](corevideo/cvpixelbuffergetbytesperrowofplane(_:_:).md)
- [CVPixelBufferGetHeight(_:)](corevideo/cvpixelbuffergetheight(_:).md)
- [CVPixelBufferGetHeightOfPlane(_:_:)](corevideo/cvpixelbuffergetheightofplane(_:_:).md)
- [CVPixelBufferGetWidth(_:)](corevideo/cvpixelbuffergetwidth(_:).md)
- [CVPixelBufferGetWidthOfPlane(_:_:)](corevideo/cvpixelbuffergetwidthofplane(_:_:).md)
- [CVPixelBufferIsPlanar(_:)](corevideo/cvpixelbufferisplanar(_:).md)
- [CVPixelBufferGetPlaneCount(_:)](corevideo/cvpixelbuffergetplanecount(_:).md)
- [CVPixelBufferGetDataSize(_:)](corevideo/cvpixelbuffergetdatasize(_:).md)
- [CVPixelBufferGetPixelFormatType(_:)](corevideo/cvpixelbuffergetpixelformattype(_:).md)
- [CVPixelBufferGetExtendedPixels(_:_:_:_:_:)](corevideo/cvpixelbuffergetextendedpixels(_:_:_:_:_:).md)
- [CVPixelBufferGetIOSurface(_:)](corevideo/cvpixelbuffergetiosurface(_:).md)
- [CVPixelBufferCreateResolvedAttributesDictionary(_:_:_:)](corevideo/cvpixelbuffercreateresolvedattributesdictionary(_:_:_:).md)
