vaapipostproc: improve heuristics for detecting native VA surfaces.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Aug 2014 08:37:02 +0000 (10:37 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 21 Aug 2014 07:39:09 +0000 (09:39 +0200)
commitd82e6a8866be7d92a4e144fc256bec4ed7dcd8d2
tree10fe18e68368184ded92b106e50a5298c29b9fe2
parent6d8c5221b2da641cbd474d7bbc6bf7f995f7643a
vaapipostproc: improve heuristics for detecting native VA surfaces.

Use the new gst_caps_has_vaapi_surface() helper function to detect
whether the sink pad caps contain native VA surfaces, or not, i.e.
no raw video caps.

Also rename is_raw_yuv to get_va_surfaces to make the variable more
explicit as we just want a way to differentiate raw video caps from
VA surfaces actually.
gst/vaapi/gstvaapipostproc.c
gst/vaapi/gstvaapipostproc.h