ipa: rkisp1: Add support of ColorProcessing control

Add ColorProcessing algorithm that is in charge to manage brightness,
contrast and saturation controls.  These controls are currently based on
user controls.

Signed-off-by: Florian Sylvestre <fsylvestre@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Florian Sylvestre
2022-07-27 10:38:19 +02:00
committed by Laurent Pinchart
parent 7a80e01b4a
commit 5b07fa2003
7 changed files with 165 additions and 0 deletions
+12
View File
@@ -972,6 +972,18 @@ int PipelineHandlerRkISP1::createCamera(MediaEntity *sensor)
std::forward_as_tuple(&controls::Sharpness),
std::forward_as_tuple(0.0f, 10.0f, 1.0f));
ctrls.emplace(std::piecewise_construct,
std::forward_as_tuple(&controls::Brightness),
std::forward_as_tuple(-1.0f, 0.993f));
ctrls.emplace(std::piecewise_construct,
std::forward_as_tuple(&controls::Contrast),
std::forward_as_tuple(0.0f, 1.993f));
ctrls.emplace(std::piecewise_construct,
std::forward_as_tuple(&controls::Saturation),
std::forward_as_tuple(0.0f, 1.993f));
ctrls.emplace(std::piecewise_construct,
std::forward_as_tuple(&controls::draft::NoiseReductionMode),
std::forward_as_tuple(controls::draft::NoiseReductionModeValues));