<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 30 Nov 2022 at 12:24, Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com">kieran.bingham@ideasonboard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Quoting Naushir Patuck via libcamera-devel (2022-11-30 11:37:27)<br>
> Fix a bug in the IPA frame dropping (for rate control) logic, where the<br>
> metadata for the current context was copied from itself (i.e. a no-op), instead<br>
> of being copied from the previous context.<br>
> <br>
> This bug does not occur in normal conditions, only when running with a low<br>
> exposure time and unconstrained framerate, which happens in a particular<br>
> picamera2 test.<br>
> <br>
<br>
I thought that -1 being excluded from 0 on v1 would cause problems ;-)<br></blockquote><div><br></div><div>I was sure that I fixed it, but I probably lost the change in a rebase :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Reviewed-by: Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com" target="_blank">kieran.bingham@ideasonboard.com</a>><br>
<br>
> Fixes: 546154b13433 ("pipeline: ipa: raspberrypi: Use IPA cookies")<br>
> Signed-off-by: Naushir Patuck <<a href="mailto:naush@raspberrypi.com" target="_blank">naush@raspberrypi.com</a>><br>
> ---<br>
> src/ipa/raspberrypi/raspberrypi.cpp | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
> <br>
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp<br>
> index 0f914f841e54..bead436def3c 100644<br>
> --- a/src/ipa/raspberrypi/raspberrypi.cpp<br>
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp<br>
> @@ -1062,7 +1062,7 @@ void IPARPi::prepareISP(const ISPConfig &data)<br>
> * in helper_->Prepare().<br>
> */<br>
> RPiController::Metadata &lastMetadata =<br>
> - rpiMetadata_[ipaContext ? ipaContext : rpiMetadata_.size()];<br>
> + rpiMetadata_[(ipaContext ? ipaContext : rpiMetadata_.size()) - 1];<br>
> rpiMetadata.mergeCopy(lastMetadata);<br>
> processPending_ = false;<br>
> return;<br>
> -- <br>
> 2.25.1<br>
><br>
</blockquote></div></div>