v4l2: improve pixel aspect ratio handling
authorMichael Olbrich <m.olbrich@pengutronix.de>
Tue, 4 Jun 2013 06:26:33 +0000 (08:26 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 4 Jun 2013 15:37:15 +0000 (17:37 +0200)
commit74d217c44be6007d83a3e270300f0708b5fe895c
tree9332274d441e6ab74bbe4b3b3cf861b2766ee06c
parent86405d6ee775aa1982177a9f9f01802bc72d19bd
v4l2: improve pixel aspect ratio handling

Instead of just assuming a aspect ratio of 1/1 use VIDIOC_CROPCAP to ask
the device.
This also add a pixel-aspect-ratio property to overwrite the value from the
driver and a force-aspect-ratio property to ignore it.

https://bugzilla.gnome.org/show_bug.cgi?id=700285
sys/v4l2/gstv4l2object.c
sys/v4l2/gstv4l2object.h