mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pango: adjust to modified video overlay composition API
This commit is contained in:
parent
f89c7b605f
commit
3ecad525b7
1 changed files with 4 additions and 1 deletions
|
@ -76,6 +76,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
|
#include <gst/video/gstvideometa.h>
|
||||||
|
|
||||||
#include "gstbasetextoverlay.h"
|
#include "gstbasetextoverlay.h"
|
||||||
#include "gsttextoverlay.h"
|
#include "gsttextoverlay.h"
|
||||||
|
@ -1232,8 +1233,10 @@ gst_base_text_overlay_set_composition (GstBaseTextOverlay * overlay)
|
||||||
gst_base_text_overlay_get_pos (overlay, &xpos, &ypos);
|
gst_base_text_overlay_get_pos (overlay, &xpos, &ypos);
|
||||||
|
|
||||||
if (overlay->text_image) {
|
if (overlay->text_image) {
|
||||||
|
gst_buffer_add_video_meta (overlay->text_image, GST_VIDEO_FRAME_FLAG_NONE,
|
||||||
|
GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB,
|
||||||
|
overlay->image_width, overlay->image_height);
|
||||||
rectangle = gst_video_overlay_rectangle_new_argb (overlay->text_image,
|
rectangle = gst_video_overlay_rectangle_new_argb (overlay->text_image,
|
||||||
overlay->image_width, overlay->image_height, 4 * overlay->image_width,
|
|
||||||
xpos, ypos, overlay->image_width, overlay->image_height,
|
xpos, ypos, overlay->image_width, overlay->image_height,
|
||||||
GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA);
|
GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue