[libcamera-devel] [PATCH 11/11] qcam: ControlFrame: Implement Current Values for integer types
Utkarsh Tiwari
utkarsh02t at gmail.com
Fri Jul 15 21:14:00 CEST 2022
Display the Current values for ControlTypeInteger32 and
ControlTypeInteger64.
Signed-off-by: Utkarsh Tiwari <utkarsh02t at gmail.com>
---
src/qcam/settings/control_frame.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/qcam/settings/control_frame.cpp b/src/qcam/settings/control_frame.cpp
index 5a3258d6..928807b8 100644
--- a/src/qcam/settings/control_frame.cpp
+++ b/src/qcam/settings/control_frame.cpp
@@ -145,6 +145,12 @@ void ControlFrame::setCurrentValue(const libcamera::ControlValue controlValue)
case ControlTypeFloat:
currentValue_->setText(QString::number(controlValue.get<float>()));
break;
+ case ControlTypeInteger32:
+ currentValue_->setText(QString::number(controlValue.get<int32_t>()));
+ break;
+ case ControlTypeInteger64:
+ currentValue_->setText(QString::number(controlValue.get<int64_t>()));
+ break;
default:
break;
}
--
2.25.1
More information about the libcamera-devel
mailing list