vaapipostproc: fix off-by-one coord translations
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 10 Oct 2019 22:26:36 +0000 (15:26 -0700)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 11 Oct 2019 16:37:31 +0000 (16:37 +0000)
commit40bcefcb3ba4c250ac26a4f504cd17b427bc1802
tree8c3a7982d81600b134ca23daab7b6d5beee382c7
parent58a512b7c5aa671fd264146d3660633bd8cde47e
vaapipostproc: fix off-by-one coord translations

When translating navigation x,y coordinates for
video-direction, it is necessary to subtract 1
when using the video dimensions to compute the
new x,y coordinates.  That is, a 100x200 image
should map coordinates in x=[0-99],y=[0-199].

This issue was found with unit tests provided
in !182.
gst/vaapi/gstvaapipostproc.c