]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vivid-tpg: improve Y16 color setup
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 5 Jun 2015 06:45:38 +0000 (03:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 6 Jun 2015 10:34:52 +0000 (07:34 -0300)
commitf7d89ceb948e3532fc65c2b5ac9118b125c06ac3
tree57faa559191a8c0823b4a30ba07f8c67b31102e1
parent1e0f9e94d8339dc0addfae4b81b0dab55958712a
[media] vivid-tpg: improve Y16 color setup

Currently the colors for the Y16 and Y16_BE pixelformats are in the range
0x0000-0xff00. So pure white (0xffff) is never created.

Improve this by making white really white. For other colors the lsb remains 0
so vivid can be used to detect endian problems.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Ricardo Ribalda <ricardo.ribalda@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-tpg.c