summaryrefslogtreecommitdiffstats
path: root/src/uca-grabber.h
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-14 11:40:54 +0100
committerMatthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de>2011-03-14 11:40:54 +0100
commitb1b747d9f0f1065a6078dfc788fff60109fc007e (patch)
tree1b79b8d46a0742907d696eb5ed418d3e2cd942c7 /src/uca-grabber.h
parentd306da6a22d6f3dab9a3c3384896f6b29948e492 (diff)
downloaduca-b1b747d9f0f1065a6078dfc788fff60109fc007e.tar.gz
uca-b1b747d9f0f1065a6078dfc788fff60109fc007e.tar.bz2
uca-b1b747d9f0f1065a6078dfc788fff60109fc007e.tar.xz
uca-b1b747d9f0f1065a6078dfc788fff60109fc007e.zip
Get rid of SiSo-dependant grabber constants
Diffstat (limited to 'src/uca-grabber.h')
-rw-r--r--src/uca-grabber.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/uca-grabber.h b/src/uca-grabber.h
index 6ae7e8e..bf6bf31 100644
--- a/src/uca-grabber.h
+++ b/src/uca-grabber.h
@@ -3,6 +3,30 @@
#include <stdbool.h>
+enum uca_grabber_constants {
+ UCA_GRABBER_INVALID = -1,
+ /* properties */
+ UCA_GRABBER_WIDTH = 0,
+ UCA_GRABBER_HEIGHT,
+ UCA_GRABBER_WIDTH_MAX,
+ UCA_GRABBER_WIDTH_MIN,
+ UCA_GRABBER_OFFSET_X,
+ UCA_GRABBER_OFFSET_Y,
+ UCA_GRABBER_EXPOSURE,
+ UCA_GRABBER_FORMAT,
+ UCA_GRABBER_TRIGGER_MODE,
+ UCA_GRABBER_CAMERALINK_TYPE,
+
+ /* values */
+ UCA_FORMAT_GRAY8,
+ UCA_FORMAT_GRAY16,
+
+ UCA_CL_8BIT_FULL_8,
+ UCA_CL_8BIT_FULL_10,
+
+ UCA_TRIGGER_FREERUN
+};
+
/*
* --- virtual methods --------------------------------------------------------
*/
@@ -24,14 +48,14 @@ typedef uint32_t (*uca_grabber_destroy) (struct uca_grabber_t *grabber);
* \return UCA_ERR_PROP_INVALID if property is not supported on the frame
* grabber or UCA_ERR_PROP_VALUE_OUT_OF_RANGE if value cannot be set.
*/
-typedef uint32_t (*uca_grabber_set_property) (struct uca_grabber_t *grabber, enum uca_property_ids property, void *data);
+typedef uint32_t (*uca_grabber_set_property) (struct uca_grabber_t *grabber, enum uca_grabber_constants prop, void *data);
/**
* \brief Set a property
* \param[in] property_name Name of the property as defined in XXX
* \return UCA_ERR_PROP_INVALID if property is not supported on the frame grabber
*/
-typedef uint32_t (*uca_grabber_get_property) (struct uca_grabber_t *grabber, enum uca_property_ids property, void *data);
+typedef uint32_t (*uca_grabber_get_property) (struct uca_grabber_t *grabber, enum uca_grabber_constants prop, void *data);
/**
* \brief Allocate buffers with current width, height and bitdepth