From 42e3c64fa57039d7673c61f909b5fd40a437bdfd Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 19 Apr 2012 16:45:11 +0200 Subject: Export base properties and string array The benefits are two-fold: Camera implementations "know" which base properties exist without looking into the implementation source. Moreover, they can re-use the property strings rather than stating them over and over again. These change should reduce potential c&p errors. --- src/uca-camera.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/uca-camera.h') diff --git a/src/uca-camera.h b/src/uca-camera.h index c755fe6..c50ca85 100644 --- a/src/uca-camera.h +++ b/src/uca-camera.h @@ -44,6 +44,33 @@ typedef struct _UcaCamera UcaCamera; typedef struct _UcaCameraClass UcaCameraClass; typedef struct _UcaCameraPrivate UcaCameraPrivate; +enum { + PROP_0 = 0, + PROP_SENSOR_WIDTH, + PROP_SENSOR_HEIGHT, + PROP_SENSOR_BITDEPTH, + PROP_SENSOR_HORIZONTAL_BINNING, + PROP_SENSOR_HORIZONTAL_BINNINGS, + PROP_SENSOR_VERTICAL_BINNING, + PROP_SENSOR_VERTICAL_BINNINGS, + PROP_SENSOR_MAX_FRAME_RATE, + PROP_EXPOSURE_TIME, + PROP_ROI_X, + PROP_ROI_Y, + PROP_ROI_WIDTH, + PROP_ROI_HEIGHT, + PROP_HAS_STREAMING, + PROP_HAS_CAMRAM_RECORDING, + + /* These properties are handled internally */ + PROP_TRANSFER_ASYNCHRONOUSLY, + PROP_IS_RECORDING, + PROP_IS_READOUT, + N_BASE_PROPERTIES +}; + +const gchar *uca_camera_props[N_BASE_PROPERTIES]; + /** * UcaCameraGrabFunc: * @data: a pointer to the raw data -- cgit v1.2.3