diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-11-09 21:40:36 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-11-09 21:40:36 +0000 |
commit | 2916025765ee582da6fc7432ef02e1aaf64f4be6 (patch) | |
tree | 6718c468a734a7cdf98992ad8b34167d2a2d0dae /libavcodec | |
parent | 9abc7e0fdc5b99e4503e22c9084195867e312222 (diff) | |
download | ffmpeg-2916025765ee582da6fc7432ef02e1aaf64f4be6.tar.gz |
factorize
Originally committed as revision 10972 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/intrax8dsp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/intrax8dsp.c b/libavcodec/intrax8dsp.c index 876bd398cd..05e75e2c2c 100644 --- a/libavcodec/intrax8dsp.c +++ b/libavcodec/intrax8dsp.c @@ -118,15 +118,13 @@ static void x8_setup_spacial_compensation(uint8_t *src, uint8_t *dst, int linesi } //now calc the stuff we need if(edges&3){//mb_x==0 || mb_y==0){ + int avg=(sum+4)>>3; if(edges&1){ //(mb_x==0) {//implies mb_y!=0 - int avg=(sum+4)>>3; memset(dst+area1,avg,8+8+1);//areas 1,2 and 3 are averaged - sum+=avg*9;//8+1(egde pixel) }else{//implies y==0 x!=0 - int avg=(sum+4)>>3; memset(dst+area3,avg, 1+16+8);//areas 3, 4,5,6 - sum+=avg*9; } + sum+=avg*9; }else{ uint8_t c; c=*(src-1-linesize);//the edge pixel,in the top line and left column |