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

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

Message

Kaaira Gupta July 27, 2020, 4:21 p.m. UTC
This patchset enables applications to find a pixel format, given its name.
Fist patch adds a function to find PixelFormatInfo using its name.
Second patch uses the info to retrieve pixel format, and 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            | 16 ++++++++++++++++
 src/libcamera/pixel_format.cpp       |  9 +++++++++
 5 files changed, 30 insertions(+), 3 deletions(-)