ipa: rpi: pisp: Add a DecompandAlgorithm class
The decompand algorithm implementation will subclass the DecompandAlgorithm class. This will be needed for setting the initial decompand values in a future commit. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
ffcdbf0980
commit
413f03a738
24
src/ipa/rpi/controller/decompand_algorithm.h
Normal file
24
src/ipa/rpi/controller/decompand_algorithm.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||
/*
|
||||
* Copyright (C) 2025, Raspberry Pi Ltd
|
||||
*
|
||||
* Decompand control algorithm interface
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "libipa/pwl.h"
|
||||
|
||||
#include "algorithm.h"
|
||||
|
||||
namespace RPiController {
|
||||
|
||||
class DecompandAlgorithm : public Algorithm
|
||||
{
|
||||
public:
|
||||
DecompandAlgorithm(Controller *controller = NULL)
|
||||
: Algorithm(controller)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
} /* namespace RPiController */
|
||||
@@ -13,7 +13,7 @@ LOG_DEFINE_CATEGORY(RPiDecompand)
|
||||
#define NAME "rpi.decompand"
|
||||
|
||||
Decompand::Decompand(Controller *controller)
|
||||
: Algorithm(controller)
|
||||
: DecompandAlgorithm(controller)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
#include <libipa/pwl.h>
|
||||
|
||||
#include "../decompand_algorithm.h"
|
||||
#include "../decompand_status.h"
|
||||
|
||||
#include "algorithm.h"
|
||||
|
||||
namespace RPiController {
|
||||
|
||||
struct DecompandConfig {
|
||||
@@ -13,7 +12,7 @@ struct DecompandConfig {
|
||||
libcamera::ipa::Pwl decompandCurve;
|
||||
};
|
||||
|
||||
class Decompand : public Algorithm
|
||||
class Decompand : public DecompandAlgorithm
|
||||
{
|
||||
public:
|
||||
Decompand(Controller *controller = nullptr);
|
||||
|
||||
Reference in New Issue
Block a user