Contents

CMVideoFormatDescriptionGetCleanAperture(_:originIsAtTopLeft:)

Returns a rectangle that defines the portion of the encoded pixel dimensions that represent the image data that’s valid for displaying.

Declaration

func CMVideoFormatDescriptionGetCleanAperture(_ videoDesc: CMVideoFormatDescription, originIsAtTopLeft: Bool) -> CGRect

Parameters

  • videoDesc:

    CMVideoFormatDescription being interrogated.

  • originIsAtTopLeft:

    Pass true if the CGRect will be used in an environment where (0,0) is at the top-left corner of an enclosing rectangle and y coordinates increase as you go down. Pass false if the CGRect will be used in an environment where (0,0) is at the bottom-left corner of an enclosing rectangle and y coordinates increase as you go up.

See Also

Working with Video Descriptions