summaryrefslogtreecommitdiff
path: root/src/py/examples/simple-capture.py
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2025-04-03 17:49:07 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2025-05-20 09:46:11 +0200
commit5234e4936fab07a3540f8e6ae87d70579a51cfcc (patch)
treeb46581dc92c6a5b08038dc6b7dddd777e6484081 /src/py/examples/simple-capture.py
parent1d8a6db31c25bae39ece02efa565bcec8d1b0a03 (diff)
libcamera: matrix: Make most functions constexpr
By zero-initializing the data_ member we can make most functions constexpr which will come in handy in upcoming patches. Note that this is due to C++17. In C++20 we will be able to leave data_ uninitialized for constexpr. The Matrix(std::array) version of the constructor can not be constexpr because std::copy only became constexpr in C++20. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/py/examples/simple-capture.py')
0 files changed, 0 insertions, 0 deletions