@TargetApi(21) public static boolean isSizeSupportedV21(String mimeType,boolean secure,int width,int height) throws DecoderQueryException {
  Assertions.checkState(Util.SDK_INT >= 21);
  MediaCodecInfo.VideoCapabilities videoCapabilities=getVideoCapabilitiesV21(mimeType,secure);
  return videoCapabilities != null && videoCapabilities.isSizeSupported(width,height);
}

@ TargetApi ( 21 ) public static boolean isSizeSupportedV21 ( String mimeType , boolean secure , int width , int height ) throws DecoderQueryException { Assertions . checkState ( Util . SDK_INT >= 21 ) ; MediaCodecInfo . VideoCapabilities videoCapabilities = getVideoCapabilitiesV21 ( mimeType , secure ) ; return videoCapabilities != null && videoCapabilities . isSizeSupported ( width , height ) ; }
tests whether the device advertises it can decode video of a given type at a specified width and height . < p > must not be called if the device sdk version is less than 21 .
