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

Michael Niedermayer michael at mplayer.dev.hu
Thu Feb 14 23:34:27 CET 2002


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

Modified Files:
	fastmemcpy.h 
Log Message:
mem2agpcpy_pic()


Index: fastmemcpy.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/fastmemcpy.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- fastmemcpy.h	12 Feb 2002 23:17:14 -0000	1.16
+++ fastmemcpy.h	14 Feb 2002 22:34:24 -0000	1.17
@@ -19,4 +19,24 @@
 #else /* USE_FASTMEMCPY */
 #define mem2agpcpy(a,b,c) memcpy(a,b,c)
 #endif
+
+static inline void * mem2agpcpy_pic(void * dst, void * src, int bytesPerLine, int height, int dstStride, int srcStride)
+{
+	int i;
+	void *retval=dst;
+
+	if(dstStride == srcStride) mem2agpcpy(dst, src, srcStride*height);
+	else
+	{
+		for(i=0; i<height; i++)
+		{
+			mem2agpcpy(dst, src, bytesPerLine);
+			src+= srcStride;
+			dst+= dstStride;
+		}
+	}
+
+	return retval;
+}
+
 #endif




More information about the MPlayer-cvslog mailing list