va: vpp: Add raw buffer copy when needed.
authorHe Junyan <junyan.he@intel.com>
Fri, 19 Feb 2021 06:27:39 +0000 (14:27 +0800)
committerHe Junyan <junyan.he@intel.com>
Fri, 19 Feb 2021 15:12:29 +0000 (23:12 +0800)
commit2e9a09628256d116ad934af7f44db4bf270efc67
treebeb7bdcb942b9af8e7574ce7911f7e2ab1a49122
parent438449db697c7743a10dcbe20aeee5d39b0463bc
va: vpp: Add raw buffer copy when needed.

Just like the decoder, the vapostproc also needs to copy the output
buffer to raw buffer if downstream elements only supports raw caps
and does not support the video meta.

The pipeline like:
  gst-launch-1.0 filesrc location=xxxx ! h264parse ! vah264dec ! \
  vapostproc ! capsfilter caps=video/x-raw,width=55,height=128 ! \
  filesink location=xxx
needs this logic to dump the data correctly.

fixes: #1523

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2026>
sys/va/gstvavpp.c