summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/software_isp
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcamera/internal/software_isp')
-rw-r--r--include/libcamera/internal/software_isp/debayer_params.h21
-rw-r--r--include/libcamera/internal/software_isp/software_isp.h6
-rw-r--r--include/libcamera/internal/software_isp/swisp_stats.h2
3 files changed, 14 insertions, 15 deletions
diff --git a/include/libcamera/internal/software_isp/debayer_params.h b/include/libcamera/internal/software_isp/debayer_params.h
index 32cd448a..7d8fdd48 100644
--- a/include/libcamera/internal/software_isp/debayer_params.h
+++ b/include/libcamera/internal/software_isp/debayer_params.h
@@ -1,29 +1,28 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
- * Copyright (C) 2023, Red Hat Inc.
+ * Copyright (C) 2023, 2024 Red Hat Inc.
*
* Authors:
* Hans de Goede <hdegoede@redhat.com>
*
- * debayer_params.h - DebayerParams header
+ * DebayerParams header
*/
#pragma once
+#include <array>
+#include <stdint.h>
+
namespace libcamera {
struct DebayerParams {
- static constexpr unsigned int kGain10 = 256;
+ static constexpr unsigned int kRGBLookupSize = 256;
- unsigned int gainR;
- unsigned int gainG;
- unsigned int gainB;
+ using ColorLookupTable = std::array<uint8_t, kRGBLookupSize>;
- float gamma;
- /**
- * \brief Level of the black point, 0..255, 0 is no correction.
- */
- unsigned int blackLevel;
+ ColorLookupTable red;
+ ColorLookupTable green;
+ ColorLookupTable blue;
};
} /* namespace libcamera */
diff --git a/include/libcamera/internal/software_isp/software_isp.h b/include/libcamera/internal/software_isp/software_isp.h
index 42e96dcf..c5338c05 100644
--- a/include/libcamera/internal/software_isp/software_isp.h
+++ b/include/libcamera/internal/software_isp/software_isp.h
@@ -2,7 +2,7 @@
/*
* Copyright (C) 2023, Linaro Ltd
*
- * software_isp.h - Simple software ISP implementation
+ * Simple software ISP implementation
*/
#pragma once
@@ -27,7 +27,7 @@
#include <libcamera/ipa/soft_ipa_proxy.h>
#include "libcamera/internal/camera_sensor.h"
-#include "libcamera/internal/dma_heaps.h"
+#include "libcamera/internal/dma_buf_allocator.h"
#include "libcamera/internal/pipeline_handler.h"
#include "libcamera/internal/shared_mem_object.h"
#include "libcamera/internal/software_isp/debayer_params.h"
@@ -91,7 +91,7 @@ private:
Thread ispWorkerThread_;
SharedMemObject<DebayerParams> sharedParams_;
DebayerParams debayerParams_;
- DmaHeap dmaHeap_;
+ DmaBufAllocator dmaHeap_;
std::unique_ptr<ipa::soft::IPAProxySoft> ipa_;
};
diff --git a/include/libcamera/internal/software_isp/swisp_stats.h b/include/libcamera/internal/software_isp/swisp_stats.h
index 4ca8d647..ae11f112 100644
--- a/include/libcamera/internal/software_isp/swisp_stats.h
+++ b/include/libcamera/internal/software_isp/swisp_stats.h
@@ -2,7 +2,7 @@
/*
* Copyright (C) 2023, Linaro Ltd
*
- * swisp_stats.h - Statistics data format used by the software ISP and software IPA
+ * Statistics data format used by the software ISP and software IPA
*/
#pragma once