Webcam Library Reference Documentation  Logitech logo

_CControl Struct Reference

#include <Common/include/webcam.h>


Detailed Description

A description of a camera control.

Data Fields

CControlId id
 The identifier of the control.
char * name
 The human-readable name of the control.
CControlType type
 The type of the control.
CControlFlags flags
 Flags describing properties and capabilities of the control.
CControlValue value
 The current value of the control.
CControlValue def
 The default value of the control.
union {
   struct {
      CControlValue   min
 The minimum value of the control.
      CControlValue   max
 The maximum value of the control.
      CControlValue   step
 The resolution of the control values.
   } 
 Additional control attributes for non-choice controls.
   struct {
      unsigned int   count
 The number of choices in the list.
      CControlChoice *   list
 The list of choice values.
      char *   names
 A buffer that contains the names of the CControlChoice items.
   }   choices
 List of the possible choices that this control allows.
}; 

Field Documentation

A buffer that contains the names of the CControlChoice items.

The name fields of the items point to strings within this buffer, so there is no need to work with this member directly except freeing the buffer if the control is disposed of.

struct { ... } _CControl::choices

List of the possible choices that this control allows.

The members of this struct are only valid if the type is CC_TYPE_CHOICE.

Referenced by c_enum_controls(), create_control_choices(), delete_control(), and get_control_dynamics_length().


The documentation for this struct was generated from the following file:

Generated on Wed Nov 20 09:37:42 2013 for Webcam Library by Doxygen 1.5.6
Copyright © 2006-2008 Logitech.