summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/contrast_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/rpi/controller/contrast_status.h')
-rw-r--r--src/ipa/rpi/controller/contrast_status.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ipa/rpi/controller/contrast_status.h b/src/ipa/rpi/controller/contrast_status.h
new file mode 100644
index 00000000..fb9fe4ba
--- /dev/null
+++ b/src/ipa/rpi/controller/contrast_status.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+/*
+ * Copyright (C) 2019, Raspberry Pi Ltd
+ *
+ * contrast_status.h - contrast (gamma) control algorithm status
+ */
+#pragma once
+
+#include "pwl.h"
+
+/*
+ * The "contrast" algorithm creates a gamma curve, optionally doing a little bit
+ * of contrast stretching based on the AGC histogram.
+ */
+
+struct ContrastStatus {
+ RPiController::Pwl gammaCurve;
+ double brightness;
+ double contrast;
+};