private boolean isRenditionMatchSizeSameSmaller ( MediaFormat mediaFormat , MediaFormat mediaFormatRequested ) { long widthRequested = mediaFormatRequested . getEffectiveMinWidth ( ) ; long heightRequested = mediaFormatRequested . getEffectiveMinHeight ( ) ; long widthMin = mediaFormat . getEffectiveMinWidth ( ) ; long heightMin = mediaFormat . getEffectiveMinHeight ( ) ; return widthMin <= widthRequested && heightMin <= heightRequested ; }
Checks if the given media format size is same size or smaller than the requested one .