libcamera: camera_sensor: Adjust properties::Rotation
As the CameraSensor::validateTransform() function compensate for the sensor's mounting rotation, the properties::Rotation value should be adjusted to make sure application that receive already "corrected" images do not get confused by Rotation still reporting a value. Howerver, as an image sensor can only compensate rotations by applying H/V flips, only correct Rotation when the mounting rotation is 180 degrees. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
@@ -397,8 +397,7 @@ CameraConfiguration::Status CameraConfiguration::validateColorSpaces(ColorSpaceF
|
||||
*
|
||||
* The transform is a user-specified 2D plane transform that will be applied
|
||||
* to the camera images by the processing pipeline before being handed to
|
||||
* the application. This is subsequent to any transform that is already
|
||||
* required to fix up any platform-defined rotation.
|
||||
* the application.
|
||||
*
|
||||
* The usual 2D plane transforms are allowed here (horizontal/vertical
|
||||
* flips, multiple of 90-degree rotations etc.), but the validate() function
|
||||
|
||||
Reference in New Issue
Block a user