mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
libcamera: camera_sensor: Validate Transform
The two pipeline handlers that currently support Transform (IPU3 and RaspberryPi) implement it by operating H/V flips on the image sensor. Centralize the code that validates a Transform request against the sensor rotation capabilities in the CameraSensor class. The implementation in the IPU3 pipeline handler was copied from the RaspberryPi implementation, and is now centralized in CameraSensor to make it easier for other platforms. The CameraSensor::validateTransform() implementation comes directly from the RaspberryPi pipeline handler, no functional changes intended. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
This commit is contained in:
parent
e030bac390
commit
1a614866a2
4 changed files with 89 additions and 91 deletions
|
@ -29,6 +29,8 @@ class BayerFormat;
|
|||
class CameraLens;
|
||||
class MediaEntity;
|
||||
|
||||
enum class Transform;
|
||||
|
||||
struct CameraSensorProperties;
|
||||
|
||||
class CameraSensor : protected Loggable
|
||||
|
@ -68,6 +70,8 @@ public:
|
|||
|
||||
CameraLens *focusLens() { return focusLens_.get(); }
|
||||
|
||||
Transform validateTransform(Transform *transform) const;
|
||||
|
||||
protected:
|
||||
std::string logPrefix() const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue