Contents

CVImageBufferGetCleanRect(_:)

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

Declaration

func CVImageBufferGetCleanRect(_ imageBuffer: CVImageBuffer) -> CGRect

Parameters

  • imageBuffer:

    The image buffer containing the clean aperture to retrieve.

Return Value

A 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 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 CGRect structure with an origin of (8,0) and a size of 704 x 480.

See Also

Inspecting image buffers