Hans Verkuil 32a7726031 [media] videobuf2-core: move plane verification out of __fill_v4l2/vb_buffer
The plane verification should be done before actually queuing or
dequeuing buffers, so move it out of __fill_v4l2_buffer and __fill_vb_buffer
and call it as a separate step.
This also makes it possible to change the return type of __fill_v4l2/vb_buffer
to void.
The dqbuf case took some special care: before removing a buffer from the
done_list you have to verify that the receiving v4l2_buffer has enough room
for all the planes. The number of planes can differ between buffers due to the
fact that buffers for other formats can be prepared using VIDIOC_PREPARE_BUF.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-10-05 22:21:40 -03:00
..
2012-08-02 13:51:46 -04:00
2012-08-17 09:21:35 +02:00
2012-07-30 09:32:39 -07:00
2012-10-01 14:52:40 -03:00
2012-08-13 14:34:02 +08:00
2012-09-04 13:58:11 -04:00
2012-10-01 14:52:40 -03:00
2012-09-21 10:48:28 -06:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00