[libcamera-devel] [PATCH 12/22] ipa: ipu3: Introduce a frame index for the IPAFrameContext

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


Quoting Jean-Michel Hautbois (2021-11-08 13:13:40)
> As a preliminery to the usage of a queue of IPAFrameContext introduce a
> frame index.
> 
> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>


Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>

> ---
>  src/ipa/ipu3/ipa_context.cpp | 5 +++++
>  src/ipa/ipu3/ipa_context.h   | 2 ++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/src/ipa/ipu3/ipa_context.cpp b/src/ipa/ipu3/ipa_context.cpp
> index 2355a9c7..ea92be77 100644
> --- a/src/ipa/ipu3/ipa_context.cpp
> +++ b/src/ipa/ipu3/ipa_context.cpp
> @@ -133,4 +133,9 @@ namespace libcamera::ipa::ipu3 {
>   * <linux/intel-ipu3.h> struct ipu3_uapi_gamma_corr_lut for further details.
>   */
>  
> +/**
> + * \var IPAFrameContext::frameId
> + * \brief Frame number for this frame context
> + */
> +
>  } /* namespace libcamera::ipa::ipu3 */
> diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h
> index 1e46c61a..ee8f7b55 100644
> --- a/src/ipa/ipu3/ipa_context.h
> +++ b/src/ipa/ipu3/ipa_context.h
> @@ -51,6 +51,8 @@ struct IPAFrameContext {
>                 double gamma;
>                 struct ipu3_uapi_gamma_corr_lut gammaCorrection;
>         } toneMapping;
> +
> +       unsigned int frameId;
>  };
>  
>  struct IPAContext {
> -- 
> 2.32.0
>


More information about the libcamera-devel mailing list