Mercurial > libavcodec.hg
comparison mpegvideo.c @ 6377:931ca319f2fe libavcodec
Fix ;;
author | michael |
---|---|
date | Tue, 19 Feb 2008 22:09:08 +0000 |
parents | 644cc66607b2 |
children | 5154ab444372 |
comparison
equal
deleted
inserted
replaced
6376:f70b8e837ecc | 6377:931ca319f2fe |
---|---|
1095 if(ey) f= ((ex-sx)<<16)/ey; | 1095 if(ey) f= ((ex-sx)<<16)/ey; |
1096 else f= 0; | 1096 else f= 0; |
1097 for(y= 0; y <= ey; y++){ | 1097 for(y= 0; y <= ey; y++){ |
1098 x = (y*f)>>16; | 1098 x = (y*f)>>16; |
1099 fr= (y*f)&0xFFFF; | 1099 fr= (y*f)&0xFFFF; |
1100 buf[y*stride + x ]+= (color*(0x10000-fr))>>16;; | 1100 buf[y*stride + x ]+= (color*(0x10000-fr))>>16; |
1101 buf[y*stride + x+1]+= (color* fr )>>16;; | 1101 buf[y*stride + x+1]+= (color* fr )>>16; |
1102 } | 1102 } |
1103 } | 1103 } |
1104 } | 1104 } |
1105 | 1105 |
1106 /** | 1106 /** |
2127 offset[0]= | 2127 offset[0]= |
2128 offset[1]= | 2128 offset[1]= |
2129 offset[2]= | 2129 offset[2]= |
2130 offset[3]= 0; | 2130 offset[3]= 0; |
2131 }else{ | 2131 }else{ |
2132 offset[0]= y * s->linesize;; | 2132 offset[0]= y * s->linesize; |
2133 offset[1]= | 2133 offset[1]= |
2134 offset[2]= (y >> s->chroma_y_shift) * s->uvlinesize; | 2134 offset[2]= (y >> s->chroma_y_shift) * s->uvlinesize; |
2135 offset[3]= 0; | 2135 offset[3]= 0; |
2136 } | 2136 } |
2137 | 2137 |