[libcamera-devel,v1,0/3] Raspberry Pi: Improving camera timeouts
mbox series

Message ID mailman.12.1677156590.25031.libcamera-devel@lists.libcamera.org
Headers show
Series
  • Raspberry Pi: Improving camera timeouts
Related show

Message

Naushir Patuck Feb. 23, 2023, 12:49 p.m. UTC
Hi,

This series addresses a nagging problem I've been ignoring with the existing
meachanism of setting Unicam timeouts.

The current timeout value is based on the maximum possible frame duration
advertised by the sensor mode.  For the IMX477 and IMX702, this is in the order
of 10s of minutes!  For almost all use cases this timeout value is really
impractical.  We can improve upon this by tracking the frame durations
programmed by the IPA to calculate a timeout value.

Patch 1/3 adds an explicit interface to set the timeout value from the IPA.
Patch 2/3 updates the heruistics for calculating the timeout based on the last
10 frame durations used.
Patch 3/3 Adds an override to the calculated timeout value for users who want
explicit control over such things.

Regards,
Naush

Naushir Patuck (3):
  pipeline: ipa: raspberrypi: Change Unicam timeout handling
  ipa: raspberrypi: Better heruistics for calculating Unicam timeout
  pipeline: raspberrypi: Add a Unicam timeout override config options

 include/libcamera/ipa/raspberrypi.mojom       |  2 +-
 src/ipa/raspberrypi/raspberrypi.cpp           | 33 +++++++++++++++-
 .../pipeline/raspberrypi/data/example.yaml    | 11 +++++-
 .../pipeline/raspberrypi/raspberrypi.cpp      | 39 +++++++++++++++----
 4 files changed, 73 insertions(+), 12 deletions(-)