From 133757919ed223c864da120de57da1b2b74b1277 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 6 Apr 2002 21:46:07 +0000 Subject: [PATCH] memcpy_pic() added (copy image plane with src/dst stride) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5505 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/fastmemcpy.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libvo/fastmemcpy.h b/libvo/fastmemcpy.h index 61824c002f..cd7d91d1cd 100644 --- a/libvo/fastmemcpy.h +++ b/libvo/fastmemcpy.h @@ -39,4 +39,23 @@ static inline void * mem2agpcpy_pic(void * dst, void * src, int bytesPerLine, in return retval; } +static inline void * memcpy_pic(void * dst, void * src, int bytesPerLine, int height, int dstStride, int srcStride) +{ + int i; + void *retval=dst; + + if(dstStride == srcStride) memcpy(dst, src, srcStride*height); + else + { + for(i=0; i