pylonsrc: added property state flags

This commit is contained in:
mrstecklo 2020-11-16 13:44:11 +03:00 committed by joshdoe
parent 6b863f3460
commit f5d65c4a1a
2 changed files with 649 additions and 503 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,9 +37,16 @@ int gst_pylonsrc_unref_pylon_environment();
enum { enum {
GST_PYLONSRC_NUM_CAPTURE_BUFFERS = 10, GST_PYLONSRC_NUM_CAPTURE_BUFFERS = 10,
GST_PYLONSRC_NUM_AUTO_FEATURES = 3, GST_PYLONSRC_NUM_AUTO_FEATURES = 3,
GST_PYLONSRC_NUM_LIMITED_FEATURES = 2 GST_PYLONSRC_NUM_LIMITED_FEATURES = 2,
GST_PYLONSRC_NUM_PROPS = 64
}; };
typedef enum _GST_PYLONSRC_PROPERTY_STATE {
GST_PYLONSRC_PROPST_DEFAULT,
GST_PYLONSRC_PROPST_NOT_SET,
GST_PYLONSRC_PROPST_SET
} GST_PYLONSRC_PROPERTY_STATE;
typedef struct _GstPylonSrcLimitedFeature { typedef struct _GstPylonSrcLimitedFeature {
double lower; double lower;
double upper; double upper;
@ -96,6 +103,7 @@ struct _GstPylonSrc
gint offset[2]; gint offset[2];
gchar *pixel_format, *sensorMode, *lightsource, *reset, *autoprofile, *transformationselector, *userid; gchar *pixel_format, *sensorMode, *lightsource, *reset, *autoprofile, *transformationselector, *userid;
gchar* autoFeature[GST_PYLONSRC_NUM_AUTO_FEATURES]; gchar* autoFeature[GST_PYLONSRC_NUM_AUTO_FEATURES];
GST_PYLONSRC_PROPERTY_STATE propFlags[GST_PYLONSRC_NUM_PROPS];
}; };
struct _GstPylonSrcClass struct _GstPylonSrcClass