7 #ifndef YARP_DEV_IFRAMEGRABBERCONTROLS_H
8 #define YARP_DEV_IFRAMEGRABBERCONTROLS_H
76 #ifndef YARP_NO_DEPRECATED
84 virtual
bool setBrightness(
double v) {
return false; }
91 virtual
bool setExposure(
double v) {
return false; }
98 virtual
bool setSharpness(
double v) {
return false; }
106 virtual
bool setWhiteBalance(
double blue,
double red) {
return false; }
113 virtual
bool setHue(
double v) {
return false; }
120 virtual
bool setSaturation(
double v) {
return false; }
127 virtual
bool setGamma(
double v) {
return false; }
134 virtual
bool setShutter(
double v) {
return false; }
141 virtual
bool setGain(
double v) {
return false; }
148 virtual
bool setIris(
double v) {
return false; }
156 virtual
double getBrightness() {
return -1.0; }
162 virtual
double getExposure() {
return -1.0; }
168 virtual
double getSharpness() {
return -1.0; }
176 virtual
bool getWhiteBalance(
double &blue,
double &red) {
return false; }
182 virtual
double getHue() {
return -1.0; }
188 virtual
double getSaturation() {
return -1.0; }
194 virtual
double getGamma() {
return -1.0; }
200 virtual
double getShutter() {
return -1.0; }
206 virtual
double getGain() {
return -1.0; }
212 virtual
double getIris() {
return -1.0; }
227 return "bus type undefined";
276 virtual bool setFeature(
int feature,
double value1,
double value2)=0;
285 virtual bool getFeature(
int feature,
double *value1,
double *value2)=0;
293 virtual bool hasOnOff(
int feature,
bool *HasOnOff)=0;
317 virtual bool hasAuto(
int feature,
bool *hasAuto)=0;
@ YARP_FEATURE_CAPTURE_SIZE
@ YARP_FEATURE_FRAME_RATE
@ YARP_FEATURE_BRIGHTNESS
@ YARP_FEATURE_WHITE_BALANCE
@ YARP_FEATURE_CAPTURE_QUALITY
@ YARP_FEATURE_TRIGGER_DELAY
@ YARP_FEATURE_SATURATION
@ YARP_FEATURE_WHITE_SHADING
@ YARP_FEATURE_TEMPERATURE
@ YARP_FEATURE_OPTICAL_FILTER
Control interface for frame grabber devices.
virtual bool setFeature(int feature, double value)=0
Set the requested feature to a value (saturation, brightness ...
virtual ~IFrameGrabberControls()
Destructor.
virtual bool setOnePush(int feature)=0
Set the requested feature to a value (saturation, brightness ...
virtual bool getFeature(int feature, double *value)=0
Get the current value for the requested feature.
virtual bool setFeature(int feature, double value1, double value2)=0
Set the requested feature to a value using 2 params (like white balance)
virtual bool hasManual(int feature, bool *hasManual)=0
Check if the requested feature has the 'manual' mode.
virtual bool setMode(int feature, FeatureMode mode)=0
Set the requested mode for the feature.
std::string busType2String(BusType type)
virtual bool hasOnOff(int feature, bool *HasOnOff)=0
Check if the camera has the ability to turn on/off the requested feature.
virtual bool hasAuto(int feature, bool *hasAuto)=0
Check if the requested feature has the 'auto' mode.
virtual bool getMode(int feature, FeatureMode *mode)=0
Get the current mode for the feature.
virtual bool getFeature(int feature, double *value1, double *value2)=0
Get the current value for the requested feature.
virtual bool getCameraDescription(CameraDescriptor *camera)=0
Get a basic description of the camera hw.
virtual bool getActive(int feature, bool *isActive)=0
Get the current status of the feature, on or off.
FeatureMode toFeatureMode(bool _auto)
virtual bool setActive(int feature, bool onoff)=0
Set the requested feature on or off.
virtual bool hasFeature(int feature, bool *hasFeature)=0
Check if camera has the requested feature (saturation, brightness ...
virtual bool hasOnePush(int feature, bool *hasOnePush)=0
Check if the requested feature has the 'onePush' mode.
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
The main, catch-all namespace for YARP.
std::string deviceDescription