libv4l: Add support for 8-bits grey format (V4L2_PIX_FMT_GREY)
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 8 Dec 2010 14:10:36 +0000 (12:10 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 8 Dec 2010 16:38:36 +0000 (14:38 -0200)
commit1994b83657e94732165b2e70ad2ff8bd94268590
tree7edc35b4a79ab00890513999a439c298d161213a
parent5120c62047cce38e18b83e4896861045608fc44d
libv4l: Add support for 8-bits grey format (V4L2_PIX_FMT_GREY)

Grey format is like YUV, with U/V channels with 0. Add the corresponding
bits to libv4l, for it to handle this format.

v2: Fixed U/V "zero" value (0x80), thanks to Hans de Goede
    <hdegoede@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
lib/libv4lconvert/libv4lconvert-priv.h
lib/libv4lconvert/libv4lconvert.c
lib/libv4lconvert/rgbyuv.c