diff options
| author | Paul Kocialkowski <[email protected]> | 2020-04-30 18:42:44 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-07-04 12:44:42 +0200 |
| commit | ded874ece29d3fe2abd3775810a06056067eb68c (patch) | |
| tree | 9df386c0381d5dafa8a27eb8fe20fd37ef8cd6ef /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 18ffec750578f7447c288647d7282c7d12b1d969 (diff) | |
media: rockchip: rga: Introduce color fmt macros and refactor CSC mode logic
This introduces two macros: RGA_COLOR_FMT_IS_YUV and RGA_COLOR_FMT_IS_RGB
which allow quick checking of the colorspace familily of a RGA color format.
These macros are then used to refactor the logic for CSC mode selection.
The two nested tests for input colorspace are simplified into a single one,
with a logical and, making the whole more readable.
Signed-off-by: Paul Kocialkowski <[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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions