7#ifndef YARP_DEV_IFRAMEGRABBERCONTROLS_H
8#define YARP_DEV_IFRAMEGRABBERCONTROLS_H
82 case BusType::BUS_FIREWIRE:
86 case BusType::BUS_USB:
91 return "bus type undefined";
98 return _auto ? FeatureMode::MODE_AUTO : FeatureMode::MODE_MANUAL;
Control interface for frame grabber devices.
virtual yarp::dev::ReturnValue setFeature(cameraFeature_id_t feature, double value)=0
Set the requested feature to a value (saturation, brightness ... )
virtual yarp::dev::ReturnValue hasOnOff(cameraFeature_id_t feature, bool &HasOnOff)=0
Check if the camera has the ability to turn on/off the requested feature.
virtual yarp::dev::ReturnValue getMode(cameraFeature_id_t feature, FeatureMode &mode)=0
Get the current mode for the feature.
virtual yarp::dev::ReturnValue getFeature(cameraFeature_id_t feature, double &value1, double &value2)=0
Get the current value for the requested feature.
virtual ~IFrameGrabberControls()
Destructor.
virtual yarp::dev::ReturnValue hasManual(cameraFeature_id_t feature, bool &hasManual)=0
Check if the requested feature has the 'manual' mode.
virtual yarp::dev::ReturnValue setOnePush(cameraFeature_id_t feature)=0
Set the requested feature to a value (saturation, brightness ... )
virtual yarp::dev::ReturnValue getCameraDescription(CameraDescriptor &camera)=0
Get a basic description of the camera hw.
virtual yarp::dev::ReturnValue hasOnePush(cameraFeature_id_t feature, bool &hasOnePush)=0
Check if the requested feature has the 'onePush' mode.
std::string busType2String(BusType type)
virtual yarp::dev::ReturnValue getActive(cameraFeature_id_t feature, bool &isActive)=0
Get the current status of the feature, on or off.
virtual yarp::dev::ReturnValue hasAuto(cameraFeature_id_t feature, bool &hasAuto)=0
Check if the requested feature has the 'auto' mode.
virtual yarp::dev::ReturnValue setActive(cameraFeature_id_t feature, bool onoff)=0
Set the requested feature on or off.
virtual yarp::dev::ReturnValue setMode(cameraFeature_id_t feature, FeatureMode mode)=0
Set the requested mode for the feature.
virtual yarp::dev::ReturnValue setFeature(cameraFeature_id_t feature, double value1, double value2)=0
Set the requested feature to a value using 2 params (like white balance)
virtual yarp::dev::ReturnValue hasFeature(cameraFeature_id_t, bool &hasFeature)=0
Check if camera has the requested feature (saturation, brightness ... )
FeatureMode toFeatureMode(bool _auto)
virtual yarp::dev::ReturnValue getFeature(cameraFeature_id_t feature, double &value)=0
Get the current value for the requested feature.
For streams capable of holding different kinds of content, check what they actually have.
@ YARP_FEATURE_SATURATION
@ YARP_FEATURE_OPTICAL_FILTER
@ YARP_FEATURE_TEMPERATURE
@ YARP_FEATURE_TRIGGER_DELAY
@ YARP_FEATURE_CAPTURE_SIZE
@ YARP_FEATURE_FRAME_RATE
@ YARP_FEATURE_WHITE_SHADING
@ YARP_FEATURE_CAPTURE_QUALITY
@ YARP_FEATURE_BRIGHTNESS
@ YARP_FEATURE_WHITE_BALANCE
std::string deviceDescription