mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
converter: add support for GstVideoOverlayComposition planes.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
e4d7e90568
commit
f6fb267903
1 changed files with 5 additions and 0 deletions
|
@ -121,6 +121,8 @@ gst_vaapi_video_converter_glx_upload (GstSurfaceConverter *converter,
|
|||
GstVaapiSurface *surface = gst_vaapi_video_buffer_get_surface (
|
||||
GST_VAAPI_VIDEO_BUFFER (buffer));
|
||||
GstVaapiDisplay *new_dpy, *old_dpy;
|
||||
GstVideoOverlayComposition * const composition =
|
||||
gst_video_buffer_get_overlay_composition (GST_BUFFER (buffer));
|
||||
|
||||
new_dpy = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (surface));
|
||||
old_dpy = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (priv->texture));
|
||||
|
@ -134,6 +136,9 @@ gst_vaapi_video_converter_glx_upload (GstSurfaceConverter *converter,
|
|||
GL_BGRA);
|
||||
}
|
||||
|
||||
if (!gst_vaapi_surface_update_composition (surface, composition))
|
||||
GST_WARNING ("could not update subtitles");
|
||||
|
||||
return gst_vaapi_texture_put_surface (priv->texture, surface,
|
||||
GST_VAAPI_PICTURE_STRUCTURE_FRAME);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue