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_t * | playerc_camera_create (playerc_client_t *client, int index) |
Create a camera proxy. More... | |
PLAYERC_EXPORT void | playerc_camera_destroy (playerc_camera_t *device) |
Destroy a camera proxy. More... | |
PLAYERC_EXPORT int | playerc_camera_subscribe (playerc_camera_t *device, int access) |
Subscribe to the camera device. More... | |
PLAYERC_EXPORT int | playerc_camera_unsubscribe (playerc_camera_t *device) |
Un-subscribe from the camera device. More... | |
PLAYERC_EXPORT void | playerc_camera_decompress (playerc_camera_t *device) |
Decompress the image (modifies the current proxy data). More... | |
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. More... | |
PLAYERC_EXPORT int | playerc_camera_get_source (playerc_camera_t *device) |
Get source channel (sets norm and source fields in the current proxy data). More... | |
PLAYERC_EXPORT int | playerc_camera_get_image (playerc_camera_t *device) |
Force to get current image. More... | |
PLAYERC_EXPORT void | playerc_camera_copy_image (playerc_camera_t *device, void *dst, size_t dst_size) |
Copy image to some pre-allocated place. More... | |
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. More... | |
Function Documentation
◆ playerc_camera_copy_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_camera_create()
PLAYERC_EXPORT playerc_camera_t* playerc_camera_create | ( | playerc_client_t * | client, |
int | index | ||
) |
Create a camera proxy.
◆ playerc_camera_decompress()
PLAYERC_EXPORT void playerc_camera_decompress | ( | playerc_camera_t * | device | ) |
Decompress the image (modifies the current proxy data).
◆ playerc_camera_destroy()
PLAYERC_EXPORT void playerc_camera_destroy | ( | playerc_camera_t * | device | ) |
Destroy a camera proxy.
◆ playerc_camera_get_image()
PLAYERC_EXPORT int playerc_camera_get_image | ( | playerc_camera_t * | device | ) |
Force to get current image.
◆ playerc_camera_get_pixel_component()
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_camera_get_source()
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_camera_set_source()
PLAYERC_EXPORT int playerc_camera_set_source | ( | playerc_camera_t * | device, |
int | source, | ||
const char * | norm | ||
) |
Set source channel.
◆ playerc_camera_subscribe()
PLAYERC_EXPORT int playerc_camera_subscribe | ( | playerc_camera_t * | device, |
int | access | ||
) |
Subscribe to the camera device.
◆ playerc_camera_unsubscribe()
PLAYERC_EXPORT int playerc_camera_unsubscribe | ( | playerc_camera_t * | device | ) |
Un-subscribe from the camera device.