mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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 (
|
GstVaapiSurface *surface = gst_vaapi_video_buffer_get_surface (
|
||||||
GST_VAAPI_VIDEO_BUFFER (buffer));
|
GST_VAAPI_VIDEO_BUFFER (buffer));
|
||||||
GstVaapiDisplay *new_dpy, *old_dpy;
|
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));
|
new_dpy = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (surface));
|
||||||
old_dpy = gst_vaapi_object_get_display (GST_VAAPI_OBJECT (priv->texture));
|
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);
|
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,
|
return gst_vaapi_texture_put_surface (priv->texture, surface,
|
||||||
GST_VAAPI_PICTURE_STRUCTURE_FRAME);
|
GST_VAAPI_PICTURE_STRUCTURE_FRAME);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue