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
-  Brightness of the camera.
  
-   buffers buffers
-  Amount of display buffers.
  
-   cameraFrame cameraFrame
-  Current frame from the camera.
  
-   contrast contrast
-  Contrast of the camera.
  
-   displayRate displayRate
-  Display every nth frame.
  
-   live live
-  Live from the camera.
  
-   login login
-  Input file.
  
-   logout logout
-  Output file.
  
-   maxHeight maxHeight
-  Max height of the frame.
  
-   maxWidth maxWidth
-  Max width of the frame.
  
-   play play
-  Playing from a file.
  
-   record record
-  Recording to a file.
  
-   transfer transfer
-  The camera's transfer.
  
-   transferset transferset
-  Contrast of the camera.
  
-   videoLog videoLog
-  Video log, for recording or playing a game.
  
-   xoffset xoffset
-  horizontal image offset
  
-   xsize xsize
-  horizontal size
  
-   yoffset yoffset
-  vertical image offset
  
-   ysize ysize
-  vertical size
  
-   zoom zoom
-  Zoom
   
  -   Camera(boolean) Camera(boolean)
-   Setup the camera.
   
  -   brightness() brightness()
-   Get brightness.
  
-   cameraInfo() cameraInfo()
-   Setup the camera information.
  
-   contrast() contrast()
-   Get contrast.
  
-   FrameResize(int, int, int, int, int) FrameResize(int, int, int, int, int)
-   Resize the frame.
  
-   frameSize() frameSize()
-   Get the number of bytes for the frame.
  
-   grabFrame(BufferInfo) grabFrame(BufferInfo)
-   Grab a frame from the camera.
  
-   GrabFrame(byte[]) GrabFrame(byte[])
-   Grab the frame from the camera.
  
-   imageSize() imageSize()
-   Image dimensions
 
  
-   Init() Init()
-  Initalize the camera.
  
-   nextBall() nextBall()
-   Go to the next log video log file.
  
-   resizeFrame(BufferInfo) resizeFrame(BufferInfo)
-   Resize the frame.
  
-   toString() toString()
-   Get the name of the camera.
  
-   transfer() transfer()
-   Get the transfer size.
  
-   XOffset() XOffset()
-   Get the frame's x offset.
  
-   xSize() xSize()
-   Get the frame's x size.
  
-   YOffset() YOffset()
-   Get the frame's y offset.
  
-   ySize() ySize()
-   Get the frame's y size.
  
-   zoomSize() zoomSize()
-   Get the frame's zoom size.
   
 xsize
xsize
 protected int xsize
  -  horizontal size
 
 ysize
ysize
 protected int ysize
  -  vertical size
 
 xoffset
xoffset
 protected int xoffset
  -  horizontal image offset
 
 yoffset
yoffset
 protected int yoffset
  -  vertical image offset
 
 transfer
transfer
 protected int transfer
  -  The camera's transfer.
 
 zoom
zoom
 protected int zoom
  -  Zoom
 
 buffers
buffers
 protected int buffers
  -  Amount of display buffers.
 
 displayRate
displayRate
 protected int displayRate
  -  Display every nth frame.
 
 brightness
brightness
 protected int brightness
  -  Brightness of the camera.
 
 contrast
contrast
 protected int contrast
  -  Contrast of the camera.
 
 transferset
transferset
 protected int transferset
  -  Contrast of the camera.
 
 maxWidth
maxWidth
 public static final int maxWidth
  -  Max width of the frame.
 
 maxHeight
maxHeight
 public static final int maxHeight
  -  Max height of the frame.
 
 logout
logout
 protected ObjectOutputStream logout
  -  Output file.
 
 login
login
 protected ObjectInputStream login
  -  Input file.
 
 videoLog
videoLog
 protected VideoLog videoLog
  -  Video log, for recording or playing a game.
 
 live
live
 protected boolean live
  -  Live from the camera.
 
 record
record
 protected boolean record
  -  Recording to a file.
 
 play
play
 protected boolean play
  -  Playing from a file.
 
 cameraFrame
cameraFrame
 protected CameraFrame cameraFrame
  -  Current frame from the camera.
 
   
 Camera
Camera
 public Camera(boolean driver)
  -  Setup the camera.
   
- 
    -  Parameters:
    
-  driver - load the driver or not.
  
 
   
 cameraInfo
cameraInfo
 public void cameraInfo()
  -  Setup the camera information.
 
 toString
toString
 public String toString()
  -  Get the name of the camera.
   
- 
    -  Returns:
    
-  camera's name.
    
-  Overrides:
    
-  toString in class Object
  
 
 grabFrame
grabFrame
 public void grabFrame(BufferInfo buffinfo)
  -  Grab a frame from the camera.
   
- 
    -  Parameters:
    
-  buffinfo - the buffer to store the frame in.
  
 
 nextBall
nextBall
 public synchronized void nextBall()
  -  Go to the next log video log file.
 
 Init
Init
 protected native void Init()
  -  Initalize the camera.
 
 GrabFrame
GrabFrame
 public native void GrabFrame(byte buffer[])
  -  Grab the frame from the camera.
   
- 
    -  Parameters:
    
-  buffer - the location to store the frame.
  
 
 FrameResize
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
xSize
 public int xSize()
  -  Get the frame's x size.
   
- 
    -  Returns:
    
-  x size.
  
 
 ySize
ySize
 public int ySize()
  -  Get the frame's y size.
   
- 
    -  Returns:
    
-  y size.
  
 
 frameSize
frameSize
 public int frameSize()
  -  Get the number of bytes for the frame.
   
- 
    -  Returns:
    
-  number of bytes for this frame.
  
 
 zoomSize
zoomSize
 public int zoomSize()
  -  Get the frame's zoom size.
   
- 
    -  Returns:
    
-  zoom size.
  
 
 XOffset
XOffset
 public int XOffset()
  -  Get the frame's x offset.
   
- 
    -  Returns:
    
-  x offset.
  
 
 YOffset
YOffset
 public int YOffset()
  -  Get the frame's y offset.
   
- 
    -  Returns:
    
-  y offset.
  
 
 resizeFrame
resizeFrame
 public void resizeFrame(BufferInfo buffinfo)
  -  Resize the frame.
   
- 
    -  Parameters:
    
-  buffinfo - with frame size to resize.
  
 
 transfer
transfer
 public int transfer()
  -  Get the transfer size.
   
- 
    -  Returns:
    
-  transfer size.
  
 
 brightness
brightness
 public int brightness()
  -  Get brightness.
   
- 
    -  Returns:
    
-  brightness.
  
 
 contrast
contrast
 public int contrast()
  -  Get contrast.
   
- 
    -  Returns:
    
-  contrast.
  
 
 imageSize
imageSize
 public Dimension imageSize()
  -  Image dimensions
   
- 
    -  Returns:
    
-  image dimensions.
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index