Function CVImageBufferGetCleanRect

Source
pub unsafe extern "C-unwind" fn CVImageBufferGetCleanRect(
    image_buffer: &CVImageBuffer,
) -> CGRect
Available on crate features CVImageBuffer and CVBuffer only.
Expand description

Returns the source rectangle of a CVImageBuffer that represents the clean aperture of the buffer in encoded pixels. For example, an NTSC DV frame would return a CGRect with an origin of 8,0 and a size of 704,480. Note that the origin of this rect always the lower left corner. This is the same coordinate system as used by CoreImage.

Parameter imageBuffer: A CVImageBuffer that you wish to retrieve the display size from.

Returns: A CGSize returning the nominal display size of the buffer Returns zero rect if called with a non-CVImageBufferRef type or NULL.