[libcamera-devel,RFC,v3,12/16] pipeline: ipu3: Set MaxLatency ControlInfo
diff mbox series

Message ID 20210702103800.41291-13-paul.elder@ideasonboard.com
State Superseded
Delegated to: Paul Elder
Headers show
Series
  • Preliminary FULL plumbing
Related show

Commit Message

Paul Elder July 2, 2021, 10:37 a.m. UTC
We want the IPU3 IPA to support setting MaxLatency, so initialize the
MaxLatency ControlInfo in the IPU3 pipeline handler.

Bug: https://bugs.libcamera.org/show_bug.cgi?id=50
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

---
No change in v3
---
 src/libcamera/pipeline/ipu3/ipu3.cpp | 1 +
 1 file changed, 1 insertion(+)

Comments

Jacopo Mondi July 5, 2021, 3:56 p.m. UTC | #1
Hi Paul,

On Fri, Jul 02, 2021 at 07:37:56PM +0900, Paul Elder wrote:
> We want the IPU3 IPA to support setting MaxLatency, so initialize the
> MaxLatency ControlInfo in the IPU3 pipeline handler.
>
> Bug: https://bugs.libcamera.org/show_bug.cgi?id=50
> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>

I wish... isn't it a bie early to claim so ? :)

> ---
> No change in v3
> ---
>  src/libcamera/pipeline/ipu3/ipu3.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> index 76c3bb3d..d3dafd98 100644
> --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> @@ -49,6 +49,7 @@ static constexpr unsigned int IMGU_OUTPUT_HEIGHT_MARGIN = 32;
>  static constexpr Size IPU3ViewfinderSize(1280, 720);
>
>  static const ControlInfoMap::Map IPU3Controls = {
> +	{ &controls::draft::MaxLatency, ControlInfo(0, 0, 0) },
>  	{ &controls::draft::PipelineDepth, ControlInfo(2, 3) },
>  };
>
> --
> 2.27.0
>
Laurent Pinchart July 11, 2021, 10:39 p.m. UTC | #2
Hi Jacopo,

On Mon, Jul 05, 2021 at 05:56:11PM +0200, Jacopo Mondi wrote:
> On Fri, Jul 02, 2021 at 07:37:56PM +0900, Paul Elder wrote:
> > We want the IPU3 IPA to support setting MaxLatency, so initialize the
> > MaxLatency ControlInfo in the IPU3 pipeline handler.
> >
> > Bug: https://bugs.libcamera.org/show_bug.cgi?id=50
> > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> I wish... isn't it a bie early to claim so ? :)

Let's say that the patch itself is fine, but more changes are needed if
we don't want to lie :-)

Do you think we should delay merging this ?

> > ---
> > No change in v3
> > ---
> >  src/libcamera/pipeline/ipu3/ipu3.cpp | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > index 76c3bb3d..d3dafd98 100644
> > --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> > +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > @@ -49,6 +49,7 @@ static constexpr unsigned int IMGU_OUTPUT_HEIGHT_MARGIN = 32;
> >  static constexpr Size IPU3ViewfinderSize(1280, 720);
> >
> >  static const ControlInfoMap::Map IPU3Controls = {
> > +	{ &controls::draft::MaxLatency, ControlInfo(0, 0, 0) },
> >  	{ &controls::draft::PipelineDepth, ControlInfo(2, 3) },
> >  };
> >
Jacopo Mondi July 12, 2021, 7:51 a.m. UTC | #3
Hi Laurent,

On Mon, Jul 12, 2021 at 01:39:29AM +0300, Laurent Pinchart wrote:
> Hi Jacopo,
>
> On Mon, Jul 05, 2021 at 05:56:11PM +0200, Jacopo Mondi wrote:
> > On Fri, Jul 02, 2021 at 07:37:56PM +0900, Paul Elder wrote:
> > > We want the IPU3 IPA to support setting MaxLatency, so initialize the
> > > MaxLatency ControlInfo in the IPU3 pipeline handler.
> > >
> > > Bug: https://bugs.libcamera.org/show_bug.cgi?id=50
> > > Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
> > > Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> >
> > I wish... isn't it a bie early to claim so ? :)
>
> Let's say that the patch itself is fine, but more changes are needed if
> we don't want to lie :-)
>
> Do you think we should delay merging this ?

As long as FULL is not enabled this should make a difference, so it
can go in earlier.

Thanks
  j

>
> > > ---
> > > No change in v3
> > > ---
> > >  src/libcamera/pipeline/ipu3/ipu3.cpp | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > > index 76c3bb3d..d3dafd98 100644
> > > --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> > > +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> > > @@ -49,6 +49,7 @@ static constexpr unsigned int IMGU_OUTPUT_HEIGHT_MARGIN = 32;
> > >  static constexpr Size IPU3ViewfinderSize(1280, 720);
> > >
> > >  static const ControlInfoMap::Map IPU3Controls = {
> > > +	{ &controls::draft::MaxLatency, ControlInfo(0, 0, 0) },
> > >  	{ &controls::draft::PipelineDepth, ControlInfo(2, 3) },
> > >  };
> > >
>
> --
> Regards,
>
> Laurent Pinchart

Patch
diff mbox series

diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 76c3bb3d..d3dafd98 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -49,6 +49,7 @@  static constexpr unsigned int IMGU_OUTPUT_HEIGHT_MARGIN = 32;
 static constexpr Size IPU3ViewfinderSize(1280, 720);
 
 static const ControlInfoMap::Map IPU3Controls = {
+	{ &controls::draft::MaxLatency, ControlInfo(0, 0, 0) },
 	{ &controls::draft::PipelineDepth, ControlInfo(2, 3) },
 };