camera
[Interface specifications]


Detailed Description

Camera imagery.

The camera interface is used to see what the camera sees. It is intended primarily for server-side (i.e., driver-to-driver) data transfers, rather than server-to-client transfers. Image data can be in may formats (see below), but is always packed (i.e., pixel rows are byte-aligned).

#define PLAYER_CAMERA_DATA_STATE   1
 Data subtype: state.
#define PLAYER_CAMERA_IMAGE_WIDTH   1920
 Maximum image width, in pixels.
#define PLAYER_CAMERA_IMAGE_HEIGHT   1080
 Maximum image height, in pixels.
#define PLAYER_CAMERA_IMAGE_SIZE   (PLAYER_CAMERA_IMAGE_WIDTH * PLAYER_CAMERA_IMAGE_HEIGHT * 4)
 Maximum image size, in pixels.
#define PLAYER_CAMERA_FORMAT_MONO8   1
 Image format : 8-bit monochrome.
#define PLAYER_CAMERA_FORMAT_MONO16   2
 Image format : 16-bit monochrome (network byte order).
#define PLAYER_CAMERA_FORMAT_RGB565   4
 Image format : 16-bit color (5 bits R, 6 bits G, 5 bits B).
#define PLAYER_CAMERA_FORMAT_RGB888   5
 Image format : 24-bit color (8 bits R, 8 bits G, 8 bits B).
#define PLAYER_CAMERA_COMPRESS_RAW   0
 Compression method: raw.
#define PLAYER_CAMERA_COMPRESS_JPEG   1
 Compression method: jpeg.
typedef player_camera_data player_camera_data_t
 Data: state (PLAYER_CAMERA_DATA_STATE).

Last updated 12 September 2005 21:38:45