summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2022-08-02 09:45:26 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-02 13:46:05 +0300
commit91cf84fd4e6d2b416b4545686fa06661e7b945d5 (patch)
tree372a67d962239cf895d43deda4aefeca97d0e991 /src/ipa
parent90906ba7fb95490abefa9bcbea812b4e2ff8dbdc (diff)
ipa: raspberrypi: Reset embedded data parser on configure
When we switch camera mode following a pipeline reconfiguration, the embedded data parser should be "reset" to discard any data that it may have cached and that might now be invalid. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/raspberrypi/cam_helper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipa/raspberrypi/cam_helper.cpp b/src/ipa/raspberrypi/cam_helper.cpp
index 37b66198..cac8f39e 100644
--- a/src/ipa/raspberrypi/cam_helper.cpp
+++ b/src/ipa/raspberrypi/cam_helper.cpp
@@ -106,6 +106,7 @@ void CamHelper::setCameraMode(const CameraMode &mode)
{
mode_ = mode;
if (parser_) {
+ parser_->reset();
parser_->setBitsPerPixel(mode.bitdepth);
parser_->setLineLengthBytes(0); /* We use SetBufferSize. */
}