|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectvxp.PixelSource
vxp.JMFLivePixelSource
| Field Summary | |
javax.media.CaptureDeviceInfo |
captureDeviceInfo
|
javax.media.Buffer |
imageBuffer
|
javax.media.MediaLocator |
mediaLocator
|
static javax.media.Player |
mediaPlayer
|
| Fields inherited from class vxp.PixelSource |
kHeight, kWidth, vidWidth |
| Constructor Summary | |
JMFLivePixelSource(int pw,
int ph,
int _frameRate)
|
|
| Method Summary | |
java.lang.String |
changeSource(int whichSource)
|
java.awt.image.BufferedImage |
getImage()
Gives you a bufferedImage from the live camera. |
void |
getImage(java.awt.image.BufferedImage _bi)
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. |
int[] |
getPixelArray()
This tickles tickles the video and puts the pixels in an int array that you supplied . |
void |
getPixelArray(int[] _newPixels)
This tickles tickles the video and puts the pixels in an int array that you supplied . |
int[] |
getPixelBrightness(int x,
int y)
|
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 |
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 |
setPixel(int[] inputArray,
int _offset,
int red,
int green,
int blue,
int alpha)
Sets the color of a given pixel within a supplied array but uses a precomputed offset instead of the x and y. |
void |
setPixel(int[] inputArray,
int x,
int y,
int red,
int green,
int blue,
int alpha)
Sets the color of a given pixel within an array of pixels. |
void |
setPixel(int _offset,
int red,
int green,
int blue,
int alpha)
Sets the color of a given pixel within the current frame but uses a precomputed offset instead of the x and y. |
void |
setPixel(int x,
int y,
int red,
int green,
int blue,
int alpha)
Sets the color of a pixel in the current frame of video at a given location. |
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, getPixel, getPixel, getVideoHeight, getVideoWidth, setDevice, setDevice, setImageType, setImageType, setInput, setNativeArrays, tellVideoListeners |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static javax.media.Player mediaPlayer
public javax.media.CaptureDeviceInfo captureDeviceInfo
public javax.media.MediaLocator mediaLocator
public javax.media.Buffer imageBuffer
| Constructor Detail |
public JMFLivePixelSource(int pw,
int ph,
int _frameRate)
| Method Detail |
public void idleIt()
idleIt in class PixelSourcepublic java.awt.image.BufferedImage getImage()
getImage in class PixelSourcepublic void getImage(java.awt.image.BufferedImage _bi)
getImage in class PixelSource_bi - the BufferedImage into which you would like the video image placed.public int[] getPixelArray()
getPixelArray 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 int[] getPixelBrightness(int x,
int y)
getPixelBrightness in class PixelSource
public void setPixel(int x,
int y,
int red,
int green,
int blue,
int alpha)
setPixel in class PixelSourcex - y - red - green - blue - alpha -
public void setPixel(int[] inputArray,
int x,
int y,
int red,
int green,
int blue,
int alpha)
setPixel in class PixelSourceinputArray - x - y - red - green - blue - alpha -
public void setPixel(int _offset,
int red,
int green,
int blue,
int alpha)
setPixel in class PixelSource_offset - red - green - blue - alpha -
public void setPixel(int[] inputArray,
int _offset,
int red,
int green,
int blue,
int alpha)
setPixel in class PixelSourceinputArray - _offset - red - green - blue - alpha - public 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 | ||||||||||