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

Message ID 20220819111615.39814-1-tomi.valkeinen@ideasonboard.com
Headers show
Series
  • Python bindings: PyCameraManager and non-blocking eventfd
Related show

Message

Tomi Valkeinen Aug. 19, 2022, 11:16 a.m. UTC
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