Lines Matching refs:coeff

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);
46 q_value >>= shift; //q_value = (((coeff - QPdiv2)*q_scale)>>LSL );
54 int32 coeff = q_value + ac_clip;
56 if ((UInt)coeff > (UInt)(ac_clip << 1))
64 int32 coeff;
70 coeff = q_value * QPx2 - Addition;
71 if (coeff < -2048)
72 coeff = -2048;
76 coeff = q_value * QPx2 + Addition;
77 if (coeff > 2047)
78 coeff = 2047;
80 return coeff;
83 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round)
85 q_value = coeff * q_value + round;
90 __inline int32 smulbb(int32 q_scale, int32 coeff)
94 q_value = coeff * q_scale;
99 __inline int32 aan_dc_scale(int32 coeff, int32 QP)
102 if (coeff < 0) coeff += (QP >> 1);
103 else coeff -= (QP >> 1);
105 return coeff;
126 int32 coeff;
130 coeff = q_value << 1;
132 if (coeff > 0)
134 q_value = (coeff + 1) * stepsize;
140 q_value = (coeff - 1) * stepsize;
173 __inline int32 aan_scale(int32 q_value, int32 coeff,
178 smlabb q_value, coeff, q_value, round
179 movs coeff, q_value, asr #16
180 addle coeff, coeff, QPdiv2
181 subgt coeff, coeff, QPdiv2
184 return coeff;
187 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift)
193 smulbb q_value, q_scale, coeff /*mov coeff, coeff, lsl #14*/
194 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
195 add q_value, coeff, coeff, lsr #31
204 int32 coeff;
209 smulbb coeff, q_value, QPx2
210 sublt coeff, coeff, Addition
211 addge coeff, coeff, Addition
212 add q_value, coeff, tmp
215 eorhi coeff, tmp, coeff, asr #31
218 return coeff;
221 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round)
225 smlabb q_value, coeff, q_value, round
231 __inline int32 smulbb(int32 q_scale, int32 coeff)
237 smulbb q_value, q_scale, coeff
246 int32 coeff;
249 movs coeff, q_value, lsl #1
251 addgt coeff, coeff, #1
252 sublt coeff, coeff, #1
253 smulbb q_value, coeff, stepsize
256 add coeff, q_value, tmp
257 subs coeff, coeff, #0xf00
258 subcss coeff, coeff, #0xfe
268 __inline int32 aan_scale(int32 q_value, int32 coeff,
273 mla q_value, coeff, q_value, round
274 movs coeff, q_value, asr #16
275 addle coeff, coeff, QPdiv2
276 subgt coeff, coeff, QPdiv2
279 return coeff;
282 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift)
288 mul q_value, q_scale, coeff /*mov coeff, coeff, lsl #14*/
289 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
290 add q_value, coeff, coeff, lsr #31
300 int32 coeff;
305 mul coeff, q_value, QPx2
306 sublt coeff, coeff, Addition
307 addge coeff, coeff, Addition
308 add q_value, coeff, tmp
311 eorhi coeff, tmp, coeff, asr #31
314 return coeff;
317 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round)
321 mla q_value, coeff, q_value, round
327 __inline int32 smulbb(int32 q_scale, int32 coeff)
333 mul q_value, q_scale, coeff
343 int32 coeff;
346 movs coeff, q_value, lsl #1
348 addgt coeff, coeff, #1
349 sublt coeff, coeff, #1
350 mul q_value, coeff, stepsize
353 add coeff, q_value, tmp
354 subs coeff, coeff, #0xf00
355 subcss coeff, coeff, #0xfe
367 int32 coeff;
371 add coeff, q_value, ac_clip
372 subs coeff, coeff, ac_clip, lsl #1
379 __inline int32 aan_dc_scale(int32 coeff, int32 QP)
384 cmp coeff, #0
385 addle coeff, coeff, QP, asr #1
386 subgt coeff, coeff, QP, asr #1
389 return coeff;
395 int32 coeff;
399 add coeff, q_value, tmp
400 subs coeff, coeff, #0xf00
401 subcss coeff, coeff, #0xfe
410 int32 coeff;
417 add coeff, q_value, tmp
418 subs coeff, coeff, #0xf00
419 subcss coeff, coeff, #0xfe
428 __inline int32 aan_scale(int32 q_value, int32 coeff,
433 register int32 cf = coeff;
449 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift)
453 register int32 cc = coeff;
471 register int32 coeff;
477 "=&r"(coeff)
510 __inline int32 smlabb(int32 q_value, int32 coeff, int32 round)
514 register int32 bb = (int32)coeff;
525 __inline int32 smulbb(int32 q_scale, int32 coeff)
529 register int32 bb = (int32)coeff;
538 __inline int32 aan_dc_scale(int32 coeff, int32 QP)
541 register int32 cc = coeff;
555 register int32 coeff;
561 "=&r"(coeff)