[libcamera-devel] [PATCH v4 05/16] py: Add Request.__str__()
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Mon May 30 16:27:11 CEST 2022
Add Request.__str__() which maps directly to Request::toString().
Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/py/libcamera/py_main.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/py/libcamera/py_main.cpp b/src/py/libcamera/py_main.cpp
index 3220a9e6..9e827845 100644
--- a/src/py/libcamera/py_main.cpp
+++ b/src/py/libcamera/py_main.cpp
@@ -496,7 +496,8 @@ PYBIND11_MODULE(_libcamera, m)
* \todo As we add a keep_alive to the fb in addBuffers(), we
* can only allow reuse with ReuseBuffers.
*/
- .def("reuse", [](Request &self) { self.reuse(Request::ReuseFlag::ReuseBuffers); });
+ .def("reuse", [](Request &self) { self.reuse(Request::ReuseFlag::ReuseBuffers); })
+ .def("__str__", &Request::toString);
pyRequestStatus
.value("Pending", Request::RequestPending)
--
2.34.1
More information about the libcamera-devel
mailing list