aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorChen-Yu Tsai <[email protected]>2022-03-31 09:49:06 +0100
committerMauro Carvalho Chehab <[email protected]>2022-04-24 08:52:45 +0100
commit309373a3571ef7175bd9da0c9b13476a718e8478 (patch)
treedd669965bab203c8f087aa1f34ea3773c29e4c2b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentdaf3999c12dcef14151710052fca9adfbc3967bc (diff)
media: hantro: Empty encoder capture buffers by default
The payload size for encoder capture buffers is set by the driver upon finishing encoding each frame, based on the encoded length returned from hardware, and whatever header and padding length used. Setting a non-zero default serves no real purpose, and also causes issues if the capture buffer is returned to userspace unused, confusing the application. Instead, always set the payload size to 0 for encoder capture buffers when preparing them. Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver") Fixes: 082aaecff35f ("media: hantro: Fix .buf_prepare") Signed-off-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Ezequiel Garcia <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions