]> git.baikalelectronics.ru Git - kernel.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)
commit5ddf522a8c42e7be6f8919f3b758a3d504f574ab
tree85f6163f6990e5dd2491878b1fd6488d70145969
parent1f4467f08b022082a5c82730933d89dfebb97440
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