summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/rpi/common/pipeline_base.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-07-12 11:55:10 +0100
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-07-24 11:38:15 +0200
commitcd7d917a04e252023f85afcf49e8c9ca1ee99838 (patch)
tree554ddf18d08c6f680e40ed4c904be6cf0a350b4a /src/libcamera/pipeline/rpi/common/pipeline_base.h
parent4edc162e3d36119f4a63fe8b43c73bdecffacfa1 (diff)
libcamera: rpi: pipeline_base: Cache sensor format
The format to be applied on the sensor is selected by two criteria: the desired output size and the bit depth. As the selection depends on the presence of a RAW stream and the streams configuration is handled in validate() there is no need to re-compute the format in configure(). Centralize the computation of the sensor format in validate() and remove it from configure(). Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Diffstat (limited to 'src/libcamera/pipeline/rpi/common/pipeline_base.h')
-rw-r--r--src/libcamera/pipeline/rpi/common/pipeline_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/rpi/common/pipeline_base.h b/src/libcamera/pipeline/rpi/common/pipeline_base.h
index 2eda3cd8..a139c98a 100644
--- a/src/libcamera/pipeline/rpi/common/pipeline_base.h
+++ b/src/libcamera/pipeline/rpi/common/pipeline_base.h
@@ -262,6 +262,8 @@ public:
/* Cache the combinedTransform_ that will be applied to the sensor */
Transform combinedTransform_;
+ /* The sensor format computed in validate() */
+ V4L2SubdeviceFormat sensorFormat_;
private:
const CameraData *data_;