Function

GstVideo-1.0GstVideovideo_is_common_aspect_ratioSince 1.22

  • Given a frame's dimensions and pixel aspect ratio, this function will calculate the frame's aspect ratio and compare it against a set of common well-known "standard" aspect ratios.

    Parameters

    • width: number

      Width of the video frame

    • height: number

      Height of the video frame

    • par_n: number

      Pixel aspect ratio numerator

    • par_d: number

      Pixel aspect ratio denominator

    Returns boolean

    true if a known "standard" aspect ratio was recognised, and false otherwise.

    1.22