v4l2transform: fix scaling in case of fixed pixel aspect ratio
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 May 2016 10:32:25 +0000 (12:32 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:45:38 +0000 (17:45 -0400)
commit89a2f0a6470483ca1da184cf4c8bde3ba23a918b
treebd595b3b85e6664c8c6903205e24dd2657e3fa90
parent616ccbb0db7e9793e84dfadd99ce6d330ce62b29
v4l2transform: fix scaling in case of fixed pixel aspect ratio

To change pixel aspect ratio from DAR to PAR, the necessary scaling factor
is DAR/PAR, not DAR*PAR.
For good measure, add debug output similar to the fixed-width and
fixed-height cases.

https://bugzilla.gnome.org/show_bug.cgi?id=766711
sys/v4l2/gstv4l2transform.c