|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectvxp.PixelSource
vxp.JMFLivePushPixelSource
| Field Summary | |
javax.media.CaptureDeviceInfo |
captureDeviceInfo
|
javax.media.Buffer |
imageBuffer
|
javax.media.MediaLocator |
mediaLocator
|
| Fields inherited from class vxp.PixelSource |
kHeight, kWidth, vidWidth |
| Constructor Summary | |
JMFLivePushPixelSource(javax.swing.JFrame _f,
int pw,
int ph)
|
|
| Method Summary | |
java.lang.String |
changeSource(int whichSource)
|
void |
controllerUpdate(javax.media.ControllerEvent event)
|
java.awt.image.BufferedImage |
getImage()
Gives you a bufferedImage from the live camera. |
int[] |
getPixel(int x,
int y)
This returns a 3 element array which contains the values for Red Green and Blue at the specified x,y coordinate. |
void |
getPixelArray(int[] _newPixels)
This tickles tickles the video and puts the pixels in an int array that you supplied . |
boolean |
grabFrame()
This gives you a fresh frame for getPixel and setPixel to operate on. |
void |
idleIt()
This tickles whatever is suppling the video to give up fresh pixels. |
void |
idleIt(int numberOfTimes)
This tickles whatever is suppling the video, with DV cameras you may have to tickle them many times between every frames to get rid of a lag. |
void |
killSession()
Be sure to call this when you close or destroy your main window so a connection to your camera is not left hanging . |
void |
videoSettings()
Gives you a pop up dialog box for the video digitizer driver. |
| Methods inherited from class vxp.PixelSource |
addVideoListener, getArray, getColorOrder, getDeviceList, getDeviceName, getImage, getPixel, getPixel, getPixelArray, getPixelBrightness, getVideoHeight, getVideoWidth, setDevice, setDevice, setImageType, setImageType, setInput, setNativeArrays, setPixel, setPixel, setPixel, setPixel, tellVideoListeners |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public javax.media.CaptureDeviceInfo captureDeviceInfo
public javax.media.MediaLocator mediaLocator
public javax.media.Buffer imageBuffer
| Constructor Detail |
public JMFLivePushPixelSource(javax.swing.JFrame _f,
int pw,
int ph)
| Method Detail |
public void idleIt()
idleIt in class PixelSourcepublic void idleIt(int numberOfTimes)
public java.awt.image.BufferedImage getImage()
getImage in class PixelSourcepublic void getPixelArray(int[] _newPixels)
getPixelArray in class PixelSource_newPixels - array that you want the pixel values placed intopublic boolean grabFrame()
grabFrame in class PixelSourcepublic void killSession()
killSession in class PixelSource
public int[] getPixel(int x,
int y)
getPixel in class PixelSourcex - y -
public void controllerUpdate(javax.media.ControllerEvent event)
controllerUpdate in interface javax.media.ControllerListenerpublic java.lang.String changeSource(int whichSource)
public void videoSettings()
PixelSource
videoSettings in class PixelSource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||