]> git.baikalelectronics.ru Git - kernel.git/commit
drm/fourcc: Add format info helpers for checking YUV sub-sampling
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 18 Jan 2019 14:51:12 +0000 (15:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 18 Jan 2019 18:00:18 +0000 (19:00 +0100)
commit4ff151ec1bd05d8d2f03c8d62fd856dde00d1e4f
tree8d29c37b6883803356be4097382828e284e07feb
parent9ee28b0d6729f75e69465a7b2a38046c430ef027
drm/fourcc: Add format info helpers for checking YUV sub-sampling

Display engine drivers often need to distinguish between different types of
YUV sub-sampling. This introduces helpers to check for common sub-sampling
ratios in their commonly-used denomination from the DRM format info.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190118145133.21281-3-paul.kocialkowski@bootlin.com
include/drm/drm_fourcc.h