[media] via-camera: disable RGB mode
authorDaniel Drake <dsd@laptop.org>
Wed, 26 Oct 2011 12:16:50 +0000 (09:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 Nov 2011 14:04:52 +0000 (12:04 -0200)
commit9c900f02385cb18e1a6c65d22a7acbb8c73c07c2
tree3f9406a029cfac3e583f134fe625f9f7edd7d2a2
parent318cde38af41fefdd03a7e42c9fb70e9719ed83f
[media] via-camera: disable RGB mode

The RGB mode does not work correctly. It captures fine at 640x480
but whenever the scaling engine is used to produce another resolution,
color corruption occurs (lots of erroneous pink and green).

It is not clear how the scaling engine is supposed to work and how
it knows which pixel format it is dealing with. Work around this
problem by disabling RGB support. YUYV scaling works just fine.

Test case:

gst-launch v4l2src ! video/x-raw-rgb,bpp=16,width=320,height=240 ! \
ffmpegcolorspace ! xvimagesink

Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/via-camera.c