[gst-cvs] gst-plugins-base: pango: Re-add shading support which was dropped by a previous patch
Sebastian Dröge
slomo at kemper.freedesktop.org
Wed Aug 5 21:44:10 PDT 2009
Module: gst-plugins-base
Branch: master
Commit: 18a5264c87a75714f83b494b244d9f3ce3d0b2b6
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=18a5264c87a75714f83b494b244d9f3ce3d0b2b6
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Tue Aug 4 12:11:00 2009 +0200
pango: Re-add shading support which was dropped by a previous patch
---
ext/pango/gsttextoverlay.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c
index 6954245..1f02339 100644
--- a/ext/pango/gsttextoverlay.c
+++ b/ext/pango/gsttextoverlay.c
@@ -1496,6 +1496,24 @@ gst_text_overlay_push_frame (GstTextOverlay * overlay, GstBuffer * video_frame)
}
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)
ypos = 0;
More information about the Gstreamer-commits
mailing list