pipeline: rpi: Reset the frame lengths queue during configure
The IPA stores a list of the last 10 frame lengths applied to the sensor for determining the timeout to use. This list gets reset on start(), but there is a path through the code that accesses this list in configure() which happens earlier, causing a logical error. Fix this by constructing the list with 10 initial values of 0s. Bug: https://github.com/raspberrypi/libcamera/issues/64 Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
51533fecae
commit
e991a2887e
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ LOG_DEFINE_CATEGORY(IPARPI)
|
||||||
namespace ipa::RPi {
|
namespace ipa::RPi {
|
||||||
|
|
||||||
IpaBase::IpaBase()
|
IpaBase::IpaBase()
|
||||||
: controller_(), frameCount_(0), mistrustCount_(0), lastRunTimestamp_(0),
|
: controller_(), frameLengths_(FrameLengthsQueueSize, 0s), frameCount_(0),
|
||||||
firstStart_(true), flickerState_({ 0, 0s })
|
mistrustCount_(0), lastRunTimestamp_(0), firstStart_(true), flickerState_({ 0, 0s })
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue