mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 18:35:07 +03:00
Expose the Request Sequence Number in Python Bindings
The python bindings are missing the ability to read the sequence number of the Request object from the public API. Expose the objects sequence number on the pybind11 surfaces to support applications reading this value. Signed-off-by: Matthew Goodman <matt@exclosure.io> [Kieran: Revised commit message] Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
bf66a1d251
commit
3c70cae5e5
1 changed files with 1 additions and 0 deletions
|
@ -335,6 +335,7 @@ PYBIND11_MODULE(_libcamera, m)
|
|||
.def_property_readonly("status", &Request::status)
|
||||
.def_property_readonly("buffers", &Request::buffers)
|
||||
.def_property_readonly("cookie", &Request::cookie)
|
||||
.def_property_readonly("sequence", &Request::sequence)
|
||||
.def_property_readonly("has_pending_buffers", &Request::hasPendingBuffers)
|
||||
.def("set_control", [](Request &self, const ControlId &id, py::object value) {
|
||||
self.controls().set(id.id(), pyToControlValue(value, id.type()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue