|
|||||||||
| 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 |
bug_camera_close()
Closes the camera - allowing other processes to access it. |
byte[] |
bug_camera_grab_full()
Grabs a JPEG-encoded full image. |
boolean |
bug_camera_grab_preview(int[] pixelBuffer)
Grabs a raw RGB-encoded preview image. |
int |
bug_camera_open_default()
Calls bug_camera_open with reasonable default values. |
int |
bug_camera_open(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 |
bug_camera_start()
Start acquiring frames. |
int |
bug_camera_stop()
Stop acquiring frames. |
boolean |
is_camera_open()
|
boolean |
is_camera_started()
|
| Field Detail |
|---|
static final java.lang.String DEFAULT_MEDIA_NODE
| Method Detail |
|---|
boolean is_camera_open()
boolean is_camera_started()
int bug_camera_open(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 bug_camera_open_default()
int bug_camera_close()
int bug_camera_start()
int bug_camera_stop()
boolean bug_camera_grab_preview(int[] pixelBuffer)
pixelBuffer - array of size preview width * preview height from
the call to bug_camera_open
byte[] bug_camera_grab_full()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||