diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2020-11-17 10:10:36 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-11-17 14:22:46 +0200 |
commit | de5d03673c41f5f117d03c23495de5620fd6f42e (patch) | |
tree | feab84f8e3243e05ab264ae075be64896f198896 /src/ipa/raspberrypi/md_parser.cpp | |
parent | 7f1ebbab3864b83c1a1bd12f1ca7f2689fbb07d0 (diff) |
pipeline: raspberrypi: Rework bayer/embedded data buffer matching
There is a condition that would cause the buffers to never be in sync
when we using only a single buffer in the bayer and embedded data streams.
This occurred because even though both streams would get flushed to resync,
one stream's only buffer was already queued in the device, and would end
up never matching.
Rework the buffer matching logic by combining updateQueue() and
tryFlushQueue() into a single function findMatchingBuffers(). This would
allow us to flush the queues at the same time as we match buffers, avoiding
the the above condition.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Tested-by: David Plowman <david.plowman@raspberrypi.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/md_parser.cpp')
0 files changed, 0 insertions, 0 deletions