diff options
author | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-07 17:28:07 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@ipe.fzk.de> | 2011-03-07 17:28:07 +0100 |
commit | 923dab046564bdfcd7267281b99462f6d866d311 (patch) | |
tree | 84ae5326b05d0ca069aafc7ebc231e24d9a19a4a /src/uca.h | |
parent | 1b9734e1c19a7d3149013005502349eb2b9cd402 (diff) | |
download | libuca-923dab046564bdfcd7267281b99462f6d866d311.tar.gz libuca-923dab046564bdfcd7267281b99462f6d866d311.tar.bz2 libuca-923dab046564bdfcd7267281b99462f6d866d311.tar.xz libuca-923dab046564bdfcd7267281b99462f6d866d311.zip |
Add property listing
Diffstat (limited to 'src/uca.h')
-rw-r--r-- | src/uca.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -93,6 +93,7 @@ enum uca_property_ids { #define UCA_CORRECT_HOTPIXEL 0x02 #define UCA_CORRECT_GAIN 0x04 + /** * \brief Describe a property used by cameras and frame grabbers */ @@ -100,13 +101,14 @@ struct uca_property_t { const char *name; enum uca_unit { - uca_pixel, + uca_pixel = 0, uca_bits, uca_ns, uca_us, uca_ms, uca_s, uca_rows, + uca_fps, uca_na } unit; @@ -117,10 +119,12 @@ struct uca_property_t { } type; }; +extern const char *uca_unit_map[]; /**< maps unit numbers to corresponding strings */ + enum uca_errors { UCA_NO_ERROR = 0, UCA_ERR_GRABBER_NOT_FOUND, - UCA_ERR_CAM_NOT_FOUND, /**< camera probing or initialization failed */ + UCA_ERR_CAM_NOT_FOUND, /**< camera probing or initialization failed */ UCA_ERR_PROP_INVALID, /**< the requested property is not supported by the camera */ UCA_ERR_PROP_GENERAL, /**< error occured reading/writing the property */ UCA_ERR_PROP_VALUE_OUT_OF_RANGE, /**< error occured writing the property */ |