• Magnus Damm's avatar
    V4L/DVB (9235): Precalculate vivi yuv values · 74d7c5af
    Magnus Damm authored
    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: default avatarMagnus Damm <damm@igel.co.jp>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
    74d7c5af
vivi.c 28.2 KB