se.lth.cs.jpeg
Class JPEGCamera

java.lang.Object
  extended byse.lth.cs.jpeg.AbstractJPEGStream
      extended byse.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.
 
Fields inherited from class se.lth.cs.jpeg.AbstractJPEGStream
NORMAL_SIZE, SMALL_SIZE
 
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)
           
 
Method Summary
 void finalize()
          Stop the pipeline
 JPEGEvent getNextFrame()
          Grab next image from the camera and return a JPEGEvent.
 
Methods inherited from class se.lth.cs.jpeg.AbstractJPEGStream
getDimension, setSkip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_QUALITY

public static final int DEFAULT_QUALITY
Default quality, between 0 and 100, 10 to 90 useful.

See Also:
Constant Field Values
Constructor Detail

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.

Method Detail

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