7#ifndef YARP_DEV_IFRAMEGRABBERCONTROLS_H
8#define YARP_DEV_IFRAMEGRABBERCONTROLS_H
75#ifndef YARP_NO_DEPRECATED
83 virtual
bool setBrightness(
double v) {
return false; }
90 virtual
bool setExposure(
double v) {
return false; }
97 virtual
bool setSharpness(
double v) {
return false; }
105 virtual
bool setWhiteBalance(
double blue,
double red) {
return false; }
112 virtual
bool setHue(
double v) {
return false; }
119 virtual
bool setSaturation(
double v) {
return false; }
126 virtual
bool setGamma(
double v) {
return false; }
133 virtual
bool setShutter(
double v) {
return false; }
140 virtual
bool setGain(
double v) {
return false; }
147 virtual
bool setIris(
double v) {
return false; }
155 virtual
double getBrightness() {
return -1.0; }
161 virtual
double getExposure() {
return -1.0; }
167 virtual
double getSharpness() {
return -1.0; }
175 virtual
bool getWhiteBalance(
double &blue,
double &red) {
return false; }
181 virtual
double getHue() {
return -1.0; }
187 virtual
double getSaturation() {
return -1.0; }
193 virtual
double getGamma() {
return -1.0; }
199 virtual
double getShutter() {
return -1.0; }
205 virtual
double getGain() {
return -1.0; }
211 virtual
double getIris() {
return -1.0; }
226 return "bus type undefined";
275 virtual bool setFeature(
int feature,
double value1,
double value2)=0;
284 virtual bool getFeature(
int feature,
double *value1,
double *value2)=0;
292 virtual bool hasOnOff(
int feature,
bool *HasOnOff)=0;
316 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...
For streams capable of holding different kinds of content, check what they actually have.
std::string deviceDescription