libcamera: controls: Rename ControlValueType to ControlType
The type of a control value is also the type of the control. Shorten the ControlValueType enumeration to ControlType, and rename ControlValue* to ControlType* for better clarity. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
594de3aed3
commit
c5dfd9d57e
4 changed files with 38 additions and 38 deletions
|
@ -26,7 +26,7 @@ protected:
|
|||
ControlInfo info(Brightness);
|
||||
|
||||
if (info.id() != Brightness ||
|
||||
info.type() != ControlValueInteger ||
|
||||
info.type() != ControlTypeInteger ||
|
||||
info.name() != std::string("Brightness")) {
|
||||
cout << "Invalid control identification for Brightness" << endl;
|
||||
return TestFail;
|
||||
|
@ -44,7 +44,7 @@ protected:
|
|||
info = ControlInfo(Contrast, 10, 200);
|
||||
|
||||
if (info.id() != Contrast ||
|
||||
info.type() != ControlValueInteger ||
|
||||
info.type() != ControlTypeInteger ||
|
||||
info.name() != std::string("Contrast")) {
|
||||
cout << "Invalid control identification for Contrast" << endl;
|
||||
return TestFail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue