[libcamera-devel] [PATCH v4 0/3] Enable formats lookup based on name
Kaaira Gupta
kgupta at es.iitr.ac.in
Mon Jul 27 18:21:40 CEST 2020
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(-)
--
2.17.1
More information about the libcamera-devel
mailing list