From 8a35b0101a703718e52a3b12c8a8777572b9f150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 2 Aug 2008 18:48:17 +0000 Subject: gst/deinterlace2/: Use oil_memcpy() instead of memcpy() as it's faster for the sizes that are usually used here. Original commit message from CVS: * gst/deinterlace2/gstdeinterlace2.c: (gst_deinterlace_simple_method_interpolate_scanline), (gst_deinterlace_simple_method_copy_scanline), (gst_deinterlace_simple_method_deinterlace_frame): * gst/deinterlace2/tvtime/greedy.c: (deinterlace_frame_di_greedy): * gst/deinterlace2/tvtime/greedyh.c: (deinterlace_frame_di_greedyh): * gst/deinterlace2/tvtime/scalerbob.c: (deinterlace_scanline_scaler_bob): * gst/deinterlace2/tvtime/tomsmocomp.c: (Fieldcopy): * gst/deinterlace2/tvtime/weave.c: (deinterlace_scanline_weave), (copy_scanline): * gst/deinterlace2/tvtime/weavebff.c: (deinterlace_scanline_weave), (copy_scanline): * gst/deinterlace2/tvtime/weavetff.c: (deinterlace_scanline_weave), (copy_scanline): Use oil_memcpy() instead of memcpy() as it's faster for the sizes that are usually used here. --- gst/deinterlace2/tvtime/weavetff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst/deinterlace2/tvtime/weavetff.c') diff --git a/gst/deinterlace2/tvtime/weavetff.c b/gst/deinterlace2/tvtime/weavetff.c index dec2bc57..0b941a05 100644 --- a/gst/deinterlace2/tvtime/weavetff.c +++ b/gst/deinterlace2/tvtime/weavetff.c @@ -47,7 +47,7 @@ deinterlace_scanline_weave (GstDeinterlaceMethod * self, GstDeinterlace2 * parent, guint8 * out, GstDeinterlaceScanlineData * scanlines, gint width) { - memcpy (out, scanlines->m1, parent->line_length); + oil_memcpy (out, scanlines->m1, parent->line_length); } static void @@ -56,9 +56,9 @@ copy_scanline (GstDeinterlaceMethod * self, GstDeinterlace2 * parent, { /* FIXME: original code used m2 and m0 but this looks really bad */ if (scanlines->bottom_field) { - memcpy (out, scanlines->bb0, parent->line_length); + oil_memcpy (out, scanlines->bb0, parent->line_length); } else { - memcpy (out, scanlines->bb2, parent->line_length); + oil_memcpy (out, scanlines->bb2, parent->line_length); } } -- cgit v1.2.1