[libcamera-devel,v3,00/18] Misc Python bindings patches
mbox series

Message ID 20220518131329.66994-1-tomi.valkeinen@ideasonboard.com
Headers show
Series
  • Misc Python bindings patches
Related show

Message

Tomi Valkeinen May 18, 2022, 1:13 p.m. UTC
Hi,

Changes to v2:
- Added "py: meson: use files() for custom_target input files" to the
  series. It's already separately on the list, but this series conflicts
  with it.
- Dropped pystubs generation for now
- Added libcamera.formats for pixel formats, and use it in cam_qt
- A few cleanup patches that came up with the libcamera.formats work

 Tomi

Tomi Valkeinen (18):
  py: meson: use files() for custom_target input files
  py: meson: fix comment about stubs
  py: add comment about the symlinks
  py: pymain: fix indent
  py: unittests: fix selector fd use
  py: unittests: verify that cam and cm are freed
  py: unittests: make typechecker happy
  py: cam.py: exit on exception
  py: cam_kms: support multiplanar formats
  py: cam_kms: fix multistream display
  py: cam_qt: cosmetic cleanups
  py: implement PixelFormat class
  py: add geometry classes
  py: use geometry classes
  py: rename pyxyz to py_xyz
  py: clean up control enums generation
  py: generate pixel formats list
  py: cam_qt: use libcamera.formats

 src/py/cam/cam.py                             |  32 +++--
 src/py/cam/cam_kms.py                         |  31 ++---
 src/py/cam/cam_qt.py                          |  86 ++++---------
 src/py/cam/cam_qtgl.py                        |  20 +--
 src/py/cam/gl_helpers.py                      |   8 --
 src/py/libcamera/gen-py-formats.py            |  56 +++++++++
 src/py/libcamera/meson.build                  |  35 ++++--
 ...p.in => py_control_enums_generated.cpp.in} |   8 +-
 .../libcamera/{pyenums.cpp => py_enums.cpp}   |   2 +-
 ...ted.cpp.in => py_formats_generated.cpp.in} |  12 +-
 src/py/libcamera/py_geometry.cpp              | 119 ++++++++++++++++++
 src/py/libcamera/{pymain.cpp => py_main.cpp}  |  92 ++++++--------
 test/py/unittests.py                          |  23 +++-
 13 files changed, 330 insertions(+), 194 deletions(-)
 create mode 100755 src/py/libcamera/gen-py-formats.py
 copy src/py/libcamera/{pyenums_generated.cpp.in => py_control_enums_generated.cpp.in} (63%)
 rename src/py/libcamera/{pyenums.cpp => py_enums.cpp} (96%)
 rename src/py/libcamera/{pyenums_generated.cpp.in => py_formats_generated.cpp.in} (58%)
 create mode 100644 src/py/libcamera/py_geometry.cpp
 rename src/py/libcamera/{pymain.cpp => py_main.cpp} (89%)