code: private static List<Dimension> getVideoResolutions(ImageFormat format) {
  
  		if (format == null) {
  			throw new IllegalArgumentException("Image format cannot be null!");
  		}
  
  		ResolutionInfo info = format.getResolutionInfo();
  		ResolutionInfo.Type type = info.getType();
  
  		switch (type) {
  			case DISCRETE:
  				return getResolutionsDiscrete(info);
  			case STEPWISE:
  				return getResolutionsStepwise(info);
  			case UNSUPPORTED:
  				return getResolutionsUnsupported(info);
  			default:
  				throw new WebcamException("Unknown resolution type " + type);
  		}
  	}
docs: Get video resolutions from {@link ImageFormat}.
  
  @param format the {@link ImageFormat} to test
  @return List of resolutions supported by given format