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>
This commit is contained in:
parent
90906ba7fb
commit
91cf84fd4e
1 changed files with 1 additions and 0 deletions
|
@ -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. */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue