#include <avcap/linux/V4L1_Control.h>
Inheritance diagram for avcap::V4L1_Control:
The V4L1 API supprots only controls for brightness, hue, colour, contrast, depth and whiteness. They are all integer values between 0 and 65535.
Public Types | |
enum | Ctrl { BRIGHTNESS = 0, HUE, COLOUR, CONTRAST, WHITENESS, DEPTH } |
Public Member Functions | |
V4L1_Control (V4L1_DeviceDescriptor *dd, Ctrl type, __u16 def) | |
virtual | ~V4L1_Control () |
virtual int | getId () const |
Get the unique identifier of the control. | |
virtual int | getDefaultValue () const |
Get the default value of the control. | |
virtual const std::string & | getName () const |
Get the name of the control. | |
virtual int | setValue (int val) |
Set the new value of the control. | |
virtual int | getValue () const |
Get the current value of the control. | |
virtual int | reset () |
Set the value of the control to the default value. | |
virtual const Interval & | getInterval () const |
Get the interval describing the range and step of valid values for this control. |
avcap::V4L1_Control::V4L1_Control | ( | V4L1_DeviceDescriptor * | dd, | |
Ctrl | type, | |||
__u16 | def | |||
) |
virtual avcap::V4L1_Control::~V4L1_Control | ( | ) | [inline, virtual] |
virtual int avcap::V4L1_Control::getId | ( | ) | const [inline, virtual] |
virtual int avcap::V4L1_Control::getDefaultValue | ( | ) | const [inline, virtual] |
virtual const std::string& avcap::V4L1_Control::getName | ( | ) | const [virtual] |
virtual int avcap::V4L1_Control::setValue | ( | int | val | ) | [virtual] |
Set the new value of the control.
val | : The new value. |
Implements avcap::Control.
virtual int avcap::V4L1_Control::getValue | ( | ) | const [virtual] |
virtual int avcap::V4L1_Control::reset | ( | ) | [virtual] |
Set the value of the control to the default value.
Implements avcap::Control.
virtual const Interval& avcap::V4L1_Control::getInterval | ( | ) | const [inline, virtual] |
Get the interval describing the range and step of valid values for this control.
Implements avcap::IntegerControl.