plugins: Add more check for allowed raw caps.

The gst_vaapi_plugin_base_get_allowed_raw_caps is used for both sink
pad and src pad, which cause some bugs. For sink pad, we need to verify
vaPutImage() while for the src pad we need to verify vaGetImage().
For vaapidecoderXXX kind of plugins, the case is more complex. We need
to verify whether the decoded result(in some surface, NV12 format most
of the time) can be vaGetImage to some raw image format. Add more check
to fix all these problems.

gstreamer/gstreamer-vaapi#123

Signed-off-by: He Junyan <junyan.he@hotmail.com>
6 jobs for <span class="ref-name">fix_regression</span> in 25 minutes and 59 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Preparation
passed #69329
gst indent

00:00:22

passed #69328
manifest

00:00:24

 
  Build
passed #69330
build fedora x86_64

00:04:42

 
  Test
passed #69331
check fedora

00:14:29

 
  Full Builds
passed #69332
build android arm64 api28

00:04:08

passed #69333
build cerbero fedora x86_64

00:06:23