[libcamera-devel] [PATCH 0/2] libcamera: Add image format definitions

Jacopo Mondi jacopo at jmondi.org
Sun Jan 27 15:43:52 CET 2019


Add definitions of memory image formats supported by Libcamera.

The here defined formats will be exposed to applications, and their definition
can be expanded to include a libcamera-specific identifier to be offered to
applications if we don't want them to use V4L2_PIX_FMT_* defines directly.

I have added, as an example, the most commonly used YUV formats, packed,
semi-planar and planar ones.

I have here also included a test utility I used to printout the list of supported
formats and make sure it works. Not sure it qualifies as a test, as currently it
cannot fail.

Thanks
   j

Jacopo Mondi (2):
  libcamera: formats: Add image formats definitions
  test: List libcamera supported image formats

 include/libcamera/formats.h   | 61 +++++++++++++++++++++++++++++++++++
 include/libcamera/meson.build |  1 +
 test/list-formats.cpp         | 33 +++++++++++++++++++
 test/meson.build              |  1 +
 4 files changed, 96 insertions(+)
 create mode 100644 include/libcamera/formats.h
 create mode 100644 test/list-formats.cpp

--
2.20.1



More information about the libcamera-devel mailing list