ipa: ipu3: Add constructor to the IPA context
Let's have a constructor that takes just the non-default argument, without the need to specify the defaults. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
d2234560f8
commit
c11e536ed2
3 changed files with 10 additions and 1 deletions
|
@ -39,6 +39,10 @@ namespace libcamera::ipa::ipu3 {
|
|||
* \struct IPAContext
|
||||
* \brief Global IPA context data shared between all algorithms
|
||||
*
|
||||
* \fn IPAContext::IPAContext
|
||||
* \brief Initialize the instance with the given number of frame contexts
|
||||
* \param[in] frameContextSize Size of the frame context ring buffer
|
||||
*
|
||||
* \var IPAContext::configuration
|
||||
* \brief The IPA session configuration, immutable during the session
|
||||
*
|
||||
|
|
|
@ -84,6 +84,11 @@ struct IPAFrameContext : public FrameContext {
|
|||
};
|
||||
|
||||
struct IPAContext {
|
||||
IPAContext(unsigned int frameContextSize)
|
||||
: frameContexts(frameContextSize)
|
||||
{
|
||||
}
|
||||
|
||||
IPASessionConfiguration configuration;
|
||||
IPAActiveState activeState;
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ private:
|
|||
};
|
||||
|
||||
IPAIPU3::IPAIPU3()
|
||||
: context_({ {}, {}, { kMaxFrameContexts }, {} })
|
||||
: context_(kMaxFrameContexts)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue