Mercurial > libavcodec.hg
comparison snow.c @ 5572:c6fac563ec28 libavcodec
simplify
author | michael |
---|---|
date | Wed, 22 Aug 2007 17:26:49 +0000 |
parents | 93082c591c8b |
children | a6f5ed050335 |
comparison
equal
deleted
inserted
replaced
5571:134296160fc9 | 5572:c6fac563ec28 |
---|---|
773 const int mirror_right= (width&1) ^ highpass; | 773 const int mirror_right= (width&1) ^ highpass; |
774 const int w= (width>>1) - 1 + (highpass & width); | 774 const int w= (width>>1) - 1 + (highpass & width); |
775 int i; | 775 int i; |
776 | 776 |
777 assert(shift == 4); | 777 assert(shift == 4); |
778 #define LIFTS(src, ref, inv) ((inv) ? (src) + (((ref) + 4*(src))>>shift): -((-16*4*(src) + 4*(ref) + add + 5 + (5<<27))/(5*16) - (1<<23))) | 778 #define LIFTS(src, ref, inv) ((inv) ? (src) + (((ref) + 4*(src))>>shift): -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23))) |
779 if(mirror_left){ | 779 if(mirror_left){ |
780 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse); | 780 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse); |
781 dst += dst_step; | 781 dst += dst_step; |
782 src += src_step; | 782 src += src_step; |
783 } | 783 } |