You are here

function _video_aspect_ratio in Video 6.5

Same name and namespace in other branches
  1. 6.4 video.module \_video_aspect_ratio()
  2. 7.2 video.field.inc \_video_aspect_ratio()
  3. 7 video.module \_video_aspect_ratio()

Returns the aspect ratio for the given width and height.

2 calls to _video_aspect_ratio()
video_localcommand::getDimensionParameters in transcoders/video_localcommand.inc
Function determines the dimensions you want and compares with the actual wxh of the video.
_video_dimensions_options in ./video_widget.inc
Updates options list to show matching aspect ratios and resolutions

File

./video.module, line 451
Main file of the Video module.

Code

function _video_aspect_ratio($width, $height) {
  return number_format($width / $height, 4);
}