summaryrefslogtreecommitdiff
path: root/src/ipa/simple/ipa_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/simple/ipa_context.h')
-rw-r--r--src/ipa/simple/ipa_context.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ipa/simple/ipa_context.h b/src/ipa/simple/ipa_context.h
index ac2a59d7..737bbbc3 100644
--- a/src/ipa/simple/ipa_context.h
+++ b/src/ipa/simple/ipa_context.h
@@ -7,6 +7,7 @@
#pragma once
+#include <array>
#include <stdint.h>
#include <libipa/fc_queue.h>
@@ -16,12 +17,25 @@ namespace libcamera {
namespace ipa::soft {
struct IPASessionConfiguration {
+ float gamma;
};
struct IPAActiveState {
struct {
uint8_t level;
} blc;
+
+ struct {
+ unsigned int red;
+ unsigned int green;
+ unsigned int blue;
+ } gains;
+
+ static constexpr unsigned int kGammaLookupSize = 1024;
+ struct {
+ std::array<double, kGammaLookupSize> gammaTable;
+ uint8_t blackLevel;
+ } gamma;
};
struct IPAFrameContext : public FrameContext {