qv4l2: bypass libv4l2 when obtaining the colorspace
authorHans Verkuil <hansverk@cisco.com>
Fri, 18 Jul 2014 11:57:29 +0000 (13:57 +0200)
committerHans Verkuil <hansverk@cisco.com>
Fri, 18 Jul 2014 11:57:29 +0000 (13:57 +0200)
commitc7db9686c717731633614b42d4b624e473647a13
tree30c81e8f725c66ef750073ec664833f7bcbf77fb
parent225c71719b7e5b04d3f652de3bc55baa18b29fb0
qv4l2: bypass libv4l2 when obtaining the colorspace

libv4l2 does not update the colorspace information when it should.
So just for the purpose of reading the colorspace information we
bypass libv4l2 and do a direct VIDIOC_G_FMT to the driver.

I kept forgetting why I wasn't getting the right colorspace results
and everytime it took me a while before I realized that the colorspace
was wrong.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
utils/qv4l2/qv4l2.cpp