MediaFormatUtil

Functions

Link copied to clipboard
Link copied to clipboard
fun getCropRect(format: MediaFormat?): Rect?

Converts inclusive decoder crop bounds to a Rect with exclusive right/bottom coordinates. Returns null when crop metadata is missing, incomplete, invalid, or would overflow.

Link copied to clipboard
fun getHeight(format: MediaFormat): Int
Link copied to clipboard
fun getWidth(format: MediaFormat): Int