diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-10-23 11:56:31 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2015-01-27 18:11:44 +0100 |
commit | 0a108653f2f78d7c25e3d20226cad0990d211f7e (patch) | |
tree | 2f3480cd80be88ee04d4d9cf2898cc3c3595edb9 /tests | |
parent | 48fabae3eca192337aeaf396b7d7cbc61bd79548 (diff) |
texture: add support for cropping rectangle during transfer.
The gst_vaapi_texture_put_surface() function is missing a crop_rect
argument that would be used during transfer for cropping the source
surface to the desired dimensions.
Note: from a user point-of-view, he should create the GstVaapiTexture
object with the cropped size. That's the default behaviour in software
decoding pipelines that we need to cope with.
This is an API/ABI change, and SONAME version needs to be bumped.
https://bugzilla.gnome.org/show_bug.cgi?id=736712
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-textures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-textures.c b/tests/test-textures.c index 9e608601..c4673ade 100644 --- a/tests/test-textures.c +++ b/tests/test-textures.c @@ -105,7 +105,7 @@ main(int argc, char *argv[]) textures[0] = texture; texture_id = gst_vaapi_texture_get_id(texture); - if (!gst_vaapi_texture_put_surface(texture, surface, flags)) + if (!gst_vaapi_texture_put_surface(texture, surface, NULL, flags)) g_error("could not transfer VA surface to texture"); if (!gst_vaapi_window_glx_put_texture(glx_window, texture, NULL, NULL)) @@ -156,7 +156,7 @@ main(int argc, char *argv[]) textures[1] = texture; - if (!gst_vaapi_texture_put_surface(texture, surface, flags)) + if (!gst_vaapi_texture_put_surface(texture, surface, NULL, flags)) g_error("could not transfer VA surface to texture"); if (gl_get_current_texture_2d() != texture_id) |