Message ID | 20210812165243.276977-3-jeanmichel.hautbois@ideasonboard.com |
---|---|
State | Superseded |
Headers | show |
Series |
|
Related | show |
Hi Jean-Michel, Thank you for the patch. On Thu, Aug 12, 2021 at 06:52:35PM +0200, Jean-Michel Hautbois wrote: > An increasing amount of data and information needs to be shared between > the components that build up to implement image processing algorithms. > > Create a context structure which will allow us to work towards calling > algorithms in a modular way, and sharing information between the modules. > > The IPA context is a global context set at configure time (IPAConfiguration) > and a per-frame context (IPAFrameContext) used while streaming. > > Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> > Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> > --- > src/ipa/ipu3/ipa_context.h | 40 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 src/ipa/ipu3/ipa_context.h > > diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h > new file mode 100644 > index 00000000..0a197a41 > --- /dev/null > +++ b/src/ipa/ipu3/ipa_context.h > @@ -0,0 +1,40 @@ > +/* SPDX-License-Identifier: LGPL-2.1-or-later */ > +/* > + * Copyright (C) 2021, Google Inc. > + * > + * ipu3_ipa_context.h - IPU3 IPA Context > + * > + * Context information shared between the algorithms This line belongs to the definition of the structure below. > + */ > +#ifndef __LIBCAMERA_IPU3_IPA_CONTEXT_H__ > +#define __LIBCAMERA_IPU3_IPA_CONTEXT_H__ > + > +#include <linux/intel-ipu3.h> > + > +namespace libcamera { > + > +namespace ipa::ipu3 { > + > +/* Fixed configuration of the IPA */ Could you format documentation using Doxygen ? The documentation needs to be expanded, along with the documentation of the Algorithm functions, to explain how the pieces fit together. > +struct IPAConfiguration { > +}; > + > +/* > + * Context of a frame for each algorithms > + * This may be stored in a way that is associated with a given request > + * lifetime, though for now a single instance is used. > + */ > +struct IPAFrameContext { > +}; > + > +/* Global context of the IPA */ > +struct IPAContext { > + IPAConfiguration configuration; > + IPAFrameContext frameContext; > +}; > + > +} /* namespace ipa::ipu3 */ > + > +} /* namespace libcamera*/ > + > +#endif /* __LIBCAMERA_IPU3_IPA_CONTEXT_H__ */
diff --git a/src/ipa/ipu3/ipa_context.h b/src/ipa/ipu3/ipa_context.h new file mode 100644 index 00000000..0a197a41 --- /dev/null +++ b/src/ipa/ipu3/ipa_context.h @@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021, Google Inc. + * + * ipu3_ipa_context.h - IPU3 IPA Context + * + * Context information shared between the algorithms + */ +#ifndef __LIBCAMERA_IPU3_IPA_CONTEXT_H__ +#define __LIBCAMERA_IPU3_IPA_CONTEXT_H__ + +#include <linux/intel-ipu3.h> + +namespace libcamera { + +namespace ipa::ipu3 { + +/* Fixed configuration of the IPA */ +struct IPAConfiguration { +}; + +/* + * Context of a frame for each algorithms + * This may be stored in a way that is associated with a given request + * lifetime, though for now a single instance is used. + */ +struct IPAFrameContext { +}; + +/* Global context of the IPA */ +struct IPAContext { + IPAConfiguration configuration; + IPAFrameContext frameContext; +}; + +} /* namespace ipa::ipu3 */ + +} /* namespace libcamera*/ + +#endif /* __LIBCAMERA_IPU3_IPA_CONTEXT_H__ */