[libcamera-devel] [PATCH v4 0/6] Python bindings: PyCameraManager and non-blocking eventfd

Tomi Valkeinen tomi.valkeinen at ideasonboard.com
Fri Aug 19 13:16:09 CEST 2022


Hi,

These are the reviewed patches from "Python bindings event handling"
series. The rest in that series will break the API and/or need a bit
more working, so it makes sense to get these merged while the rest are
being worked on.

Changes since v3:
- New patch "py: meson: Use libcamera_private dependency"
- Renamed ret -> py_reqs in "py: Create PyCameraManager"
- Added a few more includes (string, vector) just in case
- Check the error properly in PyCameraManager::readFd

 Tomi

Tomi Valkeinen (6):
  py: meson: Use libcamera_private dependency
  py: Create PyCameraManager
  py: Use UniqueFD
  py: Set EFD_CLOEXEC on eventfd to avoid fd leaking
  py: Use libcamera's Mutex classes
  py: Switch to non-blocking eventfd

 src/py/examples/simple-cam.py                |   5 +-
 src/py/examples/simple-capture.py            |  12 +-
 src/py/examples/simple-continuous-capture.py |   5 +-
 src/py/libcamera/meson.build                 |   4 +-
 src/py/libcamera/py_camera_manager.cpp       | 131 +++++++++++++++++++
 src/py/libcamera/py_camera_manager.h         |  45 +++++++
 src/py/libcamera/py_main.cpp                 | 120 ++++-------------
 test/py/unittests.py                         |   7 +
 8 files changed, 227 insertions(+), 102 deletions(-)
 create mode 100644 src/py/libcamera/py_camera_manager.cpp
 create mode 100644 src/py/libcamera/py_camera_manager.h

-- 
2.34.1



More information about the libcamera-devel mailing list