diff options
| author | Ricardo Ribalda <[email protected]> | 2024-06-10 19:17:48 +0000 |
|---|---|---|
| committer | Laurent Pinchart <[email protected]> | 2024-06-17 02:39:09 +0300 |
| commit | 53d7995383fae089319e24636250f248b0fdb0ce (patch) | |
| tree | d9e401fa025f9effd8383385fbe8c0e684937a09 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 141270bd95d48ea77adf2ea851e0621dc6725782 (diff) | |
media: uvcvideo: Fix hw timestamp handling for slow FPS
In UVC 1.5 we get a single clock value per frame. With the current
buffer size of 32, FPS slowers than 32 might roll-over twice.
The current code cannot handle two roll-over and provide invalid
timestamps.
Revome all the samples from the circular buffer that are more than two
rollovers old, so the algorithm always provides good timestamps.
Note that we are removing values that are more than one second old,
which means that there is enough distance between the two points that
we use for the interpolation to provide good values.
Tested-by: HungNien Chen <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Tomasz Figa <[email protected]>
Signed-off-by: Ricardo Ribalda <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions