fastquant_inline.h | 30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) 32 q_value = coeff * q_value + round; 33 coeff = q_value >> 16; 34 if (coeff < 0) coeff += QPdiv2; 35 else coeff -= QPdiv2; 37 return coeff; 41 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) 45 q_value = coeff * q_scale; //q_value = -((-(coeff + QPdiv2)*q_scale)>>LSL) 54 int32 coeff = q_value + ac_clip; local 64 int32 coeff; local 126 int32 coeff; local 178 smlabb q_value, coeff, q_value, round local 179 movs coeff, q_value, asr #16 local 180 addle coeff, coeff, QPdiv2 local 181 subgt coeff, coeff, QPdiv2 local 194 mov coeff, q_value, asr shift \/*smull tmp, coeff, q_scale, coeff*\/ local 195 add q_value, coeff, coeff, lsr #31 local 204 int32 coeff; local 209 smulbb coeff, q_value, QPx2 local 210 sublt coeff, coeff, Addition local 211 addge coeff, coeff, Addition local 212 add q_value, coeff, tmp local 215 eorhi coeff, tmp, coeff, asr #31 local 225 smlabb q_value, coeff, q_value, round local 246 int32 coeff; local 249 movs coeff, q_value, lsl #1 local 251 addgt coeff, coeff, #1 local 252 sublt coeff, coeff, #1 local 253 smulbb q_value, coeff, stepsize local 256 add coeff, q_value, tmp local 257 subs coeff, coeff, #0xf00 local 258 subcss coeff, coeff, #0xfe local 273 mla q_value, coeff, q_value, round local 274 movs coeff, q_value, asr #16 local 275 addle coeff, coeff, QPdiv2 local 276 subgt coeff, coeff, QPdiv2 local 289 mov coeff, q_value, asr shift \/*smull tmp, coeff, q_scale, coeff*\/ local 290 add q_value, coeff, coeff, lsr #31 local 300 int32 coeff; local 305 mul coeff, q_value, QPx2 local 306 sublt coeff, coeff, Addition local 307 addge coeff, coeff, Addition local 308 add q_value, coeff, tmp local 311 eorhi coeff, tmp, coeff, asr #31 local 321 mla q_value, coeff, q_value, round local 343 int32 coeff; local 346 movs coeff, q_value, lsl #1 local 348 addgt coeff, coeff, #1 local 349 sublt coeff, coeff, #1 local 350 mul q_value, coeff, stepsize local 353 add coeff, q_value, tmp local 354 subs coeff, coeff, #0xf00 local 355 subcss coeff, coeff, #0xfe local 367 int32 coeff; local 371 add coeff, q_value, ac_clip local 372 subs coeff, coeff, ac_clip, lsl #1 local 384 cmp coeff, #0 local 385 addle coeff, coeff, QP, asr #1 local 386 subgt coeff, coeff, QP, asr #1 local 395 int32 coeff; local 399 add coeff, q_value, tmp local 400 subs coeff, coeff, #0xf00 local 401 subcss coeff, coeff, #0xfe local 410 int32 coeff; local 417 add coeff, q_value, tmp local 418 subs coeff, coeff, #0xf00 local 419 subcss coeff, coeff, #0xfe local 471 register int32 coeff; local 555 register int32 coeff; local [all...] |