Linux kernel source tree
Go to file
Daniele Castagna 560dc664f6 UPSTREAM: drm/rockchip: Fix YUV buffers color rendering
Currently, YUV hardware overlays are converted to RGB using
a color space conversion different than BT.601.

The result is that colors of e.g. NV12 buffers don't match
colors of YUV hardware overlays.

In order to fix this, enable YUV2YUV and set appropriate coefficients
for formats such as NV12 to be displayed correctly.

This commit was tested using modetest, gstreamer and chromeos (hardware
accelerated video playback). Before the commit, tests rendering
with NV12 format resulted in colors not displayed correctly.

Test examples (Tested on RK3399 and RK3288 boards
connected to HDMI monitor):

  $ modetest 39@32:1920x1080@NV12
  $ gst-launch-1.0 videotestrc ! video/x-raw,format=NV12 ! kmssink

Change-Id: Ice00c20dd9a8bd850b1d4b3f47d4d1f1f7ef83f3
Signed-off-by: Daniele Castagna <dcastagna@chromium.org>
[ezequiel: rebase on linux-next and massage commit log]
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190108214659.28794-1-ezequiel@collabora.com
(cherry picked from commit 1c21aa8f2b)
2019-04-03 17:55:18 +08:00
arch thermal: rockchip: add pinctrl control 2019-03-28 19:26:01 +08:00
block Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-02-14 11:48:20 +08:00
certs rk: revert to v4.4 2019-02-10 00:33:21 +08:00
crypto rk: revert to v4.4 2019-02-10 00:33:21 +08:00
Documentation UPSTREAM: drm/rockchip: dw_hdmi: add dw-hdmi support for the rk3328 2019-04-01 19:26:22 +08:00
drivers UPSTREAM: drm/rockchip: Fix YUV buffers color rendering 2019-04-03 17:55:18 +08:00
firmware
fs f2fs: add a new limit for reserve root 2019-02-25 16:39:12 +08:00
include UPSTREAM: drm/crc: Cleanup crtc_crc_open function 2019-04-03 17:38:17 +08:00
init rk: init/main.c: support print long kernel command line 2019-03-21 19:59:28 +08:00
ipc rk: revert to v4.4 2019-02-10 00:33:21 +08:00
kernel sched/fair: fix bug: remove printk while schedule is in progress 2019-02-27 20:45:07 +08:00
lib HACK: lib/kobject_uevent.c: ignore thermal uevent when suspend 2019-02-26 11:26:07 +08:00
LICENSES LICENSES: Remove CC-BY-SA-4.0 license text 2018-10-18 11:28:50 +02:00
mm rk: revert to v4.4 2019-02-10 00:33:21 +08:00
net Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-02-14 11:48:20 +08:00
samples rk: revert to v4.4 2019-02-10 00:33:21 +08:00
scripts ANDROID: rk: kbuild: dtc generation of symbols 2019-02-15 19:57:37 +08:00
security Merge remote branch 'android-4.19' of https://android.googlesource.com/kernel/common 2019-02-14 11:48:20 +08:00
sound ASoC: rockchip: spdif: fix some coding style issues 2019-03-28 22:13:27 +08:00
tools rk: revert to v4.4 2019-02-10 00:33:21 +08:00
usr initramfs: move gen_initramfs_list.sh from scripts/ to usr/ 2018-08-22 23:21:44 +09:00
virt rk: revert to v4.4 2019-02-10 00:33:21 +08:00
.checkpatch.conf
.clang-format clang-format: Set IndentWrappedFunctionNames false 2018-08-01 18:38:51 +02:00
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore rk: .gitignore: ignore boot.img/kernel.img/resource.img/zboot.mg 2019-02-15 18:31:05 +08:00
.mailmap rk: revert to v4.4 2019-02-10 00:33:21 +08:00
.scmversion
build.config.cuttlefish.aarch64 rk: revert to v4.4 2019-02-10 00:33:21 +08:00
build.config.cuttlefish.x86_64 rk: revert to v4.4 2019-02-10 00:33:21 +08:00
COPYING
CREDITS 9p: remove Ron Minnich from MAINTAINERS 2018-08-17 16:20:26 -07:00
Kbuild rk: revert to v4.4 2019-02-10 00:33:21 +08:00
Kconfig kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt 2018-08-02 08:06:55 +09:00
logo_kernel.bmp
logo.bmp
MAINTAINERS rk: revert to v4.4 2019-02-10 00:33:21 +08:00
Makefile rk: Makefile: fix Revert "x86: Force asm-goto" 2019-02-14 18:26:48 +08:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.