avcap::V4L1_Control Class Reference

#include <avcap/linux/V4L1_Control.h>

Inheritance diagram for avcap::V4L1_Control:

Inheritance graph
[legend]

Detailed Description

Implementation of a 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 IntervalgetInterval () const
 Get the interval describing the range and step of valid values for this control.


Member Enumeration Documentation

enum avcap::V4L1_Control::Ctrl

Enumerator:
BRIGHTNESS 
HUE 
COLOUR 
CONTRAST 
WHITENESS 
DEPTH 


Constructor & Destructor Documentation

avcap::V4L1_Control::V4L1_Control ( V4L1_DeviceDescriptor dd,
Ctrl  type,
__u16  def 
)

virtual avcap::V4L1_Control::~V4L1_Control (  )  [inline, virtual]


Member Function Documentation

virtual int avcap::V4L1_Control::getId (  )  const [inline, virtual]

Get the unique identifier of the control.

Returns:
id

Implements avcap::Control.

virtual int avcap::V4L1_Control::getDefaultValue (  )  const [inline, virtual]

Get the default value of the control.

Returns:
default value

Implements avcap::Control.

virtual const std::string& avcap::V4L1_Control::getName (  )  const [virtual]

Get the name of the control.

Returns:
control name

Implements avcap::Control.

virtual int avcap::V4L1_Control::setValue ( int  val  )  [virtual]

Set the new value of the control.

Parameters:
val : The new value.
Returns:
0, if successful, -1 else

Implements avcap::Control.

virtual int avcap::V4L1_Control::getValue (  )  const [virtual]

Get the current value of the control.

Returns:
the value

Implements avcap::Control.

virtual int avcap::V4L1_Control::reset (  )  [virtual]

Set the value of the control to the default value.

Returns:
0, if successful, -1 else

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.

Returns:
interval

Implements avcap::IntegerControl.


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:32 2009 for avcap-0.1 by  doxygen 1.5.1