[libcamera-devel,v3,0/3] Enable formats lookup based on name
mbox series

Message ID 20200727151820.24466-1-kgupta@es.iitr.ac.in
Headers show
Series
  • Enable formats lookup based on name
Related show

Message

Kaaira Gupta July 27, 2020, 3:18 p.m. UTC
This patchset enables applications to find a pixel format, given its name.
The final patch uses this function, in qcam and cam, to set format with
the help of its name instead of its hex value.

Kaaira Gupta (3):
  libcamera: formats: PixelFormatInfo: Add name lookup function
  libcamera: pixel_format: Add a function to return format based on
    string
  libcamera: stream_option: use format name to set cam/qcam format

 include/libcamera/internal/formats.h |  1 +
 include/libcamera/pixel_format.h     |  2 ++
 src/cam/stream_options.cpp           |  5 ++---
 src/libcamera/formats.cpp            | 20 ++++++++++++++++++++
 src/libcamera/pixel_format.cpp       |  9 +++++++++
 5 files changed, 34 insertions(+), 3 deletions(-)