/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | fastquant.cpp | 154 Int tmp, coeff, q_value; in BlockQuantDequantH263Inter() local 192 coeff = rcoeff[i]; in BlockQuantDequantH263Inter() 193 if (coeff == 0x7fff) /* all zero column */ in BlockQuantDequantH263Inter() 201 if (coeff >= -QPx2plus && coeff < QPx2plus) /* quantize to zero */ in BlockQuantDequantH263Inter() 206 coeff = rcoeff[i]; in BlockQuantDequantH263Inter() 207 if (coeff > -QPx2plus && coeff < QPx2plus) /* quantize to zero */ in BlockQuantDequantH263Inter() 210 coeff = rcoeff[i]; in BlockQuantDequantH263Inter() 224 coeff = aan_scale(q_value, coeff, round, QPdiv2); in BlockQuantDequantH263Inter() 225 q_value = coeff_quant(coeff, q_scale, shift); in BlockQuantDequantH263Inter() 238 coeff = coeff_dequant(q_value, QPx2, Addition, tmp); in BlockQuantDequantH263Inter() [all …]
|
D | fastquant_inline.h | 30 __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() 34 if (coeff < 0) coeff += QPdiv2; in aan_scale() 35 else coeff -= QPdiv2; in aan_scale() 37 return coeff; in aan_scale() 41 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) in coeff_quant() argument 45 q_value = coeff * q_scale; //q_value = -((-(coeff + QPdiv2)*q_scale)>>LSL); in coeff_quant() 54 int32 coeff = q_value + ac_clip; in coeff_clip() local 56 if ((UInt)coeff > (UInt)(ac_clip << 1)) in coeff_clip() [all …]
|
D | fastcodemb.h | 32 Int(*DCT)(Int block[ ], Int coeff[ ], approxDCT *);
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicConvolve5x5.cpp | 85 const float* coeff) { in OneU4() argument 93 float4 px = convert_float4(py0[x0]) * coeff[0] + in OneU4() 94 convert_float4(py0[x1]) * coeff[1] + in OneU4() 95 convert_float4(py0[x2]) * coeff[2] + in OneU4() 96 convert_float4(py0[x3]) * coeff[3] + in OneU4() 97 convert_float4(py0[x4]) * coeff[4] + in OneU4() 99 convert_float4(py1[x0]) * coeff[5] + in OneU4() 100 convert_float4(py1[x1]) * coeff[6] + in OneU4() 101 convert_float4(py1[x2]) * coeff[7] + in OneU4() 102 convert_float4(py1[x3]) * coeff[8] + in OneU4() [all …]
|
D | rsCpuIntrinsicConvolve3x3.cpp | 86 const float* coeff) { in ConvolveOneU4() argument 91 float4 px = convert_float4(py0[x1]) * coeff[0] + in ConvolveOneU4() 92 convert_float4(py0[x]) * coeff[1] + in ConvolveOneU4() 93 convert_float4(py0[x2]) * coeff[2] + in ConvolveOneU4() 94 convert_float4(py1[x1]) * coeff[3] + in ConvolveOneU4() 95 convert_float4(py1[x]) * coeff[4] + in ConvolveOneU4() 96 convert_float4(py1[x2]) * coeff[5] + in ConvolveOneU4() 97 convert_float4(py2[x1]) * coeff[6] + in ConvolveOneU4() 98 convert_float4(py2[x]) * coeff[7] + in ConvolveOneU4() 99 convert_float4(py2[x2]) * coeff[8]; in ConvolveOneU4() [all …]
|
D | rsCpuIntrinsicColorMatrix.cpp | 782 const void *py, const float* coeff, const float *add, in One() argument 822 sum.x = f.x * coeff[0] + in One() 823 f.y * coeff[4] + in One() 824 f.z * coeff[8] + in One() 825 f.w * coeff[12]; in One() 826 sum.y = f.x * coeff[1] + in One() 827 f.y * coeff[5] + in One() 828 f.z * coeff[9] + in One() 829 f.w * coeff[13]; in One() 830 sum.z = f.x * coeff[2] + in One() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | q_gain2.c | 81 Word16 coeff[5], coeff_lo[5], exp_coeff[5]; in Q_gain2() local 140 coeff[0] = g_coeff[0]; in Q_gain2() 142 coeff[1] = negate(g_coeff[2]); /* coeff[1] = -2 xn y1 */ in Q_gain2() 147 coeff[2] = extract_h(Dot_product12_asm(y2, y2, L_subfr, &exp)); in Q_gain2() 149 coeff[2] = extract_h(Dot_product12(y2, y2, L_subfr, &exp)); in Q_gain2() 155 coeff[3] = extract_h(L_negate(Dot_product12_asm(xn, y2, L_subfr, &exp))); in Q_gain2() 157 coeff[3] = extract_h(L_negate(Dot_product12(xn, y2, L_subfr, &exp))); in Q_gain2() 164 coeff[4] = extract_h(Dot_product12_asm(y1, y2, L_subfr, &exp)); in Q_gain2() 166 coeff[4] = extract_h(Dot_product12(y1, y2, L_subfr, &exp)); in Q_gain2() 267 L_tmp = L_deposit_h(coeff[i]); in Q_gain2() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | qgain475.cpp | 1193 Word16 coeff[10]; in MR475_gain_quant() local 1331 coeff[i] = (Word16)(L_tmp >> 16); in MR475_gain_quant() 1340 coeff[i] = (Word16)(L_tmp >> 16); in MR475_gain_quant() 1374 L_tmp = Mpy_32_16(coeff[0], coeff_lo[0], g2_pitch, pOverflow) + in MR475_gain_quant() 1375 Mpy_32_16(coeff[1], coeff_lo[1], g_pitch, pOverflow) + in MR475_gain_quant() 1376 Mpy_32_16(coeff[2], coeff_lo[2], g2_code, pOverflow) + in MR475_gain_quant() 1377 Mpy_32_16(coeff[3], coeff_lo[3], g_code, pOverflow) + in MR475_gain_quant() 1378 Mpy_32_16(coeff[4], coeff_lo[4], g_pit_cod, pOverflow); in MR475_gain_quant() 1393 L_tmp += (Mpy_32_16(coeff[5], coeff_lo[5], g2_pitch, pOverflow) + in MR475_gain_quant() 1394 Mpy_32_16(coeff[6], coeff_lo[6], g_pitch, pOverflow) + in MR475_gain_quant() [all …]
|
D | qgain795.cpp | 239 Word16 coeff[5]; in MR795_gain_code_quant3() local 298 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow); in MR795_gain_code_quant3() 325 L_tmp0 = Mpy_32_16(coeff[0], coeff_lo[0], g2_pitch, pOverflow); in MR795_gain_code_quant3() 326 L_tmp0 = Mac_32_16(L_tmp0, coeff[1], coeff_lo[1], g_pitch, pOverflow); in MR795_gain_code_quant3() 343 L_tmp = Mac_32(L_tmp0, coeff[2], coeff_lo[2], in MR795_gain_code_quant3() 345 L_tmp = Mac_32_16(L_tmp, coeff[3], coeff_lo[3], in MR795_gain_code_quant3() 347 L_tmp = Mac_32(L_tmp, coeff[4], coeff_lo[4], in MR795_gain_code_quant3() 508 Word16 coeff[5]; in MR795_gain_code_quant_mod() local 573 coeff[2] = mult(tmp, gain_pit, pOverflow); in MR795_gain_code_quant_mod() 579 coeff[3] = extract_h(L_shl(L_mult(alpha, frac_en[3], pOverflow), 1, pOverflow)); in MR795_gain_code_quant_mod() [all …]
|
D | qua_gain.cpp | 224 Word16 coeff[5]; in Qua_gain() local 317 L_Extract(L_tmp, &coeff[i], &coeff_lo[i], pOverflow); in Qua_gain() 351 L_tmp = Mpy_32_16(coeff[0], coeff_lo[0], g2_pitch, pOverflow); in Qua_gain() 352 L_tmp2 = Mpy_32_16(coeff[1], coeff_lo[1], g_pitch, pOverflow); in Qua_gain() 355 L_tmp2 = Mpy_32_16(coeff[2], coeff_lo[2], g2_code, pOverflow); in Qua_gain() 358 L_tmp2 = Mpy_32_16(coeff[3], coeff_lo[3], g_code, pOverflow); in Qua_gain() 361 L_tmp2 = Mpy_32_16(coeff[4], coeff_lo[4], g_pit_cod, pOverflow); in Qua_gain()
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | DelayAllPass_Sat_32x16To32.c | 32 … LVM_INT16 coeff, /* All pass filter coefficient */ in DelayAllPass_Sat_32x16To32() argument 46 MUL32x16INTO32(delay[AllPassOffset], coeff, temp, 15) in DelayAllPass_Sat_32x16To32() 67 MUL32x16INTO32(c, -coeff, temp, 15) in DelayAllPass_Sat_32x16To32()
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | isf_extrapolation.cpp | 122 int16 coeff, mean, tmp, tmp2, tmp3; in isf_extrapolation() local 231 coeff = div_16by16(tmp, tmp2); /* Coefficient for stretching the ISF vector */ in isf_extrapolation() 236 tmp = mult_int16(sub_int16(HfIsf[i], HfIsf[i - 1]), coeff); in isf_extrapolation()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintController.java | 300 private boolean isColorMatrixCoeffValid(float coeff) { in isColorMatrixCoeffValid() argument 301 if (Float.isNaN(coeff) || Float.isInfinite(coeff)) { in isColorMatrixCoeffValid()
|
/frameworks/rs/rsov/compiler/spirit/test_data/ |
D | greyscale3.spt | 22 OpMemberName %globalBuffer 0 "coeff"
|
D | greyscale2.spt | 22 OpMemberName %globalBuffer 0 "coeff"
|
D | greyscale.spt | 19 OpMemberName %globalBuffer 0 "coeff"
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | VectorArithmetic.h | 149 … LVM_INT16 coeff, /* All pass filter coefficient */
|