mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
pango: Re-add shading support which was dropped by a previous patch
This commit is contained in:
parent
20b84cda60
commit
18a5264c87
1 changed files with 18 additions and 0 deletions
|
@ -1496,6 +1496,24 @@ gst_text_overlay_push_frame (GstTextOverlay * overlay, GstBuffer * video_frame)
|
||||||
}
|
}
|
||||||
ypos += overlay->deltay;
|
ypos += overlay->deltay;
|
||||||
|
|
||||||
|
/* shaded background box */
|
||||||
|
if (overlay->want_shading) {
|
||||||
|
switch (overlay->format) {
|
||||||
|
case GST_MAKE_FOURCC ('I', '4', '2', '0'):
|
||||||
|
gst_text_overlay_shade_I420_y (overlay,
|
||||||
|
GST_BUFFER_DATA (video_frame), xpos, xpos + overlay->image_width,
|
||||||
|
ypos, ypos + overlay->image_height);
|
||||||
|
break;
|
||||||
|
case GST_MAKE_FOURCC ('U', 'Y', 'V', 'Y'):
|
||||||
|
gst_text_overlay_shade_UYVY_y (overlay,
|
||||||
|
GST_BUFFER_DATA (video_frame), xpos, xpos + overlay->image_width,
|
||||||
|
ypos, ypos + overlay->image_height);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
g_assert_not_reached ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ypos < 0)
|
if (ypos < 0)
|
||||||
ypos = 0;
|
ypos = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue