<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVImageBufferGetCleanRect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVImageBufferGetCleanRect"
  },
  "title" : "CVImageBufferGetCleanRect(_:)"
}
-->

# CVImageBufferGetCleanRect(_:)

Returns the source rectangle of a Core Video image buffer that represents the clean aperture of the buffer in encoded pixels.

```
func CVImageBufferGetCleanRect(_ imageBuffer: CVImageBuffer) -> CGRect
```

## Parameters

`imageBuffer`

The image buffer containing the clean aperture to retrieve.

## Return Value

A <doc://com.apple.documentation/documentation/CoreFoundation/CGRect> structure returning the nominal display size of the image buffer. The size is zero if you pass a value for the image buffer that isn’t a [`CVImageBuffer`](/documentation/CoreVideo/CVImageBuffer) type.

## Discussion

The clean aperture size is smaller than the full size of the image. For example, for an NTSC DV frame, this function returns a <doc://com.apple.documentation/documentation/CoreFoundation/CGRect> structure with an origin of `(8,0)` and a size of 704 x 480.

> Note:
> The origin of this rectangle is always in the lower-left corner. This is the same coordinate system as that used by Quartz and Core Image.

---

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)