mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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.
This commit is contained in:
parent
4f5c2b190c
commit
cd512abeb7
1 changed files with 6 additions and 6 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue