[libcamera-devel] [PATCH v2 0/6] ImageFormats, you again

Jacopo Mondi jacopo at jmondi.org
Tue Jun 9 01:28:38 CEST 2020


V2, which I think it's nicer than v1, but I'm still not 100% sure this is
really a good idea.

The most notable gain is replacing custom maps in pipeline handlers
to tidy up things a bit..

Thanks
  j

Jacopo Mondi (6):
  libcamera: formats: Make ImageFormats a templated class
  libcamera: v4l2_subdevice: Provide Formats typedef
  libcamera: formats: Make ImageFormats iterable
  libcamera: formats: Add ImageFormats::contain()
  libcamera: formats: Expose std::map::value_type
  libcamera: v4l2_videodevice: Use ImageFormats

 include/libcamera/internal/camera_sensor.h    |  6 +-
 include/libcamera/internal/formats.h          | 22 ++++--
 include/libcamera/internal/v4l2_subdevice.h   |  4 +-
 include/libcamera/internal/v4l2_videodevice.h |  4 +-
 src/libcamera/formats.cpp                     | 77 ++++++++++++++++---
 .../pipeline/raspberrypi/raspberrypi.cpp      | 14 ++--
 src/libcamera/pipeline/simple/simple.cpp      |  3 +-
 src/libcamera/pipeline/uvcvideo/uvcvideo.cpp  |  3 +-
 src/libcamera/v4l2_subdevice.cpp              | 12 ++-
 src/libcamera/v4l2_videodevice.cpp            | 14 +++-
 test/v4l2_subdevice/list_formats.cpp          |  2 +-
 11 files changed, 121 insertions(+), 40 deletions(-)

--
2.27.0



More information about the libcamera-devel mailing list