[libcamera-devel,0/2] libcamera: Add image format definitions
mbox series

Message ID 20190127144354.9360-1-jacopo@jmondi.org
Headers show
Series
  • libcamera: Add image format definitions
Related show

Message

Jacopo Mondi Jan. 27, 2019, 2:43 p.m. UTC
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