diff libmpcodecs/vf_il.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 20aca9baf5d8
children 00fff9a3b735
line wrap: on
line diff
--- a/libmpcodecs/vf_il.c	Tue Jun 05 14:12:37 2007 +0000
+++ b/libmpcodecs/vf_il.c	Tue Jun 05 14:27:54 2007 +0000
@@ -58,20 +58,20 @@
 	switch(interleave){
 	case -1:
 		for(y=0; y < m; y++){
-			memcpy(dst + dstStride* y     , src + srcStride*(y*2 + a), w);
-			memcpy(dst + dstStride*(y + m), src + srcStride*(y*2 + b), w);
+			fast_memcpy(dst + dstStride* y     , src + srcStride*(y*2 + a), w);
+			fast_memcpy(dst + dstStride*(y + m), src + srcStride*(y*2 + b), w);
 		}
 		break;
 	case 0:
 		for(y=0; y < m; y++){
-			memcpy(dst + dstStride* y*2   , src + srcStride*(y*2 + a), w);
-			memcpy(dst + dstStride*(y*2+1), src + srcStride*(y*2 + b), w);
+			fast_memcpy(dst + dstStride* y*2   , src + srcStride*(y*2 + a), w);
+			fast_memcpy(dst + dstStride*(y*2+1), src + srcStride*(y*2 + b), w);
 		}
 		break;
 	case 1:
 		for(y=0; y < m; y++){
-			memcpy(dst + dstStride*(y*2+a), src + srcStride* y     , w);
-			memcpy(dst + dstStride*(y*2+b), src + srcStride*(y + m), w);
+			fast_memcpy(dst + dstStride*(y*2+a), src + srcStride* y     , w);
+			fast_memcpy(dst + dstStride*(y*2+b), src + srcStride*(y + m), w);
 		}
 		break;
 	}