drm/sun4i: Introduce color encoding and range properties
authorJernej Skrabec <jernej.skrabec@siol.net>
Sat, 13 Jul 2019 12:03:44 +0000 (14:03 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Sat, 20 Jul 2019 05:38:02 +0000 (07:38 +0200)
commit5917e0bdbc90cae408561f713eaa7d60e512e599
treeab3437462b066ecd10359cac4718409bd8c5636f
parent1eef08cb7dc7f240905071ea18eebd1232f302f6
drm/sun4i: Introduce color encoding and range properties

In order to correctly convert YUV color space to RGB, we have to know
color encoding and range.

Introduce these two properties using helper method.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190713120346.30349-2-jernej.skrabec@siol.net
drivers/gpu/drm/sun4i/sun8i_vi_layer.c