vaapisink: compute and expose the supported set of YUV caps.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 20 Nov 2012 14:50:56 +0000 (15:50 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 20 Nov 2012 15:04:51 +0000 (16:04 +0100)
commitd4a4a49168bff11f94def0c2a716812db942f287
tree4a37e54a845b6c0e747a05e1a45373558235bd4e
parent499e0dd981fb5ef770d25fe98d791e764f1089c9
vaapisink: compute and expose the supported set of YUV caps.

Make vaapisink expose only the set of supported caps for raw YUV buffers.

Add gst_vaapi_uploader_get_caps() helper function to determine the set
of supported YUV caps as source (for images). This function actually
tries to zero and upload each image to a 64x64 test surface. Of course,
this relies on VA drivers to not claim success if vaPutImage() is not
correctly supported.
gst/vaapi/gstvaapisink.c
gst/vaapi/gstvaapiuploader.c
gst/vaapi/gstvaapiuploader.h