comparison libmpcodecs/vf_phase.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 bcd805923554
children 00fff9a3b735
comparison
equal deleted inserted replaced
23456:1582297cc3d2 23457:a124f3abc1ec
43 if(!(*bufp=malloc(h*w))) return; 43 if(!(*bufp=malloc(h*w))) return;
44 } 44 }
45 45
46 for(end=to+h*ts, buf=*bufp, top=1; to<end; from+=fs, to+=ts, buf+=w, top^=1) 46 for(end=to+h*ts, buf=*bufp, top=1; to<end; from+=fs, to+=ts, buf+=w, top^=1)
47 { 47 {
48 memcpy(to, mode==(top?BOTTOM_FIRST:TOP_FIRST)?buf:from, w); 48 fast_memcpy(to, mode==(top?BOTTOM_FIRST:TOP_FIRST)?buf:from, w);
49 memcpy(buf, from, w); 49 fast_memcpy(buf, from, w);
50 } 50 }
51 } 51 }
52 52
53 /* 53 /*
54 * This macro interpolates the value of both fields at a point halfway 54 * This macro interpolates the value of both fields at a point halfway