[libcamera-devel,v2,00/13] Misc Python bindings patches
mbox series

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

Message

Tomi Valkeinen May 17, 2022, 2:33 p.m. UTC
Hi,

Changes to v1:

- Add missing geometry class methods
- Drop the libcamera.utils module for now
- PixelFormat name -> string change
- Added PixelFormat __repr__
- Dropped the tuple/array __init__ versions for geometry classes
- Some other cosmetic changes

 Tomi

Tomi Valkeinen (13):
  py: meson: fix comment about stubs
  py: meson: add pystubs build target
  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

 src/py/cam/cam.py               |  32 +++++----
 src/py/cam/cam_kms.py           |  31 +++++----
 src/py/cam/cam_qt.py            |  75 ++++++--------------
 src/py/cam/cam_qtgl.py          |  20 +-----
 src/py/cam/gl_helpers.py        |   8 ---
 src/py/libcamera/meson.build    |  16 ++++-
 src/py/libcamera/pygeometry.cpp | 119 ++++++++++++++++++++++++++++++++
 src/py/libcamera/pymain.cpp     |  81 ++++++++--------------
 test/py/unittests.py            |  22 ++++--
 9 files changed, 240 insertions(+), 164 deletions(-)
 create mode 100644 src/py/libcamera/pygeometry.cpp