Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
23456:1582297cc3d2 | 23457:a124f3abc1ec |
---|---|
56 int y; | 56 int y; |
57 | 57 |
58 switch(interleave){ | 58 switch(interleave){ |
59 case -1: | 59 case -1: |
60 for(y=0; y < m; y++){ | 60 for(y=0; y < m; y++){ |
61 memcpy(dst + dstStride* y , src + srcStride*(y*2 + a), w); | 61 fast_memcpy(dst + dstStride* y , src + srcStride*(y*2 + a), w); |
62 memcpy(dst + dstStride*(y + m), src + srcStride*(y*2 + b), w); | 62 fast_memcpy(dst + dstStride*(y + m), src + srcStride*(y*2 + b), w); |
63 } | 63 } |
64 break; | 64 break; |
65 case 0: | 65 case 0: |
66 for(y=0; y < m; y++){ | 66 for(y=0; y < m; y++){ |
67 memcpy(dst + dstStride* y*2 , src + srcStride*(y*2 + a), w); | 67 fast_memcpy(dst + dstStride* y*2 , src + srcStride*(y*2 + a), w); |
68 memcpy(dst + dstStride*(y*2+1), src + srcStride*(y*2 + b), w); | 68 fast_memcpy(dst + dstStride*(y*2+1), src + srcStride*(y*2 + b), w); |
69 } | 69 } |
70 break; | 70 break; |
71 case 1: | 71 case 1: |
72 for(y=0; y < m; y++){ | 72 for(y=0; y < m; y++){ |
73 memcpy(dst + dstStride*(y*2+a), src + srcStride* y , w); | 73 fast_memcpy(dst + dstStride*(y*2+a), src + srcStride* y , w); |
74 memcpy(dst + dstStride*(y*2+b), src + srcStride*(y + m), w); | 74 fast_memcpy(dst + dstStride*(y*2+b), src + srcStride*(y + m), w); |
75 } | 75 } |
76 break; | 76 break; |
77 } | 77 } |
78 } | 78 } |
79 | 79 |