OSDN Git Service

drm_hwcomposer: Add support for color encoding and range properties
authorMatvii Zorin <matvii.zorin@globallogic.com>
Tue, 8 Sep 2020 13:12:51 +0000 (16:12 +0300)
committerMatvii Zorin <matvii.zorin@globallogic.com>
Sat, 30 Jan 2021 13:50:41 +0000 (15:50 +0200)
commit8338c34a39632bd6b7887ceba2f5ec48c25776cc
treea228b023d4b27db980d9044b6e540a5a83906b37
parent6e6a93a78b56ffd2d0226079984ce34eb075ecd2
drm_hwcomposer: Add support for color encoding and range properties

Starting from the linux-v4.17, the DRM module has support for different
non-RGB color encodings that are controlled through plane-specific
COLOR_ENCODING and COLOR_RANGE properties.

This patch creates a matching between the HWC layer dataspace which is
supported by DRM driver and DRM plane properties.

Signed-off-by: Matvii Zorin <matvii.zorin@globallogic.com>
DrmHwcTwo.cpp
compositor/DrmDisplayCompositor.cpp
drm/DrmPlane.cpp
drm/DrmPlane.h
include/drmhwcomposer.h