j2d.video.producers
Class VideoProcessor

java.lang.Object
  extended by j2d.video.producers.VideoProcessor
All Implemented Interfaces:
ImageListener, CameraSource, VideoProcessorInterface

public class VideoProcessor
extends java.lang.Object
implements VideoProcessorInterface


Constructor Summary
VideoProcessor(ImageProcessorInterface ipi)
           
 
Method Summary
 void add(ImageListener il)
          Images captured by the camera are sent to the ImageListeners.
 void close()
          Close the camera source.
 java.awt.Image getImage()
          used to get the image for asynchronized capture and initialization.
 boolean open()
          Open the camera source for subsequent use via call-backs.
 void update(java.awt.Image img)
          Used send the image to the listening application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoProcessor

public VideoProcessor(ImageProcessorInterface ipi)
Method Detail

add

public void add(ImageListener il)
Description copied from interface: CameraSource
Images captured by the camera are sent to the ImageListeners.

Specified by:
add in interface CameraSource

update

public void update(java.awt.Image img)
Description copied from interface: ImageListener
Used send the image to the listening application.

Specified by:
update in interface ImageListener

open

public boolean open()
Description copied from interface: CameraSource
Open the camera source for subsequent use via call-backs.

Specified by:
open in interface CameraSource
Returns:
true if the camera source was successfully opened.

close

public void close()
Description copied from interface: CameraSource
Close the camera source. Calling close on a closed CameraSource is permitted but has no effect. The camera source may be reopened after being closed.

Specified by:
close in interface CameraSource

getImage

public java.awt.Image getImage()
Description copied from interface: CameraSource
used to get the image for asynchronized capture and initialization.

Specified by:
getImage in interface CameraSource