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