libcamera: ipa: raspberrypi: Add sharpness strength control

The sharpness control is, loosely speaking, a gain applied to
the amount of sharpening added to an image. We also report the
sharpness setting used back to the caller in metadata.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman 2020-06-23 10:14:03 +01:00 committed by Laurent Pinchart
parent 58e63a6e7e
commit 0dbc6a507c
4 changed files with 50 additions and 7 deletions

View file

@ -0,0 +1,21 @@
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2020, Raspberry Pi (Trading) Limited
*
* sharpen_algorithm.hpp - sharpness control algorithm interface
*/
#pragma once
#include "algorithm.hpp"
namespace RPi {
class SharpenAlgorithm : public Algorithm
{
public:
SharpenAlgorithm(Controller *controller) : Algorithm(controller) {}
// A sharpness control algorithm must provide the following:
virtual void SetStrength(double strength) = 0;
};
} // namespace RPi