libcamera: Use CameraConfiguration::orientation
Replace the usage of CameraConfiguration::transform with the newly introduced CameraConfiguration::orientation. Rework and rename the CameraSensor::validateTransform(transform) to CameraSensor::computeTransform(orientation), that given the desired image orientation computes the Transform that pipeline handlers should apply to the sensor to obtain it. Port all pipeline handlers to use the newly introduced function. This commit breaks existing applications as it removes the public CameraConfiguration::transform in favour of CameraConfiguration::orientation. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
a28f871836
commit
c65e40b848
@@ -128,8 +128,8 @@ CameraConfiguration::Status VimcCameraConfiguration::validate()
|
||||
if (config_.empty())
|
||||
return Invalid;
|
||||
|
||||
if (transform != Transform::Identity) {
|
||||
transform = Transform::Identity;
|
||||
if (orientation != Orientation::Rotate0) {
|
||||
orientation = Orientation::Rotate0;
|
||||
status = Adjusted;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user