private boolean isRenditionMatchSizeSameBigger ( MediaFormat mediaFormat , MediaFormat mediaFormatRequested ) { long widthRequested = mediaFormatRequested . getEffectiveMinWidth ( ) ; long heightRequested = mediaFormatRequested . getEffectiveMinHeight ( ) ; long widthMax = mediaFormat . getEffectiveMaxWidth ( ) ; long heightMax = mediaFormat . getEffectiveMaxHeight ( ) ; return ( ( widthMax >= widthRequested ) || ( widthMax == 0 ) ) && ( ( heightMax >= heightRequested ) || ( heightMax == 0 ) ) ; }
Checks if the given media format size is same size or bigger than the requested one .