summaryrefslogtreecommitdiff
path: root/src/libcamera/camera_sensor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/camera_sensor.cpp')
-rw-r--r--src/libcamera/camera_sensor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/camera_sensor.cpp b/src/libcamera/camera_sensor.cpp
index 8ff72b42..521a1997 100644
--- a/src/libcamera/camera_sensor.cpp
+++ b/src/libcamera/camera_sensor.cpp
@@ -1136,7 +1136,7 @@ Transform CameraSensor::validateTransform(Transform *transform) const
* Combine the requested transform to compensate the sensor mounting
* rotation.
*/
- Transform combined = *transform * rotationTransform_;
+ Transform combined = rotationTransform_ * *transform;
/*
* We combine the platform and user transform, but must "adjust away"
@@ -1165,7 +1165,7 @@ Transform CameraSensor::validateTransform(Transform *transform) const
* If the sensor can do no transforms, then combined must be
* changed to the identity. The only user transform that gives
* rise to this is the inverse of the rotation. (Recall that
- * combined = transform * rotationTransform.)
+ * combined = rotationTransform * transform.)
*/
*transform = -rotationTransform_;
combined = Transform::Identity;