Home
last modified time | relevance | path

Searched refs:q_value (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastquant_inline.h30 __inline int32 aan_scale(int32 q_value, int32 coeff, int32 round, int32 QPdiv2) in aan_scale() argument
32 q_value = coeff * q_value + round; in aan_scale()
33 coeff = q_value >> 16; in aan_scale()
43 int32 q_value; in coeff_quant() local
45 q_value = coeff * q_scale; //q_value = -((-(coeff + QPdiv2)*q_scale)>>LSL); in coeff_quant()
46 q_value >>= shift; //q_value = (((coeff - QPdiv2)*q_scale)>>LSL ); in coeff_quant()
47 q_value += ((UInt)q_value >> 31); /* add one if negative */ in coeff_quant()
49 return q_value; in coeff_quant()
52 __inline int32 coeff_clip(int32 q_value, int32 ac_clip) in coeff_clip() argument
54 int32 coeff = q_value + ac_clip; in coeff_clip()
[all …]
Dfastquant.cpp154 Int tmp, coeff, q_value; in BlockQuantDequantH263Inter() local
221 q_value = AANScale[i]; /* load scale AAN */ in BlockQuantDequantH263Inter()
224 coeff = aan_scale(q_value, coeff, round, QPdiv2); in BlockQuantDequantH263Inter()
225 q_value = coeff_quant(coeff, q_scale, shift); in BlockQuantDequantH263Inter()
228 if (q_value) in BlockQuantDequantH263Inter()
232 q_value = coeff_clip(q_value, ac_clip); in BlockQuantDequantH263Inter()
233 qcoeff[zz>>1] = q_value; in BlockQuantDequantH263Inter()
238 coeff = coeff_dequant(q_value, QPx2, Addition, tmp); in BlockQuantDequantH263Inter()
274 Int tmp, coeff, q_value; in BlockQuantDequantH263Intra() local
326 q_value = round + (coeff << 12); in BlockQuantDequantH263Intra()
[all …]