Calculate dimensions based on aspect ratio.
Calculate the missing dimension of an image or video based on the original aspect ratio.