Contents

CMVideoFormatDescriptionGetPresentationDimensions(_:usePixelAspectRatio:useCleanAperture:)

Returns the dimensions after taking the pixel aspect ratio and clean aperture into account.

Declaration

func CMVideoFormatDescriptionGetPresentationDimensions(_ videoDesc: CMVideoFormatDescription, usePixelAspectRatio: Bool, useCleanAperture: Bool) -> CGSize

Parameters

  • videoDesc:

    CMVideoFormatDescription being interrogated.

  • usePixelAspectRatio:

    Compute the dimensions maintaining pixel aspect ratio.

  • useCleanAperture:

    Compute the dimensions using the clean aperture.

Discussion

Pixel aspect ratio is used to adjust the width, leaving the height alone.

See Also

Working with Video Descriptions