mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
The Raspberry Pi IPA module depends on boost only to parse the JSON tuning data files. As libcamera depends on libyaml, use the YamlParser class to parse those files and drop the dependency on boost. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
32 lines
750 B
C++
32 lines
750 B
C++
/* SPDX-License-Identifier: BSD-2-Clause */
|
|
/*
|
|
* Copyright (C) 2019, Raspberry Pi Ltd
|
|
*
|
|
* noise.h - Noise control algorithm
|
|
*/
|
|
#pragma once
|
|
|
|
#include "../algorithm.h"
|
|
#include "../noise_status.h"
|
|
|
|
/* This is our implementation of the "noise algorithm". */
|
|
|
|
namespace RPiController {
|
|
|
|
class Noise : public Algorithm
|
|
{
|
|
public:
|
|
Noise(Controller *controller);
|
|
char const *name() const override;
|
|
void switchMode(CameraMode const &cameraMode, Metadata *metadata) override;
|
|
int read(const libcamera::YamlObject ¶ms) override;
|
|
void prepare(Metadata *imageMetadata) override;
|
|
|
|
private:
|
|
/* the noise profile for analogue gain of 1.0 */
|
|
double referenceConstant_;
|
|
double referenceSlope_;
|
|
double modeFactor_;
|
|
};
|
|
|
|
} /* namespace RPiController */
|