From a4bab723b30fe6190fb137b67bba521e55276cf6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Jul 2012 14:36:43 +0200 Subject: fastmemcpy.h: remove code duplication Remove the mem2agpcpy_pic function, which is obviously duplicated from the other function in this file. Untested, as this is only used by the directx and directfb2 VOs. --- libvo/fastmemcpy.h | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/libvo/fastmemcpy.h b/libvo/fastmemcpy.h index bc83abb5d5..621ae874dd 100644 --- a/libvo/fastmemcpy.h +++ b/libvo/fastmemcpy.h @@ -27,37 +27,11 @@ // meaningless ancient alias #define fast_memcpy memcpy -static inline void * mem2agpcpy_pic(void * dst, const void * src, int bytesPerLine, int height, int dstStride, int srcStride) -{ - int i; - void *retval=dst; - - if(dstStride == srcStride) - { - if (srcStride < 0) { - src = (uint8_t*)src + (height-1)*srcStride; - dst = (uint8_t*)dst + (height-1)*dstStride; - srcStride = -srcStride; - } - - memcpy(dst, src, srcStride*height); - } - else - { - for(i=0; i