se.lth.cs.jpeg
Class JPEGCamera
java.lang.Object
se.lth.cs.jpeg.AbstractJPEGStream
se.lth.cs.jpeg.JPEGCamera
- public class JPEGCamera
- extends AbstractJPEGStream
Field Summary |
static int |
DEFAULT_QUALITY
Default quality, between 0 and 100, 10 to 90 useful. |
Constructor Summary |
JPEGCamera()
|
JPEGCamera(java.awt.Dimension size)
|
JPEGCamera(java.awt.Dimension dim,
int qual)
|
JPEGCamera(java.awt.Dimension dim,
int qual,
int fps)
Create JPEGCamera to grab images with the specified dimension,
quality, and hardware framerate. |
JPEGCamera(int qual)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_QUALITY
public static final int DEFAULT_QUALITY
- Default quality, between 0 and 100, 10 to 90 useful.
- See Also:
- Constant Field Values
JPEGCamera
public JPEGCamera()
JPEGCamera
public JPEGCamera(java.awt.Dimension size)
JPEGCamera
public JPEGCamera(int qual)
JPEGCamera
public JPEGCamera(java.awt.Dimension dim,
int qual)
JPEGCamera
public JPEGCamera(java.awt.Dimension dim,
int qual,
int fps)
- Create JPEGCamera to grab images with the specified dimension,
quality, and hardware framerate. Even if you intend to use a frame
rate lower than 25 (TV-standard), you should normally use 25 anyway
but simply reading the image less frequent. That is to avoid delays.
getNextFrame
public JPEGEvent getNextFrame()
- Grab next image from the camera and return a JPEGEvent.
- Specified by:
getNextFrame
in class AbstractJPEGStream
finalize
public void finalize()
- Stop the pipeline