qv4l2: don't change the format just because we use libv4l2.
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 18 Aug 2011 12:20:34 +0000 (14:20 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Thu, 18 Aug 2011 12:20:34 +0000 (14:20 +0200)
commit8b3ec9e74e7553243589b1ca8c221e435b5b2823
treeb817d30248368943b9ace313c62394cb8ba05041
parent6235fdde7448138a57ab5b5a471b10fcd452ab77
qv4l2: don't change the format just because we use libv4l2.

So some reason qv4l2 switched to the RGB24 format if the video node was
opened through libv4l2. This is a completely unexpected side-effect that
should not happen, especially since qv4l2 is usually used as a test
utility.

This may mean that a frame is converted twice: once inside libv4l2, then
to get it into a format suitable for the screen. But that's OK. After all,
that's what you asked for.

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