All Packages Class Hierarchy This Package Previous Next Index
Class pinball.part.Camera
java.lang.Object
|
+----pinball.part.Camera
- public class Camera
- extends Object
- implements Serializable
The camera is what allows the system to see. It grabs a frame and sends it
into the computer. The camera needs various parameters, such as size,
brightness, and contrast, to know how to take a picture.
-
brightness
- Brightness of the camera.
-
buffers
- Amount of display buffers.
-
cameraFrame
- Current frame from the camera.
-
contrast
- Contrast of the camera.
-
displayRate
- Display every nth frame.
-
live
- Live from the camera.
-
login
- Input file.
-
logout
- Output file.
-
maxHeight
- Max height of the frame.
-
maxWidth
- Max width of the frame.
-
play
- Playing from a file.
-
record
- Recording to a file.
-
transfer
- The camera's transfer.
-
transferset
- Contrast of the camera.
-
videoLog
- Video log, for recording or playing a game.
-
xoffset
- horizontal image offset
-
xsize
- horizontal size
-
yoffset
- vertical image offset
-
ysize
- vertical size
-
zoom
- Zoom
-
Camera(boolean)
- Setup the camera.
-
brightness()
- Get brightness.
-
cameraInfo()
- Setup the camera information.
-
contrast()
- Get contrast.
-
FrameResize(int, int, int, int, int)
- Resize the frame.
-
frameSize()
- Get the number of bytes for the frame.
-
grabFrame(BufferInfo)
- Grab a frame from the camera.
-
GrabFrame(byte[])
- Grab the frame from the camera.
-
imageSize()
- Image dimensions
-
Init()
- Initalize the camera.
-
nextBall()
- Go to the next log video log file.
-
resizeFrame(BufferInfo)
- Resize the frame.
-
toString()
- Get the name of the camera.
-
transfer()
- Get the transfer size.
-
XOffset()
- Get the frame's x offset.
-
xSize()
- Get the frame's x size.
-
YOffset()
- Get the frame's y offset.
-
ySize()
- Get the frame's y size.
-
zoomSize()
- Get the frame's zoom size.
xsize
protected int xsize
- horizontal size
ysize
protected int ysize
- vertical size
xoffset
protected int xoffset
- horizontal image offset
yoffset
protected int yoffset
- vertical image offset
transfer
protected int transfer
- The camera's transfer.
zoom
protected int zoom
- Zoom
buffers
protected int buffers
- Amount of display buffers.
displayRate
protected int displayRate
- Display every nth frame.
brightness
protected int brightness
- Brightness of the camera.
contrast
protected int contrast
- Contrast of the camera.
transferset
protected int transferset
- Contrast of the camera.
maxWidth
public static final int maxWidth
- Max width of the frame.
maxHeight
public static final int maxHeight
- Max height of the frame.
logout
protected ObjectOutputStream logout
- Output file.
login
protected ObjectInputStream login
- Input file.
videoLog
protected VideoLog videoLog
- Video log, for recording or playing a game.
live
protected boolean live
- Live from the camera.
record
protected boolean record
- Recording to a file.
play
protected boolean play
- Playing from a file.
cameraFrame
protected CameraFrame cameraFrame
- Current frame from the camera.
Camera
public Camera(boolean driver)
- Setup the camera.
- Parameters:
- driver - load the driver or not.
cameraInfo
public void cameraInfo()
- Setup the camera information.
toString
public String toString()
- Get the name of the camera.
- Returns:
- camera's name.
- Overrides:
- toString in class Object
grabFrame
public void grabFrame(BufferInfo buffinfo)
- Grab a frame from the camera.
- Parameters:
- buffinfo - the buffer to store the frame in.
nextBall
public synchronized void nextBall()
- Go to the next log video log file.
Init
protected native void Init()
- Initalize the camera.
GrabFrame
public native void GrabFrame(byte buffer[])
- Grab the frame from the camera.
- Parameters:
- buffer - the location to store the frame.
FrameResize
protected native void FrameResize(int width,
int hight,
int xoffset,
int offset,
int transfer)
- Resize the frame.
- Parameters:
- width - the width of the frame.
- height - the height of the frame.
- xoffset - the xoffset of the frame.
- yoffset - the yoffset of the frame.
xSize
public int xSize()
- Get the frame's x size.
- Returns:
- x size.
ySize
public int ySize()
- Get the frame's y size.
- Returns:
- y size.
frameSize
public int frameSize()
- Get the number of bytes for the frame.
- Returns:
- number of bytes for this frame.
zoomSize
public int zoomSize()
- Get the frame's zoom size.
- Returns:
- zoom size.
XOffset
public int XOffset()
- Get the frame's x offset.
- Returns:
- x offset.
YOffset
public int YOffset()
- Get the frame's y offset.
- Returns:
- y offset.
resizeFrame
public void resizeFrame(BufferInfo buffinfo)
- Resize the frame.
- Parameters:
- buffinfo - with frame size to resize.
transfer
public int transfer()
- Get the transfer size.
- Returns:
- transfer size.
brightness
public int brightness()
- Get brightness.
- Returns:
- brightness.
contrast
public int contrast()
- Get contrast.
- Returns:
- contrast.
imageSize
public Dimension imageSize()
- Image dimensions
- Returns:
- image dimensions.
All Packages Class Hierarchy This Package Previous Next Index