Commit 35e73869 authored by michael's avatar michael

10l (C code was buggy and untested)


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29030 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 1952a806
...@@ -2825,8 +2825,8 @@ static void RENAME(extract_even2avg)(const uint8_t *src0, const uint8_t *src1, u ...@@ -2825,8 +2825,8 @@ static void RENAME(extract_even2avg)(const uint8_t *src0, const uint8_t *src1, u
} }
#endif #endif
while(count<0){ while(count<0){
dst0[count]= src0[4*count+0]+src1[4*count+0]; dst0[count]= (src0[4*count+0]+src1[4*count+0])>>1;
dst1[count]= src0[4*count+2]+src1[4*count+2]; dst1[count]= (src0[4*count+2]+src1[4*count+2])>>1;
count++; count++;
} }
} }
...@@ -2872,6 +2872,7 @@ static void RENAME(extract_odd2)(const uint8_t *src, uint8_t *dst0, uint8_t *dst ...@@ -2872,6 +2872,7 @@ static void RENAME(extract_odd2)(const uint8_t *src, uint8_t *dst0, uint8_t *dst
count -= 7; count -= 7;
} }
#endif #endif
src++;
while(count<0){ while(count<0){
dst0[count]= src[4*count+0]; dst0[count]= src[4*count+0];
dst1[count]= src[4*count+2]; dst1[count]= src[4*count+2];
...@@ -2925,9 +2926,11 @@ static void RENAME(extract_odd2avg)(const uint8_t *src0, const uint8_t *src1, ui ...@@ -2925,9 +2926,11 @@ static void RENAME(extract_odd2avg)(const uint8_t *src0, const uint8_t *src1, ui
count -= 7; count -= 7;
} }
#endif #endif
src0++;
src1++;
while(count<0){ while(count<0){
dst0[count]= src0[4*count+0]+src1[4*count+0]; dst0[count]= (src0[4*count+0]+src1[4*count+0])>>1;
dst1[count]= src0[4*count+2]+src1[4*count+2]; dst1[count]= (src0[4*count+2]+src1[4*count+2])>>1;
count++; count++;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment