videoIsCommonAspectRatio

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.

bool
videoIsCommonAspectRatio
(
int width
,
int height
,
int parN
,
int parD
)

Parameters

width int

Width of the video frame

height int

Height of the video frame

parN int

Pixel aspect ratio numerator

parD int

Pixel aspect ratio denominator

Return Value

Type: bool

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