summaryrefslogtreecommitdiff
path: root/test/camera
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-09-24 14:14:36 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-01 20:56:40 +0200
commit2f621920eaf084b29ce3ad15204b989e868df826 (patch)
tree6bbaeae2ed8197087fabff88ffa910ed77a3ed14 /test/camera
parent8d22064082aa2c8b451a6a4cc1ea6078aa1d1ce7 (diff)
libcamera: geometry: Clarify Rectangle's top-left corner
The libcamera::Rectangle class allows defining rectangles regardless of the orientation of the reference system where a rectangle is used in. This implies that, depending on the reference system in use, the rectangle's top-left corner, as defined by libcamera, doesn't correspond to the visual top-left position. ^ | | ------------------- | ^ | h | | | y| o---->------------- | w -------------------------------> (0,0) x (0,0) x ------------------------------> | w y| o---->------------- | | | h | v | | ------------------- | V Clarify that a Rectangle's top-left corner corresponds to the point with the smaller x and y coordinates and that the horizontal and vertical dimensions are obtained by positive increments along the corresponding axes. Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Harvey Yang <chenghaoyang@chromium.org> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'test/camera')
0 files changed, 0 insertions, 0 deletions