Skip to content

Commit 9f9ab85

Browse files
committed
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>
1 parent 3edaa8e commit 9f9ab85

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/* SPDX-License-Identifier: BSD-2-Clause */
2+
/*
3+
* Copyright (C) 2025, Raspberry Pi Ltd
4+
*
5+
* Decompand control algorithm interface
6+
*/
7+
#pragma once
8+
9+
#include "libipa/pwl.h"
10+
11+
#include "algorithm.h"
12+
13+
namespace RPiController {
14+
15+
class DecompandAlgorithm : public Algorithm
16+
{
17+
public:
18+
DecompandAlgorithm(Controller *controller = NULL)
19+
: Algorithm(controller)
20+
{
21+
}
22+
};
23+
24+
} /* namespace RPiController */

src/ipa/rpi/controller/rpi/decompand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LOG_DEFINE_CATEGORY(RPiDecompand)
1313
#define NAME "rpi.decompand"
1414

1515
Decompand::Decompand(Controller *controller)
16-
: Algorithm(controller)
16+
: DecompandAlgorithm(controller)
1717
{
1818
}
1919

src/ipa/rpi/controller/rpi/decompand.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
#include <libipa/pwl.h>
44

5+
#include "../decompand_algorithm.h"
56
#include "../decompand_status.h"
67

7-
#include "algorithm.h"
8-
98
namespace RPiController {
109

1110
struct DecompandConfig {
1211
uint32_t bitdepth;
1312
libcamera::ipa::Pwl decompandCurve;
1413
};
1514

16-
class Decompand : public Algorithm
15+
class Decompand : public DecompandAlgorithm
1716
{
1817
public:
1918
Decompand(Controller *controller = NULL);

0 commit comments

Comments
 (0)