libcamera: raspberrypi: Plumb user transform through to IPA
This commit plumbs the user transform from the Raspberry Pi pipeline handler through to the IPA. Note that the transform is actually handled in the sensor (by setting the h/v flip bits), so the IPAs need to understand the orientation of the image they receive. Once in the IPA we add it to the CameraMode description, so that it becomes automatically available to all the individual control algorithms. The IPA configure method has to be reordered just a little so as to fill in the transform in the camera mode before calling SwitchMode. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
4cff3937e1
commit
5c32a0daf5
@@ -6,6 +6,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <libcamera/transform.h>
|
||||
|
||||
// Description of a "camera mode", holding enough information for control
|
||||
// algorithms to adapt their behaviour to the different modes of the camera,
|
||||
// including binning, scaling, cropping etc.
|
||||
@@ -33,6 +35,8 @@ struct CameraMode {
|
||||
double noise_factor;
|
||||
// line time in nanoseconds
|
||||
double line_length;
|
||||
// any camera transform *not* reflected already in the camera tuning
|
||||
libcamera::Transform transform;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user