libcamera: Remove transform from V4L2SubdeviceFormat
Commit6f6e1bf704("libcamera: camera_sensor: Apply flips at setFormat()") extended the CameraSensor::setFormat() function to apply vertical/horizontal flips on the sensor based on the supplied Transform. To pass the Transform to the function the V4L2SubdeviceFormat structure has been augmented with a Transform member. However as the newly added Transform is not used at all in the V4L2Subdevice class, it should not be part of V4L2SubdeviceFormat. Fix that by removing the transform field from V4L2SubdeviceFormat and pass it as an explicit parameter to CameraSensor::setFormat(). Fixes:6f6e1bf704("libcamera: camera_sensor: Apply flips at setFormat()) Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -216,13 +216,6 @@ const std::map<uint32_t, V4L2SubdeviceFormatInfo> formatInfoMap = {
|
||||
* resulting color space is acceptable.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \var V4L2SubdeviceFormat::transform
|
||||
* \brief The transform (vertical/horizontal flips) to be applied on the subdev
|
||||
*
|
||||
* Default initialized to Identity (no transform).
|
||||
*/
|
||||
|
||||
/**
|
||||
* \brief Assemble and return a string describing the format
|
||||
* \return A string describing the V4L2SubdeviceFormat
|
||||
|
||||
Reference in New Issue
Block a user