diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-10-20 16:58:24 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-10-23 16:06:18 +0300 |
commit | 7a5d4b83e5d5a2444e62ac5868c9016de43f8f60 (patch) | |
tree | 8fdccc0eca7485bf6e9be501fefc2eb35904de0d /include | |
parent | 4814d8f1b5b397137da5efedd9a5b4351cbfe836 (diff) |
libcamera: camera_sensor: Cache mounting orientation instead of transform
The cached rotationTransform_ value is used in computeTransform() only,
to compute the mounting orientation. Cache the mounting orientation
instead, removing the need for the intermediate conversion of the
rotation to a transform.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/camera_sensor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/internal/camera_sensor.h b/include/libcamera/internal/camera_sensor.h index bcdb2d83..60a8b106 100644 --- a/include/libcamera/internal/camera_sensor.h +++ b/include/libcamera/internal/camera_sensor.h @@ -17,6 +17,7 @@ #include <libcamera/control_ids.h> #include <libcamera/controls.h> #include <libcamera/geometry.h> +#include <libcamera/orientation.h> #include <libcamera/transform.h> #include <libcamera/ipa/core_ipa_interface.h> @@ -114,7 +115,7 @@ private: Rectangle activeArea_; const BayerFormat *bayerFormat_; bool supportFlips_; - Transform rotationTransform_; + Orientation mountingOrientation_; ControlList properties_; |