From 7e1ec3056d1fdb6786c452ba6ed7e978355a98c2 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 20 Oct 2011 17:25:53 +0200 Subject: Add: auto transfer property and readout function --- src/uca.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/uca.h') diff --git a/src/uca.h b/src/uca.h index e1e0ae1..03d0f4f 100644 --- a/src/uca.h +++ b/src/uca.h @@ -108,6 +108,7 @@ enum uca_property_ids { /* grabber specific */ UCA_PROP_GRAB_TIMEOUT, UCA_PROP_GRAB_SYNCHRONOUS, + UCA_PROP_GRAB_AUTO, /* pco.edge specific */ UCA_PROP_TIMESTAMP_MODE, @@ -295,6 +296,7 @@ extern const char *uca_unit_map[]; /**< maps unit numbers to corresponding #define UCA_ERR_NOT_RECORDING 0x10000008 #define UCA_ERR_FRAME_TRANSFER 0x10000009 #define UCA_ERR_ALREADY_REGISTERED 0x1000000A +#define UCA_ERR_NOT_IMPLEMENTED 0x1000000B struct uca_camera_priv; /** @@ -462,6 +464,19 @@ uint32_t uca_cam_register_callback(struct uca_camera *cam, uca_cam_grab_callback */ uint32_t uca_cam_grab(struct uca_camera *cam, char *buffer, void *meta_data); +/** + * \brief Initiate read out for recording based cameras like pco.dimax or + * Photron SAx + * + * This function merely starts read out and requires that recording has stopped + * with uca_cam_stop_recording. To retrieve the image data, you have still have + * to use uca_cam_grab. + * + * \param[in] cam A uca_camera object + * \return Error code + */ +uint32_t uca_cam_readout(struct uca_camera *cam); + #define uca_set_void(p, type, value) { *((type *) p) = (type) value; } #ifdef __cplusplus -- cgit v1.2.3