summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-08-26 05:10:44 +0000
committerDavid Schleef <ds@schleef.org>2003-08-26 05:10:44 +0000
commitcd512abeb756ba904e87b0c13213df3c858b7d1b (patch)
treea3dbd41c8d8ed7151d5ebe8ac776fd65ccc9f145 /ext
parent4f5c2b190cf9b359480782ba1f59d90b08561372 (diff)
Migrate caps to new system. Change to using a simple convolution to create outline.
Original commit message from CVS: Migrate caps to new system. Change to using a simple convolution to create outline.
Diffstat (limited to 'ext')
-rw-r--r--ext/pango/gsttextoverlay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c
index 97782681..e17078e4 100644
--- a/ext/pango/gsttextoverlay.c
+++ b/ext/pango/gsttextoverlay.c
@@ -39,7 +39,7 @@ GST_PAD_TEMPLATE_FACTORY(textoverlay_src_template_factory,
GST_PAD_ALWAYS,
GST_CAPS_NEW(
"textoverlay_src",
- "video/raw",
+ "video/x-raw-yuv",
"format", GST_PROPS_LIST(
GST_PROPS_FOURCC(GST_STR_FOURCC("I420"))
),
@@ -54,7 +54,7 @@ GST_PAD_TEMPLATE_FACTORY(video_sink_template_factory,
GST_PAD_ALWAYS,
GST_CAPS_NEW(
"video_sink",
- "video/raw",
+ "video/x-raw-yuv",
"format", GST_PROPS_LIST(
GST_PROPS_FOURCC(GST_STR_FOURCC("I420"))
),
@@ -274,10 +274,10 @@ gst_text_overlay_blit_yuv420(GstTextOverlay *overlay, FT_Bitmap *bitmap,
for(n=bitmap_width; n>0; --n){
v = *bitp;
if (v) {
- p[-1] = 0;
- p[ 1] = 0;
- p[-video_width] = 0;
- p[ video_width] = 0;
+ p[-1] = CLAMP(p[-1] - v, 0, 255);
+ p[ 1] = CLAMP(p[ 1] - v, 0, 255);
+ p[-video_width] = CLAMP(p[-video_width] - v, 0, 255);
+ p[ video_width] = CLAMP(p[ video_width] - v, 0, 255);
}
p++;
bitp++;