[libcamera-devel,0/5] More misc Python patches
mbox series

Message ID 20220519103347.33295-1-tomi.valkeinen@ideasonboard.com
Headers show
Series
  • More misc Python patches
Related show

Message

Tomi Valkeinen May 19, 2022, 10:33 a.m. UTC
So, this is v1 as most of the patches from the previous series were
merged, and this has some new ones.

I changed the pixel format list to use a "dummy" class. I think it's
better, as it gives us read-only properties and pyright or
pybind11-stubgen likes it. But I dropped the signed-off-bys, as the
solution is different.

 Tomi

Tomi Valkeinen (5):
  py: Generate pixel formats list
  py: cam_qt: Use libcamera.formats
  py: cam: Cleanups
  py: Fix SceneFlicker enum values
  py: Fix None value in ControlType enum

 src/py/cam/cam.py                            |  2 +-
 src/py/cam/cam_qt.py                         | 29 ++++------
 src/py/cam/cam_qtgl.py                       |  9 +---
 src/py/libcamera/gen-py-control-enums.py     |  3 ++
 src/py/libcamera/gen-py-formats.py           | 56 ++++++++++++++++++++
 src/py/libcamera/meson.build                 | 12 +++++
 src/py/libcamera/py_enums.cpp                |  2 +-
 src/py/libcamera/py_formats_generated.cpp.in | 23 ++++++++
 src/py/libcamera/py_main.cpp                 |  3 ++
 9 files changed, 111 insertions(+), 28 deletions(-)
 create mode 100755 src/py/libcamera/gen-py-formats.py
 create mode 100644 src/py/libcamera/py_formats_generated.cpp.in