Files
external_libcamera/src/ipa/raspberrypi/controller/rpi/sharpen.hpp
Naushir Patuck acd5d9979f ipa: raspberrypi: Change to C style code comments
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>
2022-07-27 18:12:13 +03:00

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 &params) override;
void setStrength(double strength) override;
void prepare(Metadata *imageMetadata) override;
private:
double threshold_;
double strength_;
double limit_;
double modeFactor_;
double userStrength_;
};
} /* namespace RPiController */