diff options
| author | Benjamin Gaignard <[email protected]> | 2023-11-09 17:29:14 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-11-23 11:47:08 +0100 |
| commit | 3431e32cb585f3159ffd4ccceffa0d570bdd5744 (patch) | |
| tree | a38a88156b4b3f04361899b623558eae402eedf0 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 07cb30216d31bee8e4250549ebb4086ba5951887 (diff) | |
media: videobuf2: Rework offset 'cookie' encoding pattern
Change how offset 'cookie' field value is computed to make possible
to use more buffers.
The maximum number of buffers depends of PAGE_SHIFT value and can
go up to 0x7fff when PAGE_SHIFT = 12.
With this encoding pattern we know the maximum number that a queue
could store so we can check it at queue init time.
It also make easier and faster to find buffer and plane from using
the offset field.
Change __find_plane_by_offset() prototype to return the video buffer
itself rather than it index.
Signed-off-by: Benjamin Gaignard <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions