All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.buffer.CameraFrame

java.lang.Object
   |
   +----pinball.buffer.CameraFrame

public class CameraFrame
extends Object
implements Serializable
This is a frame grabed from the camera. It also has the dimensions of the frame.


Variable Index

 o frame
The frame from the camera.
 o height
The height of the frame.
 o id
The id of the frame.
 o transfer
The transfer size for the frame.
 o width
The width of the frame.
 o xoffset
The xoffset of the frame.
 o yoffset
The yoffset of the frame.

Constructor Index

 o CameraFrame(int, byte[], int, int, int, int)
Create a frame that was grabed by the camera.
 o CameraFrame(int, byte[], int, int, int, int, int)
Create a frame that was grabed by the camera.
 o CameraFrame(int, int, int, int, int, int, int)
Create a frame to be grabed by the camera.

Method Index

 o getFrame()
Get the frame.
 o getHeight()
Get the height of the frame.
 o getID()
Get the id of the frame.
 o getTransfer()
Get the transfer size of the frame.
 o getWidth()
Get the width of the frame.
 o getXOffset()
Get the xoffset of the frame.
 o getYOffset()
Get the yoffset of the frame.
 o setID(int)
Set the ID.

Variables

 o frame
 protected byte frame[]
The frame from the camera.

 o id
 protected int id
The id of the frame.

 o width
 protected int width
The width of the frame.

 o height
 protected int height
The height of the frame.

 o xoffset
 protected int xoffset
The xoffset of the frame.

 o yoffset
 protected int yoffset
The yoffset of the frame.

 o transfer
 protected int transfer
The transfer size for the frame.

Constructors

 o CameraFrame
 public CameraFrame(int id,
                    int size,
                    int width,
                    int height,
                    int xoffset,
                    int yoffset,
                    int transfer)
Create a frame to be grabed by the camera.

Parameters:
id - the frame's id
size - the number of bytes of the frame.
width - the width of the frame.
height - the height of the frame.
xoffset - the xoffset of the frame.
yoffset - the yoffset of the frame.
transfer - the transfer size of the frame.
 o CameraFrame
 public CameraFrame(int id,
                    byte frame[],
                    int width,
                    int height,
                    int xoffset,
                    int yoffset,
                    int transfer)
Create a frame that was grabed by the camera.

Parameters:
id - the frame's id
frame - the bytes of the frame.
width - the width of the frame.
height - the height of the frame.
xoffset - the xoffset of the frame.
yoffset - the yoffset of the frame.
transfer - the transfer size of the frame.
 o CameraFrame
 public CameraFrame(int id,
                    byte frame[],
                    int width,
                    int height,
                    int xoffset,
                    int yoffset)
Create a frame that was grabed by the camera.

Parameters:
id - the frame's id
frame - the bytes of the frame.
width - the width of the frame.
height - the height of the frame.
xoffset - the xoffset of the frame.
yoffset - the yoffset of the frame.

Methods

 o getID
 public int getID()
Get the id of the frame.

Returns:
the id of the frame.
 o setID
 public void setID(int id)
Set the ID.

Parameters:
id - the id of the frame.
 o getFrame
 public byte[] getFrame()
Get the frame.

Returns:
frame to store image.
 o getWidth
 public int getWidth()
Get the width of the frame.

Returns:
width of the frame.
 o getHeight
 public int getHeight()
Get the height of the frame.

Returns:
height of the frame.
 o getXOffset
 public int getXOffset()
Get the xoffset of the frame.

Returns:
xoffset of the frame.
 o getYOffset
 public int getYOffset()
Get the yoffset of the frame.

Returns:
yoffset of the frame.
 o getTransfer
 public int getTransfer()
Get the transfer size of the frame.

Returns:
transfer size of the frame.

All Packages  Class Hierarchy  This Package  Previous  Next  Index