fastquant_inline.h | 31 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) 33 q_value = coeff * q_value + round; 34 coeff = q_value >> 16; 35 if (coeff < 0) coeff += QPdiv2; 36 else coeff -= QPdiv2; 38 return coeff; 42 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) 46 q_value = coeff * q_scale; //q_value = -((-(coeff + QPdiv2)*q_scale)>>LSL) 55 int32 coeff = q_value + ac_clip; local 65 int32 coeff; local 127 int32 coeff; local 179 smlabb q_value, coeff, q_value, round local 180 movs coeff, q_value, asr #16 local 181 addle coeff, coeff, QPdiv2 local 182 subgt coeff, coeff, QPdiv2 local 195 mov coeff, q_value, asr shift \/*smull tmp, coeff, q_scale, coeff*\/ local 196 add q_value, coeff, coeff, lsr #31 local 205 int32 coeff; local 210 smulbb coeff, q_value, QPx2 local 211 sublt coeff, coeff, Addition local 212 addge coeff, coeff, Addition local 213 add q_value, coeff, tmp local 216 eorhi coeff, tmp, coeff, asr #31 local 226 smlabb q_value, coeff, q_value, round local 247 int32 coeff; local 250 movs coeff, q_value, lsl #1 local 252 addgt coeff, coeff, #1 local 253 sublt coeff, coeff, #1 local 254 smulbb q_value, coeff, stepsize local 257 add coeff, q_value, tmp local 258 subs coeff, coeff, #0xf00 local 259 subcss coeff, coeff, #0xfe local 274 mla q_value, coeff, q_value, round local 275 movs coeff, q_value, asr #16 local 276 addle coeff, coeff, QPdiv2 local 277 subgt coeff, coeff, QPdiv2 local 290 mov coeff, q_value, asr shift \/*smull tmp, coeff, q_scale, coeff*\/ local 291 add q_value, coeff, coeff, lsr #31 local 301 int32 coeff; local 306 mul coeff, q_value, QPx2 local 307 sublt coeff, coeff, Addition local 308 addge coeff, coeff, Addition local 309 add q_value, coeff, tmp local 312 eorhi coeff, tmp, coeff, asr #31 local 322 mla q_value, coeff, q_value, round local 344 int32 coeff; local 347 movs coeff, q_value, lsl #1 local 349 addgt coeff, coeff, #1 local 350 sublt coeff, coeff, #1 local 351 mul q_value, coeff, stepsize local 354 add coeff, q_value, tmp local 355 subs coeff, coeff, #0xf00 local 356 subcss coeff, coeff, #0xfe local 368 int32 coeff; local 372 add coeff, q_value, ac_clip local 373 subs coeff, coeff, ac_clip, lsl #1 local 385 cmp coeff, #0 local 386 addle coeff, coeff, QP, asr #1 local 387 subgt coeff, coeff, QP, asr #1 local 396 int32 coeff; local 400 add coeff, q_value, tmp local 401 subs coeff, coeff, #0xf00 local 402 subcss coeff, coeff, #0xfe local 411 int32 coeff; local 418 add coeff, q_value, tmp local 419 subs coeff, coeff, #0xf00 local 420 subcss coeff, coeff, #0xfe local 472 register int32 coeff; local 556 register int32 coeff; local [all...] |