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)
committerWei,changzhi <changzhix.wei@intel.com>
Wed, 17 Apr 2013 08:16:17 +0000 (16:16 +0800)
commited242662caf1032b6bdebb09e8a048c08cb51c8a
treecbdcc098ca6d0e588745003563e887943064ade1
parent4c226335d8c7c721cf4efaf5639f7e49b0256b00
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