public interface Video
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_ANY |
static int |
FIELD_INTERLACED |
static int |
FIELD_NONE |
static int |
PIX_FMT_JPEG |
static int |
PIX_FMT_MJPEG |
static int |
PIX_FMT_YUYV |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the webcam, the device will not be available after this call
|
byte[] |
createFrame()
Create a byte array suitable for holding a single video frame
|
int |
getHeight()
return the frame height
|
int |
getWidth()
Return the frame width
|
int |
grabFrame(byte[] frame)
Grab a single frame from the device and store the image into the supplied array
|
void |
open(int w,
int h)
Open the device and make it available for use, specify the desired frame size.
|
void |
open(int w,
int h,
int format,
int field,
int fps)
Open the device and make it available for use, specify the desired frame size.
|
static final int PIX_FMT_MJPEG
static final int PIX_FMT_JPEG
static final int PIX_FMT_YUYV
static final int FIELD_ANY
static final int FIELD_NONE
static final int FIELD_INTERLACED
void open(int w,
int h,
int format,
int field,
int fps)
throws java.io.IOException
w - the desired frame widthh - the desired frame heightformat - desired pixel formatfield - desired field layoutfps - the desired frame ratejava.io.IOExceptionvoid open(int w,
int h)
throws java.io.IOException
w - the desired frame widthh - the desired frame heightjava.io.IOExceptionint grabFrame(byte[] frame)
throws java.io.IOException
frame - array to store the framejava.io.IOExceptionvoid close()
throws java.io.IOException
java.io.IOExceptionbyte[] createFrame()
int getWidth()
int getHeight()