diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videobox/gstvideobox.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index f76310db..d97fa291 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -475,22 +475,22 @@ gst_video_box_copy_plane_i420 (GstVideoBox * video_box, guint8 * src, /* top border */ for (j = 0; j < bt; j++) { - memset (dest, fill_color, dest_width); + oil_splat_u8_ns (dest, &fill_color, dest_width); dest += dest_stride; } /* copy and add left and right border */ for (j = 0; j < src_crop_height; j++) { - memset (dest, fill_color, bl); - memcpy (dest + bl, src, src_crop_width); - memset (dest + bl + src_crop_width, fill_color, br); + oil_splat_u8_ns (dest, &fill_color, bl); + oil_memcpy (dest + bl, src, src_crop_width); + oil_splat_u8_ns (dest + bl + src_crop_width, &fill_color, br); dest += dest_stride; src += src_stride; } /* bottom border */ for (j = 0; j < bb; j++) { - memset (dest, fill_color, dest_width); + oil_splat_u8_ns (dest, &fill_color, dest_width); dest += dest_stride; } } |