]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9235): Precalculate vivi yuv values
authorMagnus Damm <damm@igel.co.jp>
Tue, 14 Oct 2008 15:46:59 +0000 (12:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:24:53 +0000 (17:24 -0300)
commit74d7c5af78234467fed522c0f0ff47ef765cecb8
tree85f6163f6990e5dd2491878b1fd6488d70145969
parentd54c17e43514ecf0dceffbe13a324d4b6df5b6e0
V4L/DVB (9235): Precalculate vivi yuv values

This patch improves the color space conversion code in vivi.c to
directly draw with precalculated YUV values as palette instead of
drawing with YUV that is calculated from RGB for every two pixels.
This way we eliminate the need for 9 multiplications every two pixels.

A side effect of this patch is that the time counter is changed from
green text on black background to white text on black background.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/vivi.c