summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipa_context.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-21 13:13:04 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-28 05:41:07 +0300
commit8d01b8a5549f5b3c8e10acc24dab4bbaf3bf9757 (patch)
treeb742d7337302fbfad715b09657c4bfe91f093b71 /src/ipa/ipu3/ipa_context.h
parent80cfe8f0f7ef77d971f70ba3ced0f267b61bf454 (diff)
ipa: ipu3: Use base FrameContext class
Inherit from the base FrameContext class in the IPU3 IPAFrameContext. This allows dropping the frame member, which is now stored in the base class. As the frame member of the base FrameContext class is private, the check that accesses it in IPAIPU3::processStatsBuffer() would fail to compile. As it won't be relevant anymore with the upcoming switch to the FCQueue class, drop it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/ipu3/ipa_context.h')
-rw-r--r--src/ipa/ipu3/ipa_context.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h
index 42e11141..e8fc4276 100644
--- a/src/ipa/ipu3/ipa_context.h
+++ b/src/ipa/ipu3/ipa_context.h
@@ -17,6 +17,8 @@
#include <libcamera/controls.h>
#include <libcamera/geometry.h>
+#include <libipa/fc_queue.h>
+
namespace libcamera {
namespace ipa::ipu3 {
@@ -76,16 +78,15 @@ struct IPAActiveState {
} toneMapping;
};
-struct IPAFrameContext {
+struct IPAFrameContext : public FrameContext {
IPAFrameContext();
- IPAFrameContext(uint32_t id, const ControlList &reqControls);
+ IPAFrameContext(const ControlList &reqControls);
struct {
uint32_t exposure;
double gain;
} sensor;
- uint32_t frame;
ControlList frameControls;
};