kaos.robots.util.jmf
Class JMFCamera
java.lang.Object
kaos.robots.util.jmf.JMFCamera
- All Implemented Interfaces:
- VideoCamera
public class JMFCamera
- extends java.lang.Object
- implements VideoCamera
Field Summary |
BufferToImage |
btoi
|
Buffer |
buf
|
CaptureDeviceInfo |
di
|
java.awt.Image |
img
|
MediaLocator |
ml
|
static Player |
player
|
VideoFormat |
vf
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
player
public static Player player
di
public CaptureDeviceInfo di
ml
public MediaLocator ml
buf
public Buffer buf
img
public java.awt.Image img
vf
public VideoFormat vf
btoi
public BufferToImage btoi
JMFCamera
public JMFCamera()
throws java.lang.Exception
- Throws:
java.lang.Exception
initialize
public void initialize()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRGBDevices
public void getRGBDevices()
GrabFrameAsBuffer
public SerializableBufferImage GrabFrameAsBuffer()
- Description copied from interface:
VideoCamera
- CaptureImage
- Specified by:
GrabFrameAsBuffer
in interface VideoCamera
- Returns:
- Buffer buffer of image
playerclose
public static void playerclose()
saveJPG
public static void saveJPG(java.awt.Image img,
java.lang.String s)
main
public static void main(java.lang.String[] args)