code: public void setJPGQuality(int q){
  		state.checkReleased();
  		if(q<V4L4JConstants.MIN_JPEG_QUALITY)
  			q =V4L4JConstants.MIN_JPEG_QUALITY; 
  		if(q>V4L4JConstants.MAX_JPEG_QUALITY)
  			q = V4L4JConstants.MAX_JPEG_QUALITY;
  		
  		setQuality(object, q);
  		quality = q;
  	}
docs: This method sets the desired JPEG quality.
  @param q the quality (between
  {@link V4L4JConstants#MIN_JPEG_QUALITY} and
  {@link V4L4JConstants#MAX_JPEG_QUALITY} inclusive)
  @throws StateException if this
  <code>FrameGrabber</code> has been already released, and therefore must
  not be used anymore.