[PATCH v4 05/22] drm/sun4i: frontend: Determine input format based on colorspace

Maxime Ripard maxime.ripard at bootlin.com
Wed Dec 5 15:39:05 UTC 2018


On Wed, Dec 05, 2018 at 09:36:46AM +0100, Paul Kocialkowski wrote:
> Since all the RGB input formats have the same value for the DATA_FMT
> field of the INPUT_FMT register, we can group them when the format is
> known to be RGB. Here, we assume that a non-YUV format is RGB, because
> the hardware does not support any other colorspace than RGB and YUV.
> 
> Use the DRM format info structure to check whether the format uses a
> YUV colorspace.
> 
> Signed-off-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>

Acked-by: Maxime Ripard <maxime.ripard at bootlin.com>

Maxime

-- 
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181205/f3dcb90e/attachment.sig>


More information about the dri-devel mailing list