summaryrefslogtreecommitdiffstats
path: root/src/uca-cam.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:47:10 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-01 09:47:10 +0100
commit9b65b8182769c7cf993e256444d331ffec9f2d02 (patch)
treec17c373c939c9bca852f72ca958c2c511eea7bb6 /src/uca-cam.h
parenta92101a277aed63224e1bd2077c99826e9e35f1d (diff)
downloaduca-9b65b8182769c7cf993e256444d331ffec9f2d02.tar.gz
uca-9b65b8182769c7cf993e256444d331ffec9f2d02.tar.bz2
uca-9b65b8182769c7cf993e256444d331ffec9f2d02.tar.xz
uca-9b65b8182769c7cf993e256444d331ffec9f2d02.zip
Documentation added
Diffstat (limited to 'src/uca-cam.h')
-rw-r--r--src/uca-cam.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/uca-cam.h b/src/uca-cam.h
index db780da..5710b0a 100644
--- a/src/uca-cam.h
+++ b/src/uca-cam.h
@@ -12,6 +12,11 @@ enum uca_property_ids;
/*
* --- non-virtual methods ----------------------------------------------------
*/
+
+/**
+ * \brief Allocates buffer memory for the internal frame grabber
+ * \param[in] n_buffers Number of sub-buffers with size frame_width*frame_height
+ */
uint32_t uca_cam_alloc(struct uca_camera_t *cam, uint32_t n_buffers);
enum uca_cam_state uca_cam_get_state(struct uca_camera_t *cam);
@@ -47,11 +52,25 @@ typedef uint32_t (*uca_cam_set_property) (struct uca_camera_t *cam, enum uca_pro
*/
typedef uint32_t (*uca_cam_get_property) (struct uca_camera_t *cam, enum uca_property_ids property, void *data);
+/**
+ * \brief Begin recording
+ *
+ * Usually this also involves the frame acquisition of the frame grabber but is
+ * hidden by this function.
+ */
typedef uint32_t (*uca_cam_start_recording) (struct uca_camera_t *cam);
typedef uint32_t (*uca_cam_stop_recording) (struct uca_camera_t *cam);
-typedef uint32_t (*uca_cam_grab) (struct uca_camera_t *cam, char *buffer, size_t n_bytes);
+/**
+ * \brief Grab one image from the camera
+ *
+ * The grabbing involves a memory copy because we might have to decode the image
+ * coming from the camera, which the frame grabber is not able to do.
+ *
+ * \param[in] buffer Destination buffer
+ */
+typedef uint32_t (*uca_cam_grab) (struct uca_camera_t *cam, char *buffer);
enum uca_cam_state {