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:
@@ -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;
|
||||
|
||||
@@ -124,7 +124,7 @@ const ControlInfoMap::Map rkisp1Controls{
|
||||
} /* namespace */
|
||||
|
||||
IPARkISP1::IPARkISP1()
|
||||
: context_({ {}, {}, {}, {}, { kMaxFrameContexts }, {}, {} })
|
||||
: context_(kMaxFrameContexts)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user