As part of the on-going refactor efforts for the source files in src/ipa/raspberrypi/, switch all C++ style comments to C style comments. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
35 lines
825 B
C++
35 lines
825 B
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2019, Raspberry Pi (Trading) Limited
|
|
*
|
|
* sharpen.hpp - sharpening control algorithm
|
|
*/
|
|
#pragma once
|
|
|
|
#include "../sharpen_algorithm.hpp"
|
|
#include "../sharpen_status.h"
|
|
|
|
/* This is our implementation of the "sharpen algorithm". */
|
|
|
|
namespace RPiController {
|
|
|
|
class Sharpen : public SharpenAlgorithm
|
|
{
|
|
public:
|
|
Sharpen(Controller *controller);
|
|
char const *name() const override;
|
|
void switchMode(CameraMode const &cameraMode, Metadata *metadata) override;
|
|
void read(boost::property_tree::ptree const ¶ms) override;
|
|
void setStrength(double strength) override;
|
|
void prepare(Metadata *imageMetadata) override;
|
|
|
|
private:
|
|
double threshold_;
|
|
double strength_;
|
|
double limit_;
|
|
double modeFactor_;
|
|
double userStrength_;
|
|
};
|
|
|
|
} /* namespace RPiController */
|