Mercurial > libavcodec.hg
comparison libpostproc/postprocess_template.c @ 943:0566d1a8426f libavcodec
10l (int i)
| author | michael |
|---|---|
| date | Mon, 30 Dec 2002 12:36:28 +0000 |
| parents | 1e4ab5fdfca1 |
| children | 927c246f1f6d |
comparison
equal
deleted
inserted
replaced
| 942:c237f5db1c22 | 943:0566d1a8426f |
|---|---|
| 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 } |
