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:
Naushir Patuck
2025-10-03 13:15:54 +01:00
committed by Kieran Bingham
parent ffcdbf0980
commit 413f03a738
3 changed files with 27 additions and 4 deletions

View 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 */

View File

@@ -13,7 +13,7 @@ LOG_DEFINE_CATEGORY(RPiDecompand)
#define NAME "rpi.decompand"
Decompand::Decompand(Controller *controller)
: Algorithm(controller)
: DecompandAlgorithm(controller)
{
}

View File

@@ -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);