v4l2object: add support for vertical padding when importing buffers
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Wed, 17 Apr 2019 06:55:14 +0000 (12:25 +0530)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Sat, 2 Nov 2019 11:47:43 +0000 (12:47 +0100)
commita92000ebb949c21ab63f850289c3f6ff24cc8e71
treeb01646fda98b11b70b66d57acfc88c2030505c18
parent07930aea738c0e6196ec39903fa92d8cd990e89c
v4l2object: add support for vertical padding when importing buffers

We were already supporting horizontal padding by setting bytesperline to
the buffer stride but not vertical one.

We are now updating the format height with the padded height and crop to
the actual video resolution if needed.
sys/v4l2/gstv4l2object.c