|
libcamera v0.7.1+1-5701eb5f-nvm
Supporting cameras in Linux since 2019
|
Control static metadata. More...

Public Types | |
| enum class | Direction { In = (1 << 0) , Out = (1 << 1) } |
| The direction the control is capable of being passed from/to. More... | |
| using | DirectionFlags = Flags< Direction > |
| A wrapper for ControlId::Direction so that it can be used as flags. | |
Public Member Functions | |
| ControlId (unsigned int id, const std::string &name, const std::string &vendor, ControlType type, DirectionFlags direction, std::size_t size=0, const std::map< std::string, int32_t > &enumStrMap={}) | |
| Construct a ControlId instance. | |
| unsigned int | id () const |
| Retrieve the control numerical ID. | |
| const std::string & | name () const |
| Retrieve the control name. | |
| const std::string & | vendor () const |
| Retrieve the vendor name. | |
| ControlType | type () const |
| Retrieve the control data type. | |
| DirectionFlags | direction () const |
| Return the direction that the control can be used in. | |
| bool | isInput () const |
| Determine if the control is available to be used as an input control. | |
| bool | isOutput () const |
| Determine if the control is available to be used in output metadata. | |
| bool | isArray () const |
| Determine if the control is an array control. | |
| std::size_t | size () const |
| Retrieve the size of the control if it is an array control. | |
| const std::map< int32_t, std::string > & | enumerators () const |
| Retrieve the map of enum values to enum names. | |
Control static metadata.
The ControlId class stores a control ID, name and data type. It provides unique identification of a control, but without support for compile-time type deduction that the derived template Control class supports. See the Control class for more information.
| libcamera::ControlId::ControlId | ( | unsigned int | id, |
| const std::string & | name, | ||
| const std::string & | vendor, | ||
| ControlType | type, | ||
| DirectionFlags | direction, | ||
| std::size_t | size = 0, |
||
| const std::map< std::string, int32_t > & | enumStrMap = {} |
||
| ) |
Construct a ControlId instance.
| [in] | id | The control numerical ID |
| [in] | name | The control name |
| [in] | vendor | The vendor name |
| [in] | type | The control data type |
| [in] | direction | The direction of the control, if it can be used in Controls or Metadata |
| [in] | size | The size of the array control, or 0 if scalar control |
| [in] | enumStrMap | The map from enum names to values (optional) |
|
inline |
Return the direction that the control can be used in.
This is similar to
Retrieve the map of enum values to enum names.
Retrieve the control numerical ID.
|
inline |
Determine if the control is an array control.
|
inline |
Determine if the control is available to be used as an input control.
Controls can be used either as input in controls, or as output in metadata. This function checks if the control is allowed to be used as the former.
|
inline |
Determine if the control is available to be used in output metadata.
Controls can be used either as input in controls, or as output in metadata. This function checks if the control is allowed to be used as the latter.
Retrieve the control name.
|
inline |
Retrieve the size of the control if it is an array control.
|
inline |
Retrieve the control data type.
|
inline |
Retrieve the vendor name.