All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.FrameGrabber

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----pinball.player.FrameGrabber

public class FrameGrabber
extends Thread
The image grabber. Takes images from the camera.


Variable Index

 o buffer
The current infomation buffer.
 o buffinfo
The contents of the buffer.
 o edited
Amount of buffers adjusted.
 o frameNumber
The current frame number.
 o Qcam
The camera.
 o resized
Did the resize of the camera take place.
 o resizing
Is the image to be resized.
 o X
Image location.
 o XOffset
Image location.
 o Y
Image location.
 o YOffset
Image location.

Constructor Index

 o FrameGrabber()
For extended classes.
 o FrameGrabber(Camera, Buffer)
Make a new frame grabber thread.

Method Index

 o resize()
Setup the resize.
 o resizeImage()
Check to see if resize of the images is needed.
 o run()
Grab images from the camera.
 o toString()
Get the name of the object.

Variables

 o Qcam
 protected Camera Qcam
The camera.

 o frameNumber
 protected int frameNumber
The current frame number.

 o buffer
 protected Buffer buffer
The current infomation buffer.

 o buffinfo
 protected BufferInfo buffinfo
The contents of the buffer.

 o resized
 protected boolean resized
Did the resize of the camera take place.

 o edited
 protected int edited
Amount of buffers adjusted.

 o X
 protected int X
Image location.

 o Y
 protected int Y
Image location.

 o XOffset
 protected int XOffset
Image location.

 o YOffset
 protected int YOffset
Image location.

 o resizing
 protected boolean resizing
Is the image to be resized.

Constructors

 o FrameGrabber
 public FrameGrabber(Camera Qcam,
                     Buffer buffer)
Make a new frame grabber thread.

Parameters:
Qcam - camera
buffer - first buffer in the series of buffers.
 o FrameGrabber
 public FrameGrabber()
For extended classes.

Methods

 o toString
 public String toString()
Get the name of the object.

Parameters:
name - of the object.
Overrides:
toString in class Thread
 o run
 public void run()
Grab images from the camera.

Overrides:
run in class Thread
 o resizeImage
 protected void resizeImage()
Check to see if resize of the images is needed.

 o resize
 protected void resize()
Setup the resize.


All Packages  Class Hierarchy  This Package  Previous  Next  Index