ipa: rkisp1: Add constructor to the ipa context

Initialization using the initializer list is cumbersome and requires
modifications to the list whenever the context is modified. Fix that by
adding a proper constructor to the context.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Stefan Klug
2024-10-08 17:29:42 +02:00
parent f7121716db
commit 87431d1cff
2 changed files with 6 additions and 1 deletions

View File

@@ -180,6 +180,11 @@ struct IPAFrameContext : public FrameContext {
};
struct IPAContext {
IPAContext(unsigned int frameContextSize)
: hw(nullptr), frameContexts(frameContextSize)
{
}
const IPAHwSettings *hw;
IPACameraSensorInfo sensorInfo;
IPASessionConfiguration configuration;

View File

@@ -124,7 +124,7 @@ const ControlInfoMap::Map rkisp1Controls{
} /* namespace */
IPARkISP1::IPARkISP1()
: context_({ {}, {}, {}, {}, { kMaxFrameContexts }, {}, {} })
: context_(kMaxFrameContexts)
{
}