[libcamera-devel,11/11] qcam: ControlFrame: Implement Current Values for integer types
diff mbox series

Message ID 20220715191400.890976-12-utkarsh02t@gmail.com
State Superseded
Headers show
Series
  • Introduce control interaction to qcam
Related show

Commit Message

Utkarsh Tiwari July 15, 2022, 7:14 p.m. UTC
Display the Current values for ControlTypeInteger32 and
ControlTypeInteger64.

Signed-off-by: Utkarsh Tiwari <utkarsh02t@gmail.com>
---
 src/qcam/settings/control_frame.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

Patch
diff mbox series

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;
 	}