[libcamera-devel] [PATCH 0/3] ColourCorrectionMatrixControl
David Plowman
david.plowman at raspberrypi.com
Sat Jul 4 11:59:11 CEST 2020
Hi everyone
This patch set adds the ColourCorrectionMatrix control, though its use
is for now mainly to get hold of the Colour Correction Matrix (CCM)
used by the imaging pipeline in the libcamera metadata. There are 3
commits:
1. The basic ColourCorrectionMatrix control.
2. The implementation for the Raspberry Pi platform.
3. Use of the new metadata to produce better colours in the DNG files
saved by qcam. Tools like dcraw (with -w) and RawTherapee should
produce reasonable looking images by default.
In the 3rd patch I use a little matrix arithmetic. I thought I might
be able to use Qt for this, but it appears not to have a proper 3x3
matrix class (that finds determinants and inverts them) so I ended up
rolling my own. It's only a very small amount of code but does anyone
have a better suggestion?
Thanks and best regards
David
David Plowman (3):
libcamera: Add ColourCorrectionMatrix control
libcamera: raspberrypi: Add ColourCorrectionMatrix control
libcamera: qcam: Improve colour information in DNG files
include/libcamera/ipa/raspberrypi.h | 1 +
src/ipa/raspberrypi/raspberrypi.cpp | 9 +++
src/libcamera/control_ids.yaml | 12 ++++
src/qcam/dng_writer.cpp | 93 +++++++++++++++++++++++++++++
4 files changed, 115 insertions(+)
--
2.20.1
More information about the libcamera-devel
mailing list