ipa: libipa: Add frame context pointer in process()

Currently we have a single structure of IPAFrameContext but
subsequently, we shall have a ring buffer (or similar) container
to keep IPAFrameContext structures for each frame.

It would be a hassle to query out the frame context required for
process() (since they will reside in a ring buffer) by the IPA
for each process. Hence, prepare the process() libipa template to
accept a particular IPAFrameContext early on.

As for this patch, we shall pass in the pointer as nullptr, so
that the changes compile and keep working as-is.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Umang Jain 2022-05-17 22:12:33 +05:30 committed by Kieran Bingham
parent bab437df1f
commit 8b291bce82
18 changed files with 40 additions and 17 deletions

View file

@ -10,7 +10,8 @@ namespace libcamera {
namespace ipa {
template<typename Context, typename Config, typename Params, typename Stats>
template<typename Context, typename FrameContext, typename Config,
typename Params, typename Stats>
class Algorithm
{
public:
@ -28,6 +29,7 @@ public:
}
virtual void process([[maybe_unused]] Context &context,
[[maybe_unused]] FrameContext *frameContext,
[[maybe_unused]] const Stats *stats)
{
}