Contents

CVImageBufferGetDisplaySize(_:)

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

Declaration

func CVImageBufferGetDisplaySize(_ imageBuffer: CVImageBuffer) -> CGSize

Parameters

  • imageBuffer:

    The image buffer containing the display size to retrieve.

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

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

See Also

Inspecting image buffers