diff libvo/vo_directfb2.c @ 23457:a124f3abc1ec

Replace implicit use of fast_memcpy via macro by explicit use to allow for future optimization.
author reimar
date Tue, 05 Jun 2007 14:27:54 +0000
parents 71b3e04d0555
children cf27c9342878
line wrap: on
line diff
--- a/libvo/vo_directfb2.c	Tue Jun 05 14:12:37 2007 +0000
+++ b/libvo/vo_directfb2.c	Tue Jun 05 14:27:54 2007 +0000
@@ -1233,7 +1233,7 @@
 	srcp = src[0];
 	
 	for (i=0;i<h;i++) {
-            memcpy(dst,srcp,p);
+            fast_memcpy(dst,srcp,p);
 	    dst += pitch;
 	    srcp += stride[0];
         }
@@ -1245,7 +1245,7 @@
     	    p = p/2;
 
             for (i=0;i<h/2;i++) {
-                memcpy(dst,srcp,p);
+                fast_memcpy(dst,srcp,p);
 		dst += pitch/2;
 	        srcp += stride[2];
     	    }
@@ -1254,7 +1254,7 @@
 	    srcp = src[1];
 	
     	    for (i=0;i<h/2;i++) {
-                memcpy(dst,srcp,p);
+                fast_memcpy(dst,srcp,p);
 		dst += pitch/2;
 	        srcp += stride[1];
     	    }
@@ -1266,7 +1266,7 @@
 	    p = p/2;
 
     	    for (i=0;i<h/2;i++) {
-                memcpy(dst,srcp,p);
+                fast_memcpy(dst,srcp,p);
 		dst += pitch/2;
 	        srcp += stride[1];
     	    }
@@ -1275,7 +1275,7 @@
 	    srcp = src[2];
 	
     	    for (i=0;i<h/2;i++) {
-                memcpy(dst,srcp,p);
+                fast_memcpy(dst,srcp,p);
 		dst += pitch/2;
 	        srcp += stride[2];
     	    }
@@ -1327,7 +1327,7 @@
 	src = mpi->planes[0]+mpi->y*mpi->stride[0]+mpi->x;
 	
 	for (i=0;i<mpi->h;i++) {
-            memcpy(dst+i*pitch,src+i*mpi->stride[0],p);
+            fast_memcpy(dst+i*pitch,src+i*mpi->stride[0],p);
         }
 
 	
@@ -1338,14 +1338,14 @@
 	    src = mpi->planes[2]+mpi->y*mpi->stride[2]+mpi->x/2;
 
             for (i=0;i<mpi->h/2;i++) {
-	        memcpy(dst+i*pitch/2,src+i*mpi->stride[2],p);
+	        fast_memcpy(dst+i*pitch/2,src+i*mpi->stride[2],p);
     	    }
 	
     	    dst += pitch*height/4;
 	    src = mpi->planes[1]+mpi->y*mpi->stride[1]+mpi->x/2;
 	
     	    for (i=0;i<mpi->h/2;i++) {
-        	memcpy(dst+i*pitch/2,src+i*mpi->stride[1],p);
+        	fast_memcpy(dst+i*pitch/2,src+i*mpi->stride[1],p);
     	    }
 
 	} else {
@@ -1355,14 +1355,14 @@
 	    src = mpi->planes[1]+mpi->y*mpi->stride[1]+mpi->x/2;
 
     	    for (i=0;i<mpi->h/2;i++) {
-        	memcpy(dst+i*pitch/2,src+i*mpi->stride[1],p);
+        	fast_memcpy(dst+i*pitch/2,src+i*mpi->stride[1],p);
     	    }
 	
     	    dst += pitch*height/4;
 	    src = mpi->planes[2]+mpi->y*mpi->stride[2]+mpi->x/2;
 	
     	    for (i=0;i<mpi->h/2;i++) {
-        	memcpy(dst+i*pitch/2,src+i*mpi->stride[2],p);
+        	fast_memcpy(dst+i*pitch/2,src+i*mpi->stride[2],p);
     	    }
 	
 	}