41 #include <dc1394/dc1394.h> 43 #include "camera1394/Camera1394Config.h" 45 typedef camera1394::Camera1394Config
Config;
78 void configure(dc1394feature_t feature,
int *control,
79 double *value,
double *value2=NULL);
80 state_t
getState(dc1394feature_info_t *finfo);
81 void getValues(dc1394feature_info_t *finfo,
82 double *value,
double *value2);
92 inline bool hasMode(dc1394feature_info_t *finfo, dc1394feature_mode_t mode)
94 for (uint32_t i = 0; i < finfo->modes.num; ++i)
96 if (finfo->modes.modes[i] == mode)
109 return DC1394_TRUE ==
feature_set_.feature[DC1394_FEATURE_TRIGGER
110 - DC1394_FEATURE_MIN].available;
116 bool setMode(dc1394feature_info_t *finfo, dc1394feature_mode_t mode);
117 void setPower(dc1394feature_info_t *finfo, dc1394switch_t on_off);
119 int old_control,
int *control,
120 double old_value,
double *value);
122 int old_control,
int *control,
123 double old_value,
double *value,
124 double old_value2,
double *value2);
131 #endif // _FEATURES_H_ boost::shared_ptr< Trigger > trigger_
void setPower(dc1394feature_info_t *finfo, dc1394switch_t on_off)
state_t getState(dc1394feature_info_t *finfo)
dc1394featureset_t feature_set_
that camera's feature set
dc1394camera_t * camera_
current camera
void reconfigure(Config *newconfig)
void updateIfChanged(dc1394feature_t feature, int old_control, int *control, double old_value, double *value)
bool setMode(dc1394feature_info_t *finfo, dc1394feature_mode_t mode)
void getValues(dc1394feature_info_t *finfo, double *value, double *value2)
void configure(dc1394feature_t feature, int *control, double *value, double *value2=NULL)
bool initialize(Config *newconfig)
bool hasMode(dc1394feature_info_t *finfo, dc1394feature_mode_t mode)
camera1394::Camera1394Config Config
libdc1394 triggering modes interface
Camera1394 Features class.
Features(dc1394camera_t *camera)
int state_t
camera1394::Camera1394_* state values
Config oldconfig_
previous Config settings
camera1394::Camera1394Config Config