diff options
| author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2020-04-30 18:42:44 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-04 12:44:42 +0200 |
| commit | ded874ece29d3fe2abd3775810a06056067eb68c (patch) | |
| tree | 9df386c0381d5dafa8a27eb8fe20fd37ef8cd6ef /include/linux/timerqueue.h | |
| parent | 18ffec750578f7447c288647d7282c7d12b1d969 (diff) | |
| download | cachepc-linux-ded874ece29d3fe2abd3775810a06056067eb68c.tar.gz cachepc-linux-ded874ece29d3fe2abd3775810a06056067eb68c.zip | |
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 <paul.kocialkowski@bootlin.com>
Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
