ipa: libipa: algorithm: prepare(): Pass frame and frame Context
Pass the current frame number, and the current FrameContext for calls to prepare. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
ef447647b6
commit
87d36de543
30 changed files with 92 additions and 22 deletions
|
@ -297,6 +297,9 @@ void IPARkISP1::queueRequest(const uint32_t frame, const ControlList &controls)
|
|||
|
||||
void IPARkISP1::fillParamsBuffer(const uint32_t frame, const uint32_t bufferId)
|
||||
{
|
||||
/* \todo Obtain the frame context to pass to process from the FCQueue */
|
||||
IPAFrameContext frameContext;
|
||||
|
||||
rkisp1_params_cfg *params =
|
||||
reinterpret_cast<rkisp1_params_cfg *>(
|
||||
mappedBuffers_.at(bufferId).planes()[0].data());
|
||||
|
@ -305,7 +308,7 @@ void IPARkISP1::fillParamsBuffer(const uint32_t frame, const uint32_t bufferId)
|
|||
memset(params, 0, sizeof(*params));
|
||||
|
||||
for (auto const &algo : algorithms())
|
||||
algo->prepare(context_, params);
|
||||
algo->prepare(context_, frame, frameContext, params);
|
||||
|
||||
paramsBufferReady.emit(frame);
|
||||
context_.frameContext.frameCount++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue