]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: vpe: don't rely on colorspace member for conversion
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:10:09 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:54:22 +0000 (13:54 -0300)
commita853aa1fc23f5a13437e9820a825017c589ea174
tree0076018844bfa661b8e3bfe7098a700d9342ffeb
parent36b29f1ce9fbdf37a9a3131a6de56b4066d5b109
media: ti-vpe: vpe: don't rely on colorspace member for conversion

Up to now VPE was relying on the colorspace value of struct v4l2_format
as an indication to perform color space conversion from YUV to RGB or
not.

Instead we should used the source/destination fourcc codes as a more
reliable indication to perform color space conversion or not.

To do so, we rework the csc module to use "struct v4l2_format *" as
parameters, and reorganize the coefficients tables in a more logical
way.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/csc.c
drivers/media/platform/ti-vpe/csc.h
drivers/media/platform/ti-vpe/vpe.c