mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 00:45:07 +03:00
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:
parent
58e63a6e7e
commit
0dbc6a507c
4 changed files with 50 additions and 7 deletions
21
src/ipa/raspberrypi/controller/sharpen_algorithm.hpp
Normal file
21
src/ipa/raspberrypi/controller/sharpen_algorithm.hpp
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue