camera

Camera imagery. More...


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_REQ_GET_SOURCE   1
 Request/reply subtype: get current source.
#define PLAYER_CAMERA_REQ_SET_SOURCE   2
 Request/reply subtype: set current source.
#define PLAYER_CAMERA_REQ_GET_IMAGE   3
 Request/reply subtype: get current image frame.
#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 struct player_camera_data player_camera_data_t
 Data: state (PLAYER_CAMERA_DATA_STATE)
typedef struct player_camera_source player_camera_source_t
 Request/reply: Get/set current source.

Define Documentation

#define PLAYER_CAMERA_FORMAT_MONO16   2

Image format : 16-bit monochrome (network byte order).

Referenced by EpuckDriver::Main().

#define PLAYER_CAMERA_FORMAT_MONO8   1

Image format : 8-bit monochrome.

Referenced by EpuckDriver::Main(), and SphereDriver::MainSetup().

#define PLAYER_CAMERA_FORMAT_RGB565   4

Image format : 16-bit color (5 bits R, 6 bits G, 5 bits B).

Referenced by EpuckDriver::Main().

#define PLAYER_CAMERA_FORMAT_RGB888   5

Image format : 24-bit color (8 bits R, 8 bits G, 8 bits B).

Referenced by CameraUvc::Main(), SphereDriver::MainSetup(), and ImageBase::ProcessMessage().


Typedef Documentation

Request/reply: Get/set current source.

Send a PLAYER_CAMERA_REQ_SET_SOURCE request change image source (assuming your hardware supports it).