---
title: "CVImageBufferGetDisplaySize(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvimagebuffergetdisplaysize(_:)"
---

# CVImageBufferGetDisplaySize(_:)

Returns the nominal output display size, in square pixels, of a Core Video image buffer.

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

Discussion For example, for an NTSC DV frame, this function returns a size of 640 x 480.

## See Also

### Inspecting image buffers

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