<!--
{
  "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/CVImageBufferGetEncodedSize(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVImageBufferGetEncodedSize"
  },
  "title" : "CVImageBufferGetEncodedSize(_:)"
}
-->

# CVImageBufferGetEncodedSize(_:)

Returns the full encoded dimensions of a Core Video image buffer.

```
func CVImageBufferGetEncodedSize(_ imageBuffer: CVImageBuffer) -> CGSize
```

## Parameters

`imageBuffer`

The image buffer containing the encoded size to retrieve.

## Return Value

A <doc://com.apple.documentation/documentation/CoreFoundation/CGSize> structure defining the full encoded 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

For example, for an NTSC DV frame, this function returns an encoded size of 720 x 480. When you create a <doc://com.apple.documentation/documentation/CoreImage/CIImage> object from a Core Video image buffer, use this call to retrieve the image size.

---

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)