mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
ipa: software_isp: 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
737fb452fc
commit
d2234560f8
2 changed files with 6 additions and 1 deletions
|
@ -54,6 +54,11 @@ struct IPAFrameContext : public FrameContext {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct IPAContext {
|
struct IPAContext {
|
||||||
|
IPAContext(unsigned int frameContextSize)
|
||||||
|
: frameContexts(frameContextSize)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
IPASessionConfiguration configuration;
|
IPASessionConfiguration configuration;
|
||||||
IPAActiveState activeState;
|
IPAActiveState activeState;
|
||||||
FCQueue<IPAFrameContext> frameContexts;
|
FCQueue<IPAFrameContext> frameContexts;
|
||||||
|
|
|
@ -41,7 +41,7 @@ class IPASoftSimple : public ipa::soft::IPASoftInterface, public Module
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
IPASoftSimple()
|
IPASoftSimple()
|
||||||
: context_({ {}, {}, { kMaxFrameContexts } })
|
: context_(kMaxFrameContexts)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue