summaryrefslogtreecommitdiff
path: root/tests/image.c
diff options
context:
space:
mode:
authorHolger Kaelberer <holger.k@elberer.de>2012-05-15 10:24:08 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-01-11 14:23:06 +0100
commit1cd4a8fc046d4774fa1d53534fbb4e3b14ab3c36 (patch)
tree8da7bac72aa8fc36c7cb2b4837e12b914333bced /tests/image.c
parent1307a5b4ef167869bccd3f66ce8ccea3166c4c97 (diff)
subpicture: add support for global-alpha.
Add the necessary helpers in GstVaapiDisplay to determine whether subpictures with global alpha are supported or not. Also add accessors in GstVaapiSubpicture to address this feature. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'tests/image.c')
-rw-r--r--tests/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/image.c b/tests/image.c
index 39a8ac5e..289e2a30 100644
--- a/tests/image.c
+++ b/tests/image.c
@@ -341,12 +341,12 @@ image_upload(GstVaapiImage *image, GstVaapiSurface *surface)
g_print("could not upload %" GST_FOURCC_FORMAT" image to surface\n",
GST_FOURCC_ARGS(format));
- if (!gst_vaapi_display_has_subpicture_format(display, format))
+ if (!gst_vaapi_display_has_subpicture_format(display, format, NULL))
return FALSE;
g_print("trying as a subpicture\n");
- subpicture = gst_vaapi_subpicture_new(image);
+ subpicture = gst_vaapi_subpicture_new(image, 0);
if (!subpicture)
g_error("could not create VA subpicture");