private static boolean isFormatPlayable(Format format,String[] allowedContainerMimeTypes,boolean filterHdFormats,int maxDecodableFrameSize){
  if (allowedContainerMimeTypes != null && !Util.contains(allowedContainerMimeTypes,format.mimeType)) {
    return false;
  }
  if (filterHdFormats && (format.width >= 1280 || format.height >= 720)) {
    return false;
  }
  if (format.width > 0 && format.height > 0) {
    if (format.width * format.height > maxDecodableFrameSize) {
      return false;
    }
  }
  return true;
}

private static boolean isFormatPlayable ( Format format , String [ ] allowedContainerMimeTypes , boolean filterHdFormats , int maxDecodableFrameSize ) { if ( allowedContainerMimeTypes != null && ! Util . contains ( allowedContainerMimeTypes , format . mimeType ) ) { return false ; } if ( filterHdFormats && ( format . width >= 1280 || format . height >= 720 ) ) { return false ; } if ( format . width > 0 && format . height > 0 ) { if ( format . width * format . height > maxDecodableFrameSize ) { return false ; } } return true ; }
determines whether an individual format is playable , given an array of allowed container types , whether hd formats should be filtered and a maximum decodable frame size in pixels .
