/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_decode_huff_cw.cpp | 152 uint32 tmp; in pvmp3_decode_huff_cw_tab1() local 155 tmp = getUpTo9bits(pMainData, 3); /* hufftable1 */ in pvmp3_decode_huff_cw_tab1() 157 cw = *(huffTable_1 + tmp); in pvmp3_decode_huff_cw_tab1() 169 uint32 tmp; in pvmp3_decode_huff_cw_tab2() local 172 tmp = getUpTo9bits(pMainData, 6); /* huffTable_2,3 */ in pvmp3_decode_huff_cw_tab2() 174 if (tmp >> 3) in pvmp3_decode_huff_cw_tab2() 176 tmp = (tmp >> 3) - 1; in pvmp3_decode_huff_cw_tab2() 180 tmp = tmp + 7; in pvmp3_decode_huff_cw_tab2() 183 cw = *(huffTable_2 + tmp); in pvmp3_decode_huff_cw_tab2() 195 uint32 tmp; in pvmp3_decode_huff_cw_tab3() local [all …]
|
D | pvmp3_get_side_info.cpp | 120 uint32 tmp; in pvmp3_get_side_info() local 128 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info() 129 si->main_data_begin = (tmp << 18) >> 23; /* 9 */ in pvmp3_get_side_info() 130 si->private_bits = (tmp << 23) >> 27; /* 5 */ in pvmp3_get_side_info() 134 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() 135 si->main_data_begin = (tmp << 20) >> 23; /* 9 */ in pvmp3_get_side_info() 136 si->private_bits = (tmp << 23) >> 29; /* 3 */ in pvmp3_get_side_info() 142 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info() 143 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info() 144 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info() [all …]
|
D | pvmp3_dequantize_sample.cpp | 296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss]))); in pvmp3_dequantize_sample() local 298 tmp = fxp_mul32_Q30(tmp, two_raise_one_fourth); in pvmp3_dequantize_sample() 305 is[ss] = (tmp >> temp); in pvmp3_dequantize_sample() 314 is[ss] = (tmp << global_gain); in pvmp3_dequantize_sample() 352 int32 tmp = is[ss]; in pvmp3_dequantize_sample() local 353 if (tmp) in pvmp3_dequantize_sample() 355 tmp = fxp_mul32_Q30((tmp << 16), power_1_third(pv_abs(tmp))); in pvmp3_dequantize_sample() 356 is[ss] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample() 358 tmp = is[ss+1]; in pvmp3_dequantize_sample() 359 if (tmp) in pvmp3_dequantize_sample() [all …]
|
D | pvmp3_mdct_18.cpp | 135 int32 tmp; in pvmp3_mdct_18() local 152 tmp = *(pt_vec); in pvmp3_mdct_18() 154 tmp = fxp_mul32_Q32(tmp << 1, *(pt_cos++)); in pvmp3_mdct_18() 156 *(pt_vec++) = tmp + tmp1 ; in pvmp3_mdct_18() 157 *(pt_vec_o--) = fxp_mul32_Q28((tmp - tmp1), *(pt_cos_split++)); in pvmp3_mdct_18() 169 tmp = vec[12]; in pvmp3_mdct_18() 179 vec[ 5] = vec[11] - tmp; in pvmp3_mdct_18() 180 vec[ 7] = vec[13] - tmp; in pvmp3_mdct_18() 194 tmp = history[ i]; in pvmp3_mdct_18() 198 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]); in pvmp3_mdct_18() [all …]
|
D | pvmp3_mdct_6.cpp | 125 int32 tmp; in pvmp3_mdct_6() local 135 tmp = *(pt_vec++); in pvmp3_mdct_6() 138 *(pt_vec_o++) = fxp_mul32_Q29(tmp, *(pt_cos++)); in pvmp3_mdct_6() 147 tmp = -(vec[0] + vec[1]); in pvmp3_mdct_6() 148 history[3] = tmp; in pvmp3_mdct_6() 149 history[2] = tmp; in pvmp3_mdct_6() 150 tmp = -(vec[1] + vec[2]); in pvmp3_mdct_6() 153 history[4] = tmp; in pvmp3_mdct_6() 154 history[1] = tmp; in pvmp3_mdct_6() 155 tmp = -(vec[2] + vec[3]); in pvmp3_mdct_6() [all …]
|
/frameworks/base/media/libstagefright/codecs/avc/common/src/ |
D | deblock.cpp | 297 int indexA, indexB, tmp; in DeblockMb() local 389 tmp = (int)clipTable; in DeblockMb() 489 clipTable = (int *)tmp; in DeblockMb() 532 int tmp; in GetStrength_Edge0() local 578 tmp = *ptrQ++ - *ptrP++; in GetStrength_Edge0() 579 if (tmp < 0) tmp = -tmp; in GetStrength_Edge0() 580 if (tmp >= 4) *pStrength = 1; in GetStrength_Edge0() 582 tmp = *ptrQ-- - *ptrP--; in GetStrength_Edge0() 583 if (tmp < 0) tmp = -tmp; in GetStrength_Edge0() 584 if (tmp >= 4) *pStrength = 1; in GetStrength_Edge0() [all …]
|
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | sad.cpp | 113 Int saddata[16], tmp, tmp2; /* used when collecting flag (global) is on */ in SAD_MB_HTFM_Collect() local 127 tmp = p1[12]; in SAD_MB_HTFM_Collect() 129 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect() 130 tmp = p1[8]; in SAD_MB_HTFM_Collect() 132 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect() 133 tmp = p1[4]; in SAD_MB_HTFM_Collect() 135 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect() 136 tmp = p1[0]; in SAD_MB_HTFM_Collect() 139 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect() 142 tmp = p1[12]; in SAD_MB_HTFM_Collect() [all …]
|
D | sad_halfpel_inline.h | 34 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP1_SUB_SAD() argument 36 tmp = (tmp2 >> 1) - tmp; in INTERP1_SUB_SAD() 37 if (tmp > 0) sad += tmp; in INTERP1_SUB_SAD() 38 else sad -= tmp; in INTERP1_SUB_SAD() 43 __inline int32 INTERP2_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP2_SUB_SAD() argument 45 tmp = (tmp >> 2) - tmp2; in INTERP2_SUB_SAD() 46 if (tmp > 0) sad += tmp; in INTERP2_SUB_SAD() 47 else sad -= tmp; in INTERP2_SUB_SAD() 54 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) 58 rsbs tmp, tmp, tmp2, asr #1 ; [all …]
|
D | me_utils.cpp | 38 Int MB_mean, A, tmp, Th; in ChooseMode_C() local 76 tmp = *p - MB_mean; in ChooseMode_C() 78 if (tmp > 0) A += tmp; in ChooseMode_C() 79 else A -= tmp; in ChooseMode_C() 318 Int tmp, tmp2, mask = 0x00FF00FF; in ComputeMBSum_C() local 325 tmp = cInt[3]; /* load 4 pixels at a time */ in ComputeMBSum_C() 326 tmp2 = tmp & mask; in ComputeMBSum_C() 327 tmp = (tmp >> 8) & mask; in ComputeMBSum_C() 328 tmp += tmp2; in ComputeMBSum_C() 329 sad2 += tmp; in ComputeMBSum_C() [all …]
|
D | sad_halfpel.cpp | 343 Int difmad, tmp, tmp2; in SAD_MB_HP_HTFM_Collectxhyh() local 363 tmp = p1[12] + p2[12]; in SAD_MB_HP_HTFM_Collectxhyh() 365 tmp += tmp2; in SAD_MB_HP_HTFM_Collectxhyh() 367 tmp += 2; in SAD_MB_HP_HTFM_Collectxhyh() 368 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in SAD_MB_HP_HTFM_Collectxhyh() 369 tmp = p1[8] + p2[8]; in SAD_MB_HP_HTFM_Collectxhyh() 371 tmp += tmp2; in SAD_MB_HP_HTFM_Collectxhyh() 373 tmp += 2; in SAD_MB_HP_HTFM_Collectxhyh() 374 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in SAD_MB_HP_HTFM_Collectxhyh() 375 tmp = p1[4] + p2[4]; in SAD_MB_HP_HTFM_Collectxhyh() [all …]
|
D | fastquant.cpp | 154 Int tmp, coeff, q_value; in BlockQuantDequantH263Inter() local 237 tmp = 2047; in BlockQuantDequantH263Inter() 238 coeff = coeff_dequant(q_value, QPx2, Addition, tmp); in BlockQuantDequantH263Inter() 256 tmp = 1 << (8 - i); in BlockQuantDequantH263Inter() 259 if (bitmapcol[i])(*bitmaprow) |= tmp; in BlockQuantDequantH263Inter() 260 tmp <<= 1; in BlockQuantDequantH263Inter() 274 Int tmp, coeff, q_value; in BlockQuantDequantH263Intra() local 399 tmp = 2047; in BlockQuantDequantH263Intra() 400 coeff = coeff_dequant(q_value, QPx2, Addition, tmp); in BlockQuantDequantH263Intra() 419 tmp = 1 << (8 - i); in BlockQuantDequantH263Intra() [all …]
|
/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
D | sad_halfpel.cpp | 189 int difmad, tmp, tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() local 212 tmp = p1[12] + p2[12]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 214 tmp += tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 216 tmp += 2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 217 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 218 tmp = p1[8] + p2[8]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 220 tmp += tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 222 tmp += 2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 223 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() 224 tmp = p1[4] + p2[4]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() [all …]
|
D | sad.cpp | 97 int saddata[16], tmp, tmp2; /* used when collecting flag (global) is on */ in AVCAVCSAD_MB_HTFM_Collect() local 114 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect() 116 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect() 117 tmp = p1[8]; in AVCAVCSAD_MB_HTFM_Collect() 119 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect() 120 tmp = p1[4]; in AVCAVCSAD_MB_HTFM_Collect() 122 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect() 123 tmp = p1[0]; in AVCAVCSAD_MB_HTFM_Collect() 126 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect() 129 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect() [all …]
|
D | sad_halfpel_inline.h | 29 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP1_SUB_SAD() argument 31 tmp = (tmp2 >> 1) - tmp; in INTERP1_SUB_SAD() 32 if (tmp > 0) sad += tmp; in INTERP1_SUB_SAD() 33 else sad -= tmp; in INTERP1_SUB_SAD() 38 __inline int32 INTERP2_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP2_SUB_SAD() argument 40 tmp = (tmp >> 2) - tmp2; in INTERP2_SUB_SAD() 41 if (tmp > 0) sad += tmp; in INTERP2_SUB_SAD() 42 else sad -= tmp; in INTERP2_SUB_SAD() 49 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) 53 rsbs tmp, tmp, tmp2, asr #1 ; [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | Matrix.java | 137 float[] tmp = new float[12]; in invertM() local 140 tmp[0] = src[10] * src[15]; in invertM() 141 tmp[1] = src[11] * src[14]; in invertM() 142 tmp[2] = src[9] * src[15]; in invertM() 143 tmp[3] = src[11] * src[13]; in invertM() 144 tmp[4] = src[9] * src[14]; in invertM() 145 tmp[5] = src[10] * src[13]; in invertM() 146 tmp[6] = src[8] * src[15]; in invertM() 147 tmp[7] = src[11] * src[12]; in invertM() 148 tmp[8] = src[8] * src[14]; in invertM() [all …]
|
/frameworks/base/media/libstagefright/codecs/aacdec/ |
D | sbr_inv_filt_levelemphasis.cpp | 149 Int32 tmp; in sbr_inv_filt_levelemphasis() local 185 tmp = InvFiltFactors[j]; in sbr_inv_filt_levelemphasis() 187 if (tmp < BwVectorOld[i]) in sbr_inv_filt_levelemphasis() 189 tmp = ((tmp << 1) + tmp + BwVectorOld[i]) >> 2; in sbr_inv_filt_levelemphasis() 193 tmp = fxp_mul32_Q29(Qfmt(0.90625f), tmp); in sbr_inv_filt_levelemphasis() 194 tmp = fxp_mac32_Q29(Qfmt(0.09375f), BwVectorOld[i], tmp); in sbr_inv_filt_levelemphasis() 197 if (tmp < Qfmt(0.015625F)) in sbr_inv_filt_levelemphasis() 199 tmp = 0; in sbr_inv_filt_levelemphasis() 202 if (tmp >= Qfmt(0.99609375f)) in sbr_inv_filt_levelemphasis() 204 tmp = Qfmt(0.99609375f); in sbr_inv_filt_levelemphasis() [all …]
|
D | digit_reversal_tables.cpp | 254 Int32 tmp[2]; in digit_reversal_swapping() local 263 tmp[0] = y[i]; in digit_reversal_swapping() 264 tmp[1] = y[i+1]; in digit_reversal_swapping() 267 y[j] = tmp[0]; in digit_reversal_swapping() 268 y[j+1] = tmp[1]; in digit_reversal_swapping() 270 tmp[0] = x[j]; in digit_reversal_swapping() 271 tmp[1] = x[j+1]; in digit_reversal_swapping() 274 x[i] = tmp[0]; in digit_reversal_swapping() 275 x[i+1] = tmp[1]; in digit_reversal_swapping()
|
/frameworks/base/media/libstagefright/codecs/amrwb/src/ |
D | dec_alg_codebook.cpp | 147 int16 pos1, pos2, tmp; in dec_2p_2N1() local 156 tmp = shl_int16(N, 1); in dec_2p_2N1() 157 i = (index >> tmp) & 1L; /* i = (index >> (2*N)) & 1; */ in dec_2p_2N1() 194 int16 j, tmp; in dec_3p_3N1() local 200 tmp = sub_int16(shl_int16(N, 1), 1); /* mask = ((1<<((2*N)-1))-1); */ in dec_3p_3N1() 206 tmp = (N << 1) - 1; in dec_3p_3N1() 209 if (((index >> tmp) & 1L) != 0L) in dec_3p_3N1() 216 tmp = N << 1; /* idx = (index >> (2*N)) & mask; */ in dec_3p_3N1() 217 idx = (index >> tmp) & mask; in dec_3p_3N1() 231 int16 j, tmp; in dec_4p_4N1() local [all …]
|
D | voice_factor.cpp | 127 int16 i, tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local 135 tmp = (int16)((L_tmp << exp) >> 16); in voice_factor() 136 ener1 = mult_int16(ener1, tmp); in voice_factor() 142 tmp = shl_int16(gain_code, exp); in voice_factor() 143 tmp = mult_int16(tmp, tmp); in voice_factor() 144 ener2 = mult_int16(ener2, tmp); in voice_factor() 161 tmp = ener1 - ener2; in voice_factor() 165 if (tmp >= 0) in voice_factor() 167 tmp = div_16by16(tmp, ener1); in voice_factor() 171 tmp = negate_int16(div_16by16(negate_int16(tmp), ener1)); in voice_factor() [all …]
|
D | isf_extrapolation.cpp | 122 int16 coeff, mean, tmp, tmp2, tmp3; in isf_extrapolation() local 145 tmp = 0; in isf_extrapolation() 148 if (IsfDiff[i] > tmp) in isf_extrapolation() 150 tmp = IsfDiff[i]; in isf_extrapolation() 153 exp = norm_s(tmp); in isf_extrapolation() 208 tmp = sub_int16(HfIsf[i - 1 - MaxCorr], HfIsf[i - 2 - MaxCorr]); in isf_extrapolation() 209 HfIsf[i] = add_int16(HfIsf[i - 1], tmp); in isf_extrapolation() 213 tmp = add_int16(HfIsf[4], HfIsf[3]); in isf_extrapolation() 214 tmp = sub_int16(HfIsf[2], tmp); in isf_extrapolation() 215 tmp = mult_int16(tmp, 5461); in isf_extrapolation() [all …]
|
D | homing_amr_wb_dec.cpp | 250 int16 i, j, tmp, shift; in dhf_test() local 280 tmp = nparms - 15; in dhf_test() 281 while (tmp > j) in dhf_test() 287 tmp = nparms - j; in dhf_test() 288 param[i] = Serial_parm(tmp, &prms); in dhf_test() 289 shift = 15 - tmp; in dhf_test() 318 tmp = Serial_parm(8, &prms); in dhf_test() 319 param[31] = shl_int16(tmp, 7); in dhf_test() 324 tmp = i; in dhf_test() 326 for (i = 0; i < tmp; i++) in dhf_test() [all …]
|
D | median5.cpp | 121 int16 tmp; in median5() local 133 tmp = x1; in median5() 135 x2 = tmp; in median5() 139 tmp = x1; in median5() 141 x3 = tmp; in median5() 145 tmp = x1; in median5() 147 x4 = tmp; in median5() 155 tmp = x2; in median5() 157 x3 = tmp; in median5() 161 tmp = x2; in median5() [all …]
|
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/ |
D | voicefac.c | 37 Word16 tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local 48 tmp = extract_h(L_tmp << exp); in voice_factor() 49 ener1 = vo_mult(ener1, tmp); in voice_factor() 59 tmp = gain_code << exp; in voice_factor() 60 tmp = vo_mult(tmp, tmp); in voice_factor() 61 ener2 = vo_mult(ener2, tmp); in voice_factor() 76 tmp = vo_sub(ener1, ener2); in voice_factor() 79 if (tmp >= 0) in voice_factor() 81 tmp = div_s(tmp, ener1); in voice_factor() 84 tmp = vo_negate(div_s(vo_negate(tmp), ener1)); in voice_factor() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | ProgramFragment.java | 40 int[] tmp = new int[(mInputCount + mOutputCount + mConstantCount + 1) * 2]; in create() local 44 tmp[idx++] = 0; in create() 45 tmp[idx++] = mInputs[i].mID; in create() 48 tmp[idx++] = 1; in create() 49 tmp[idx++] = mOutputs[i].mID; in create() 52 tmp[idx++] = 2; in create() 53 tmp[idx++] = mConstants[i].mID; in create() 55 tmp[idx++] = 3; in create() 56 tmp[idx++] = mTextureCount; in create() 58 int id = mRS.nProgramFragmentCreate2(mShader, tmp); in create() [all …]
|
/frameworks/base/libs/rs/ |
D | rsMatrix.h | 53 Matrix tmp; in multiply() local 54 tmp.loadMultiply(this, rhs); in multiply() 55 load(&tmp); in multiply() 58 Matrix tmp; in rotate() local 59 tmp.loadRotate(rot, x, y, z); in rotate() 60 multiply(&tmp); in rotate() 63 Matrix tmp; in scale() local 64 tmp.loadScale(x, y, z); in scale() 65 multiply(&tmp); in scale() 68 Matrix tmp; in translate() local [all …]
|