diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-23 05:36:38 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-11-25 10:52:06 +0200 |
commit | 2447d14fa8af7e913232d21e0d2157d3088ec25c (patch) | |
tree | ba7f246eab8bac8e54dc317dfedf2d51e0b06a94 /test/serialization/control_serialization.cpp | |
parent | 4c30ed47f656d67b619470b9091ebf6661b8a778 (diff) |
pipeline: rkisp1: Fix stream size validation
Unlike RkISP1Path::generateConfiguration(), the validate() function
doesn't take the camera sensor resolution into account but only
considers the absolute minimum and maximum sizes supported by the ISP to
validate the stream size. Fix it by using the same logic as when
generating the configuration.
Instead of passing the sensor resolution to the validate() function,
pass the CameraSensor pointer to prepare for subsequent changes that
will require access to more camera sensor data. While at it, update the
generateConfiguration() function similarly for the same reason.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/serialization/control_serialization.cpp')
0 files changed, 0 insertions, 0 deletions