diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-10-12 05:15:22 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-10-15 05:05:32 +0300 |
commit | 411987838ef6c141cc6e0ed2713cb06600855df8 (patch) | |
tree | 4e5b456c35025177097254e5a51cbadf996e05c7 /test/libtest/buffer_source.h | |
parent | 7e2948f5e106e7d3623134fb9f6c59347640c696 (diff) |
cam: Drop frames once the capture limit is reached
The camera session keeps requeuing requests until the capture limit is
reached. This causes more request than the limit to complete, as there's
a queue of requests in flight. When capturing from multiple cameras
concurrently, this results in the captureDone signal being emitted for
every request completion after the limit is reached, instead of once per
camera session when reaching the limit.
Fix this by simply dropping any request that completes after the limit
is reached. We could instead avoid requeuing more requests than needed
to reach the limit, but that may cause request starvation in pipelines,
which are currently not handled consistently (or correctly).
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/libtest/buffer_source.h')
0 files changed, 0 insertions, 0 deletions