---
title: "matchesImageBuffer(_:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmformatdescription/matchesimagebuffer(_:)"
---

# matchesImageBuffer(_:)

Returns a Boolean value that indicates whether the format description matches an image buffer.

## Declaration

```swift
func matchesImageBuffer(_ imageBuffer: CVImageBuffer) -> Bool
```

## Parameters

- `imageBuffer`: The image buffer to validate against.

## See Also

### Working with Video Descriptions

- [cleanAperture(originIsAtTopLeft:)](coremedia/cmformatdescription/cleanaperture(originisattopleft:).md)
- [presentationDimensions(usePixelAspectRatio:useCleanAperture:)](coremedia/cmformatdescription/presentationdimensions(usepixelaspectratio:usecleanaperture:).md)
