[libcamera-devel] [PATCH 14/22] ipa: ipu3: Introduce a queue of IPAFrameContext

Kieran Bingham kieran.bingham at ideasonboard.com
Mon Nov 8 16:42:36 CET 2021


Quoting Jean-Michel Hautbois (2021-11-08 13:13:42)
> In order to have multiple frame contexts, we will need a queue to store
> those. Introduce it in IPAIPU3 but do not use it in this commit yet.
> 

I suspect this should likely be added where it gets used ... let's see
what the next patches bring...

> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
> ---
>  src/ipa/ipu3/ipu3.cpp | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp
> index b4e0d49f..62df7819 100644
> --- a/src/ipa/ipu3/ipu3.cpp
> +++ b/src/ipa/ipu3/ipu3.cpp
> @@ -11,6 +11,7 @@
>  #include <limits>
>  #include <map>
>  #include <memory>
> +#include <queue>
>  #include <stdint.h>
>  #include <utility>
>  #include <vector>
> @@ -180,7 +181,10 @@ private:
>         /* Maintain the algorithms used by the IPA */
>         std::list<std::unique_ptr<ipa::ipu3::Algorithm>> algorithms_;
>  
> -       /* Local parameter storage */
> +       /* Queue for storing the per-frame context */
> +       std::queue<IPAFrameContext *> frameContextQueue;
> +
> +       /* Local context storage */
>         struct IPAContext context_;
>  };
>  
> -- 
> 2.32.0
>


More information about the libcamera-devel mailing list