vaapipostproc: rotate outbuf and crop meta if forwarding
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Sat, 31 Aug 2019 00:31:45 +0000 (17:31 -0700)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 5 Sep 2019 11:03:34 +0000 (11:03 +0000)
commit55654f2915081e474a561f0a8700414dc2e188c5
tree3904f51232037ee139a676083582a93d380e57bb
parentc6ee20fab319a92a71a9fecf10703f1d211e3fba
vaapipostproc: rotate outbuf and crop meta if forwarding

When forwarding crop meta to downstream, the output
buffer and crop meta need to be rotated, too.

Test:
 for i in 90r 180 90l vert horiz ul-lr ur-ll
 do
  gst-launch-1.0 -vf videotestsrc num-buffers=500 \
   ! videocrop top=100 bottom=30 left=40 right=20 \
   ! vaapipostproc video-direction=$i \
   ! vaapisink & \
  gst-launch-1.0 -vf videotestsrc num-buffers=500 \
   ! videocrop top=100 bottom=30 left=40 right=20 \
   ! vaapipostproc video-direction=$i \
   ! identity drop-allocation=true \
   ! vaapisink
 done
gst/vaapi/gstvaapipostproc.c