diff options
| author | Michael Tretter <m.tretter@pengutronix.de> | 2023-10-13 13:00:29 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-12-07 08:56:14 +0100 |
| commit | 012602c560b43a6de4c82a463bb4f282d50c38b4 (patch) | |
| tree | 2cf126c5bafda1d36b755324ac2273852e23cad4 /tools/perf/scripts/python/flamegraph.py | |
| parent | media: rockchip: rga: use clamp() to clamp size to limits (diff) | |
| download | linux-012602c560b43a6de4c82a463bb4f282d50c38b4.tar.gz linux-012602c560b43a6de4c82a463bb4f282d50c38b4.zip | |
media: rockchip: rga: use pixelformat to find format
Use the pixelformat instead of the v4l2_format to find the rga_fmt. This
avoids knowing the structure and type of v4l2_format in rga_fmt_find and
simplifies the function.
Also cleanup the users of the function. In try_fmt always return the
found pixel format to make sure that the pixel format is always set.
Thus, we can be sure that we will find the rga_fmt in s_fmt and can drop
the check if a given format has been found.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
