Mercurial > mplayer.hg
comparison postproc/postprocess_template.c @ 8656:82e448c3a478
10l (int i)
author | michael |
---|---|
date | Mon, 30 Dec 2002 12:36:28 +0000 |
parents | 50701f34a161 |
children | 809adad85bbc |
comparison
equal
deleted
inserted
replaced
8655:f8e53f8cb8b2 | 8656:82e448c3a478 |
---|---|
2073 ); | 2073 ); |
2074 } | 2074 } |
2075 #endif | 2075 #endif |
2076 //static int test=0; | 2076 //static int test=0; |
2077 | 2077 |
2078 static void inline RENAME(tempNoiseReducer)(uint8_t *src, int stride, | 2078 static inline void RENAME(tempNoiseReducer)(uint8_t *src, int stride, |
2079 uint8_t *tempBlured, uint32_t *tempBluredPast, int *maxNoise) | 2079 uint8_t *tempBlured, uint32_t *tempBluredPast, int *maxNoise) |
2080 { | 2080 { |
2081 // to save a register (FIXME do this outside of the loops) | 2081 // to save a register (FIXME do this outside of the loops) |
2082 tempBluredPast[127]= maxNoise[0]; | 2082 tempBluredPast[127]= maxNoise[0]; |
2083 tempBluredPast[128]= maxNoise[1]; | 2083 tempBluredPast[128]= maxNoise[1]; |
2826 } | 2826 } |
2827 if(width==dstStride) | 2827 if(width==dstStride) |
2828 memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride); | 2828 memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride); |
2829 else | 2829 else |
2830 { | 2830 { |
2831 int i; | |
2831 for(i=0; i<copyAhead; i++) | 2832 for(i=0; i<copyAhead; i++) |
2832 { | 2833 { |
2833 memcpy(dst + i*dstStride, tempDst + (9+i)*dstStride, width); | 2834 memcpy(dst + i*dstStride, tempDst + (9+i)*dstStride, width); |
2834 } | 2835 } |
2835 } | 2836 } |