[libcamera-devel,3/3] ipa: raspberrypi: Reduce the controller rate to 30fps
diff mbox series

Message ID 20220207151214.887140-3-naush@raspberrypi.com
State Accepted
Headers show
Series
  • [libcamera-devel,1/3] pipeline: raspberrypi: Allow Stream::returnBuffer() to handle internal buffers
Related show

Commit Message

Naushir Patuck Feb. 7, 2022, 3:12 p.m. UTC
With the controller algorithms running at 60fps, there are some dropped frames
when running at very high famerates. Reducing this to 30fps eliminates all these
drops without any noticeable changes to the image quality.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart Feb. 7, 2022, 11:41 p.m. UTC | #1
Hi Naush,

Thank you for the patch.

On Mon, Feb 07, 2022 at 03:12:14PM +0000, Naushir Patuck wrote:
> With the controller algorithms running at 60fps, there are some dropped frames
> when running at very high famerates. Reducing this to 30fps eliminates all these
> drops without any noticeable changes to the image quality.
> 
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>

This appears reasonable to me,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

A review from David would be nice too.

> ---
>  src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
> index a72d516f84ee..fd8fecb07f81 100644
> --- a/src/ipa/raspberrypi/raspberrypi.cpp
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> @@ -70,7 +70,7 @@ constexpr Duration defaultMaxFrameDuration = 250.0s;
>   * we rate-limit the controller Prepare() and Process() calls to lower than or
>   * equal to this rate.
>   */
> -constexpr Duration controllerMinFrameDuration = 1.0s / 60.0;
> +constexpr Duration controllerMinFrameDuration = 1.0s / 30.0;
>  
>  LOG_DEFINE_CATEGORY(IPARPI)
>
David Plowman Feb. 9, 2022, 9:35 a.m. UTC | #2
Hi Naush

Yes, I'm fine with this too.

On Mon, 7 Feb 2022 at 23:42, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
>
> Hi Naush,
>
> Thank you for the patch.
>
> On Mon, Feb 07, 2022 at 03:12:14PM +0000, Naushir Patuck wrote:
> > With the controller algorithms running at 60fps, there are some dropped frames
> > when running at very high famerates. Reducing this to 30fps eliminates all these
> > drops without any noticeable changes to the image quality.
> >
> > Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
>
> This appears reasonable to me,
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
> A review from David would be nice too.

Reviewed-by: David Plowman <david.plowman@raspberrypi.com>

Thanks!

David

>
> > ---
> >  src/ipa/raspberrypi/raspberrypi.cpp | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
> > index a72d516f84ee..fd8fecb07f81 100644
> > --- a/src/ipa/raspberrypi/raspberrypi.cpp
> > +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> > @@ -70,7 +70,7 @@ constexpr Duration defaultMaxFrameDuration = 250.0s;
> >   * we rate-limit the controller Prepare() and Process() calls to lower than or
> >   * equal to this rate.
> >   */
> > -constexpr Duration controllerMinFrameDuration = 1.0s / 60.0;
> > +constexpr Duration controllerMinFrameDuration = 1.0s / 30.0;
> >
> >  LOG_DEFINE_CATEGORY(IPARPI)
> >
>
> --
> Regards,
>
> Laurent Pinchart

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index a72d516f84ee..fd8fecb07f81 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -70,7 +70,7 @@  constexpr Duration defaultMaxFrameDuration = 250.0s;
  * we rate-limit the controller Prepare() and Process() calls to lower than or
  * equal to this rate.
  */
-constexpr Duration controllerMinFrameDuration = 1.0s / 60.0;
+constexpr Duration controllerMinFrameDuration = 1.0s / 30.0;
 
 LOG_DEFINE_CATEGORY(IPARPI)