videoIsCommonAspectRatio

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

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

widthWidth of the video frame
heightHeight of the video frame
parNPixel aspect ratio numerator
parDPixel aspect ratio denominator

Returns

true if a known "standard" aspect ratio was

recognised, and false otherwise.