[libcamera-devel,0/5] py: Misc changes & move to mainline pybind11
mbox series

Message ID 20230530092016.34953-1-tomi.valkeinen@ideasonboard.com
Headers show
Series
  • py: Misc changes & move to mainline pybind11
Related show

Message

Tomi Valkeinen May 30, 2023, 9:20 a.m. UTC
Hi,

This series has some select patches from the Python event handling,
which progresses very slowly. But more importantly, it moves us to the
mainline pybind11, instead of using the smart_holder branch.

 Tomi

Tomi Valkeinen (5):
  py: Fix CameraManager.version property
  py: Move ColorSpace and Transform classes to separate files
  py: Use exceptions instead of returning error codes
  py: unittests.py: Add weakref helpers and use del
  py: Move to mainline pybind11 version

 src/py/cam/cam.py                             |  16 +-
 src/py/examples/simple-cam.py                 |  15 +-
 src/py/examples/simple-capture.py             |  21 +-
 src/py/examples/simple-continuous-capture.py  |  21 +-
 src/py/libcamera/meson.build                  |  13 +-
 src/py/libcamera/py_camera_manager.h          |   2 +-
 src/py/libcamera/py_color_space.cpp           |  70 ++++++
 src/py/libcamera/py_controls_generated.cpp.in |   2 +-
 src/py/libcamera/py_enums.cpp                 |   2 +-
 src/py/libcamera/py_formats_generated.cpp.in  |   2 +-
 src/py/libcamera/py_geometry.cpp              |   2 +-
 src/py/libcamera/py_helpers.h                 |   2 +-
 src/py/libcamera/py_main.cpp                  | 229 ++++++++----------
 .../libcamera/py_properties_generated.cpp.in  |   2 +-
 src/py/libcamera/py_transform.cpp             |  81 +++++++
 subprojects/.gitignore                        |   2 +-
 subprojects/pybind11.wrap                     |  18 +-
 test/py/unittests.py                          | 140 +++++------
 18 files changed, 364 insertions(+), 276 deletions(-)
 create mode 100644 src/py/libcamera/py_color_space.cpp
 create mode 100644 src/py/libcamera/py_transform.cpp