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 fix_regression in 25 minutes and 59 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Preparation
passed gst indent #69329

00:00:22

passed manifest #69328

00:00:24

 
  Build
passed build fedora x86_64 #69330

00:04:42

 
  Test
passed check fedora #69331

00:14:29

 
  Full Builds
passed build android arm64 api28 #69332

00:04:08

passed build cerbero fedora x86_64 #69333

00:06:23