]> asedeno.scripts.mit.edu Git - linux.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)
commit3ff3a712a9eabb3d7bf52c263dd1ece054345df4
tree0076018844bfa661b8e3bfe7098a700d9342ffeb
parentb373f84d77e1c409aacb4ff5bb5726c45fc8b166
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