WordPress File wp-includes/media.php

wp_enqueue_media()

Enqueues all scripts, styles, settings, and templates necessary to use all media JS APIs.

wp_expand_dimensions()

Based on a supplied width/height example, return the biggest possible dimensions based on the max width/height.