comparison libvo/fastmemcpy.h @ 33013:aab47f5fdb9b

More const preservation.
author reimar
date Thu, 24 Mar 2011 20:25:45 +0000
parents 68820488a927
children
comparison
equal deleted inserted replaced
33012:68820488a927 33013:aab47f5fdb9b
38 void *retval=dst; 38 void *retval=dst;
39 39
40 if(dstStride == srcStride) 40 if(dstStride == srcStride)
41 { 41 {
42 if (srcStride < 0) { 42 if (srcStride < 0) {
43 src = (uint8_t*)src + (height-1)*srcStride; 43 src = (const uint8_t*)src + (height-1)*srcStride;
44 dst = (uint8_t*)dst + (height-1)*dstStride; 44 dst = (uint8_t*)dst + (height-1)*dstStride;
45 srcStride = -srcStride; 45 srcStride = -srcStride;
46 } 46 }
47 47
48 mem2agpcpy(dst, src, srcStride*height); 48 mem2agpcpy(dst, src, srcStride*height);
50 else 50 else
51 { 51 {
52 for(i=0; i<height; i++) 52 for(i=0; i<height; i++)
53 { 53 {
54 mem2agpcpy(dst, src, bytesPerLine); 54 mem2agpcpy(dst, src, bytesPerLine);
55 src = (uint8_t*)src + srcStride; 55 src = (const uint8_t*)src + srcStride;
56 dst = (uint8_t*)dst + dstStride; 56 dst = (uint8_t*)dst + dstStride;
57 } 57 }
58 } 58 }
59 59
60 return retval; 60 return retval;