code: public void setCustomViewSizes(Dimension... sizes) {
  		assert customSizes != null;
  		if (sizes == null) {
  			customSizes.clear();
  			return;
  		}
  		customSizes = Arrays.asList(sizes);
  	}
docs: Set custom resolution. If you are using this method you have to make sure that your webcam
  device can support this specific resolution.
  
  @param sizes the array of custom resolutions to be supported by webcam