---
title: "CVImageBufferGetEncodedSize(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvimagebuffergetencodedsize(_:)"
---

# CVImageBufferGetEncodedSize(_:)

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

## Declaration

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

## Parameters

- `imageBuffer`: The image buffer containing the encoded size to retrieve.

## Return Value

Return Value A 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 type.

## Discussion

Discussion For example, for an NTSC DV frame, this function returns an encoded size of 720 x 480. When you create a CIImage object from a Core Video image buffer, use this call to retrieve the image size.

## See Also

### Inspecting image buffers

- [CVImageBufferGetCleanRect(_:)](corevideo/cvimagebuffergetcleanrect(_:).md)
- [CVImageBufferGetColorSpace(_:)](corevideo/cvimagebuffergetcolorspace(_:).md)
- [CVImageBufferGetDisplaySize(_:)](corevideo/cvimagebuffergetdisplaysize(_:).md)
- [CVImageBufferIsFlipped(_:)](corevideo/cvimagebufferisflipped(_:).md)
