camera

The camera proxy can be used to get images from a camera. More...


Detailed Description

The camera proxy can be used to get images from a camera.

Classes

struct  playerc_camera_t
 Camera proxy data. More...

Functions

PLAYERC_EXPORT playerc_camera_tplayerc_camera_create (playerc_client_t *client, int index)
 Create a camera proxy.
PLAYERC_EXPORT void playerc_camera_destroy (playerc_camera_t *device)
 Destroy a camera proxy.
PLAYERC_EXPORT int playerc_camera_subscribe (playerc_camera_t *device, int access)
 Subscribe to the camera device.
PLAYERC_EXPORT int playerc_camera_unsubscribe (playerc_camera_t *device)
 Un-subscribe from the camera device.
PLAYERC_EXPORT void playerc_camera_decompress (playerc_camera_t *device)
 Decompress the image (modifies the current proxy data).
PLAYERC_EXPORT void playerc_camera_save (playerc_camera_t *device, const char *filename)
 Saves the image to disk as a .ppm.
PLAYERC_EXPORT int playerc_camera_set_source (playerc_camera_t *device, int source, const char *norm)
 Set source channel.
PLAYERC_EXPORT int playerc_camera_get_source (playerc_camera_t *device)
 Get source channel (sets norm and source fields in the current proxy data).
PLAYERC_EXPORT int playerc_camera_get_image (playerc_camera_t *device)
 Force to get current image.
PLAYERC_EXPORT void playerc_camera_copy_image (playerc_camera_t *device, void *dst, size_t dst_size)
 Copy image to some pre-allocated place.
PLAYERC_EXPORT unsigned playerc_camera_get_pixel_component (playerc_camera_t *device, unsigned int x, unsigned int y, int component)
 Get given component of given pixel.

Function Documentation

PLAYERC_EXPORT void playerc_camera_copy_image ( playerc_camera_t device,
void *  dst,
size_t  dst_size 
)

Copy image to some pre-allocated place.

PLAYERC_EXPORT playerc_camera_t* playerc_camera_create ( playerc_client_t client,
int  index 
)

Create a camera proxy.

PLAYERC_EXPORT void playerc_camera_decompress ( playerc_camera_t device)

Decompress the image (modifies the current proxy data).

PLAYERC_EXPORT void playerc_camera_destroy ( playerc_camera_t device)

Destroy a camera proxy.

PLAYERC_EXPORT int playerc_camera_get_image ( playerc_camera_t device)

Force to get current image.

PLAYERC_EXPORT unsigned playerc_camera_get_pixel_component ( playerc_camera_t device,
unsigned int  x,
unsigned int  y,
int  component 
)

Get given component of given pixel.

PLAYERC_EXPORT int playerc_camera_get_source ( playerc_camera_t device)

Get source channel (sets norm and source fields in the current proxy data).

PLAYERC_EXPORT int playerc_camera_set_source ( playerc_camera_t device,
int  source,
const char *  norm 
)

Set source channel.

PLAYERC_EXPORT int playerc_camera_subscribe ( playerc_camera_t device,
int  access 
)

Subscribe to the camera device.

PLAYERC_EXPORT int playerc_camera_unsubscribe ( playerc_camera_t device)

Un-subscribe from the camera device.