|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICamera2Device
An interface for a device that can return images.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_MEDIA_NODE
The default media node to specify when calling bug_camera_open(). |
| Method Summary | |
|---|---|
int |
cameraClose()
Closes the camera - allowing other processes to abug_camera_openccess it. |
int |
cameraOpen(java.lang.String media_node,
int slot_num,
int full_height,
int full_width,
int preview_height,
int preview_width)
Opens a connection with a camera module and configure it. |
int |
cameraOpenDefault()
Calls bug_camera_open with reasonable default values. |
int |
cameraStart()
Start acquiring frames. |
int |
cameraStop()
Stop acquiring frames. |
byte[] |
grabFull()
Grabs a JPEG-encoded full image. |
boolean |
grabPreview(int[] pixelBuffer)
Grabs a raw RGB-encoded preview image. |
boolean |
isCameraOpen()
|
boolean |
isCameraStarted()
|
| Field Detail |
|---|
static final java.lang.String DEFAULT_MEDIA_NODE
| Method Detail |
|---|
boolean isCameraOpen()
boolean isCameraStarted()
int cameraOpen(java.lang.String media_node,
int slot_num,
int full_height,
int full_width,
int preview_height,
int preview_width)
media_node - slot_num - the slot number of the camera module to use, or -1 to use the default (if there's only 1)full_height - height in pixels to capture full images atfull_width - width in pixels to capture full images atpreview_height - height in pixels to capture preview images atpreview_width - width in pixels to capture preview images at
int cameraOpenDefault()
int cameraClose()
int cameraStart()
int cameraStop()
boolean grabPreview(int[] pixelBuffer)
pixelBuffer - array of size preview width * preview height from
the call to open(). You can create such a buffer with:
BufferedImage image = new BufferedImage(imageWidth, imageHeight, BufferedImage.TYPE_INT_RGB);
int [] buf = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();
byte[] grabFull()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||