Warn when v4l2_buffer::bytesused has an unexpected value
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 21 May 2010 13:17:31 +0000 (15:17 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 21 May 2010 13:17:31 +0000 (15:17 +0200)
commit454203ed354c84c6947bb774c8deda9b2646e190
treeaa083ad3b2f5cc076e557fdcce48a66804f892b5
parentf2ff2bfef299e3ebddeb4962aef50d3c3012edb6
Warn when v4l2_buffer::bytesused has an unexpected value

For uncompressed formats in capture devices, the v4l2_buffer::bytesused
field should have the same value as the v4l2_pix_format::sizeimage field
reported by the VIDIOC_G_FMT ioctl.

Print a warning on VIDIOC_DQBUG when the values don't match.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
yavta.c