Control static metadata.
More...
|
| ControlId (unsigned int id, const std::string &name, const std::string &vendor, ControlType type, std::size_t size=0, const std::map< std::string, int32_t > &enumStrMap={}) |
| Construct a ControlId instance. More...
|
|
unsigned int | id () const |
| Retrieve the control numerical ID. More...
|
|
const std::string & | name () const |
| Retrieve the control name. More...
|
|
const std::string & | vendor () const |
| Retrieve the vendor name. More...
|
|
ControlType | type () const |
| Retrieve the control data type. More...
|
|
bool | isArray () const |
| Determine if the control is an array control. More...
|
|
std::size_t | size () const |
| Retrieve the size of the control if it is an array control. More...
|
|
const std::map< int32_t, std::string > & | enumerators () const |
| Retrieve the map of enum values to enum names. More...
|
|
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.
◆ ControlId()
libcamera::ControlId::ControlId |
( |
unsigned int |
id, |
|
|
const std::string & |
name, |
|
|
const std::string & |
vendor, |
|
|
ControlType |
type, |
|
|
std::size_t |
size = 0 , |
|
|
const std::map< std::string, int32_t > & |
enumStrMap = {} |
|
) |
| |
Construct a ControlId instance.
- Parameters
-
[in] | id | The control numerical ID |
[in] | name | The control name |
[in] | vendor | The vendor name |
[in] | type | The control data type |
[in] | size | The size of the array control, or 0 if scalar control |
[in] | enumStrMap | The map from enum names to values (optional) |
◆ enumerators()
const std::map< int32_t, std::string > & libcamera::ControlId::enumerators |
( |
| ) |
const |
|
inline |
Retrieve the map of enum values to enum names.
- Returns
- The map of enum values to enum names
◆ id()
unsigned int libcamera::ControlId::id |
( |
| ) |
const |
|
inline |
Retrieve the control numerical ID.
- Returns
- The control numerical ID
◆ isArray()
bool libcamera::ControlId::isArray |
( |
| ) |
const |
|
inline |
Determine if the control is an array control.
- Returns
- True if the control is an array control, false otherwise
◆ name()
const char * libcamera::ControlId::name |
( |
| ) |
const |
|
inline |
Retrieve the control name.
- Returns
- The control name
◆ size()
std::size_t libcamera::ControlId::size |
( |
| ) |
const |
|
inline |
Retrieve the size of the control if it is an array control.
- Returns
- The size of the array control, size_t::max for dynamic extent, or 0 for non-array
◆ type()
Retrieve the control data type.
- Returns
- The control data type
◆ vendor()
const std::string & libcamera::ControlId::vendor |
( |
| ) |
const |
|
inline |
Retrieve the vendor name.
- Returns
- The vendor name, as a string
The documentation for this class was generated from the following files:
- include/libcamera/controls.h
- src/libcamera/controls.cpp