roomba.roombanetwork.services.image.isight
Class VideoCapture

java.lang.Object
  extended by roomba.roombanetwork.services.image.isight.VideoCapture

public class VideoCapture
extends java.lang.Object

Captures video from a quicktime resource

Author:
Drew Housten

Constructor Summary
VideoCapture(int width, int height)
          Constructor - Starts the video capture with a specified width and height
 
Method Summary
 void dispose()
          Should be called when the video is no longer needed
 int getHeight()
          Gets the height of the video image
 java.awt.Image getNextImage()
          Gets the latest image from the grabber
 void getNextPixels(int[] pixels)
          Gets the next set of pixels
 int getWidth()
          Gets the width of the video image
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoCapture

public VideoCapture(int width,
                    int height)
             throws java.lang.Exception
Constructor - Starts the video capture with a specified width and height

Parameters:
width - The width of the video
height - The height of the video
Throws:
java.lang.Exception
Method Detail

dispose

public void dispose()
Should be called when the video is no longer needed


getWidth

public int getWidth()
Gets the width of the video image

Returns:
The width of the video image

getHeight

public int getHeight()
Gets the height of the video image

Returns:
The height of the video image

getNextPixels

public void getNextPixels(int[] pixels)
                   throws java.lang.Exception
Gets the next set of pixels

Parameters:
pixels - The array to fill in
Throws:
java.lang.Exception

getNextImage

public java.awt.Image getNextImage()
                            throws java.lang.Exception
Gets the latest image from the grabber

Returns:
The latest image
Throws:
java.lang.Exception