[Mplayer-cvslog] CVS: main/libvo fastmemcpy.h,1.17,1.18

Arpi of Ize arpi at mplayer.dev.hu
Sat Apr 6 23:46:10 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv522

Modified Files:
	fastmemcpy.h 
Log Message:
memcpy_pic() added (copy image plane with src/dst stride)

Index: fastmemcpy.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/fastmemcpy.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- fastmemcpy.h	14 Feb 2002 22:34:24 -0000	1.17
+++ fastmemcpy.h	6 Apr 2002 21:46:07 -0000	1.18
@@ -39,4 +39,23 @@
 	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<height; i++)
+		{
+			memcpy(dst, src, bytesPerLine);
+			src+= srcStride;
+			dst+= dstStride;
+		}
+	}
+
+	return retval;
+}
+
 #endif




More information about the MPlayer-cvslog mailing list