Lines Matching refs:ref
102 lift(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
111 #define LIFT(src, ref, inv) ((src) + ((inv) ? - (ref) : + (ref)))
113 dst[0] = LIFT(src[0], ((mul*2*ref[0]+add)>>shift), inverse);
121 ((mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add)>>shift),
128 ((mul*2*ref[w*ref_step]+add)>>shift),
134 inv_lift(IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref,
143 #define LIFT(src, ref, inv) ((src) + ((inv) ? - (ref) : + (ref)))
145 dst[0] = LIFT(src[0], ((mul*2*ref[0]+add)>>shift), inverse);
153 ((mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add)>>shift),
160 ((mul*2*ref[w*ref_step]+add)>>shift),
167 liftS(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
177 #define LIFTS(src, ref, inv) \
179 (src) + (((ref) + 4*(src))>>shift): \
180 -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23)))
182 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse);
190 mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add,
196 LIFTS(src[w*src_step], mul*2*ref[w*ref_step]+add, inverse);
200 inv_liftS(IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref,
210 #define LIFTS(src, ref, inv) \
212 (src) + (((ref) + 4*(src))>>shift): \
213 -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23)))
215 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse);
223 mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add,
229 LIFTS(src[w*src_step], mul*2*ref[w*ref_step]+add, inverse);