/frameworks/av/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 << 27) >> 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 << 29) >> 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 | 136 int32 tmp; in pvmp3_mdct_18() local 153 tmp = *(pt_vec); in pvmp3_mdct_18() 155 tmp = fxp_mul32_Q32(tmp << 1, *(pt_cos++)); in pvmp3_mdct_18() 157 *(pt_vec++) = tmp + tmp1 ; in pvmp3_mdct_18() 158 *(pt_vec_o--) = fxp_mul32_Q28((tmp - tmp1), *(pt_cos_split++)); in pvmp3_mdct_18() 170 tmp = vec[12]; in pvmp3_mdct_18() 180 vec[ 5] = vec[11] - tmp; in pvmp3_mdct_18() 181 vec[ 7] = vec[13] - tmp; in pvmp3_mdct_18() 195 tmp = history[ i]; in pvmp3_mdct_18() 199 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/av/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/rs/perf-test-scripts/ |
D | timing | 209 adb shell cat /sdcard/rsTimes/${TEST_NAMES[$testId]}_DATA.txt > timing.tmp 217 AVG=`cat timing.tmp | awk '{sum+=$2}END{printf "%.2f",sum/NR}'` 218 …STDCOEF=`cat timing.tmp | awk '{sum+=$2;sos+=$2*$2}END{printf "%.2f",sqrt((sos-sum*sum/NR)/NR)/(su… 221 echo "# temporary file" > plot.tmp 222 echo "set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 ps 1" >> plot.tmp # --- blue 223 echo "set style line 2 lc rgb '#ff0000' lt 1 lw 2" >> plot.tmp # --- green 224 echo "set title \"${TEST_NAMES[$testId]} \(avg=$AVG ms, stdcoef=$STDCOEF%\)\"" >> plot.tmp 225 echo "set xlabel \"Iteration #\"" >> plot.tmp 226 echo "set ylabel \"Elapsed Time (ms)\"" >> plot.tmp 228 echo "set yrange [0.0:*]" >> plot.tmp [all …]
|
/frameworks/av/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/av/media/libeffects/factory/ |
D | EffectsFactoryState.c | 75 int tmp[10]; in stringToUuid() local 78 tmp, tmp+1, tmp+2, tmp+3, tmp+4, tmp+5, tmp+6, tmp+7, tmp+8, tmp+9) < 10) { in stringToUuid() 81 uuid->timeLow = (uint32_t)tmp[0]; in stringToUuid() 82 uuid->timeMid = (uint16_t)tmp[1]; in stringToUuid() 83 uuid->timeHiAndVersion = (uint16_t)tmp[2]; in stringToUuid() 84 uuid->clockSeq = (uint16_t)tmp[3]; in stringToUuid() 85 uuid->node[0] = (uint8_t)tmp[4]; in stringToUuid() 86 uuid->node[1] = (uint8_t)tmp[5]; in stringToUuid() 87 uuid->node[2] = (uint8_t)tmp[6]; in stringToUuid() 88 uuid->node[3] = (uint8_t)tmp[7]; in stringToUuid() [all …]
|
/frameworks/av/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 …]
|
D | q_pulse.c | 56 Word16 mask, tmp; in quant_2p_2N1() local 76 tmp = (N << 1); in quant_2p_2N1() 77 index = vo_L_add(index, (1L << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1() 88 tmp = (N << 1); /* index += 1 << (2*N); */ in quant_2p_2N1() 89 index = vo_L_add(index, (1L << tmp)); in quant_2p_2N1() 97 tmp = (N << 1); in quant_2p_2N1() 98 index = vo_L_add(index, (1 << tmp)); /* index += 1 << (2*N); */ in quant_2p_2N1() 191 Word16 nb_pos, mask __unused, n_1, tmp; in quant_4p_4N() local 215 tmp = vo_sub((N << 2), 3); /* index = 1 << ((4*N)-3); */ in quant_4p_4N() 216 index = (1L << tmp); in quant_4p_4N() [all …]
|
/frameworks/ml/nn/tools/systrace_parser/parser/test/ |
D | large_test.sh | 18 ../../parse_systrace.py hdrnet.html > hdrnet.tmp 20 ../../parse_systrace.py cpu.html > cpu.tmp 22 ../../parse_systrace.py unittest.html > unittest.tmp 24 ../../parse_systrace.py --per-execution hdrnet.html > hdrnet-bm.tmp 25 ../../parse_systrace.py --per-execution --json omr1_incomplete.html > omr1_incomplete.tmp 26 ../../parse_systrace.py omr1.html > omr1.tmp 27 ../../parse_systrace.py old.html > old.tmp 30 diff hdrnet.txt hdrnet.tmp 32 diff cpu.txt cpu.tmp 34 diff unittest.txt unittest.tmp [all …]
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | focus_peak.rscript | 32 int tmp; 34 tmp = rsGetElementAtYuv_uchar_Y(gCurrentFrame, dx, y) - curPixel.r; 35 sum += tmp * tmp; 36 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, dx, y) - curPixel.g; 37 sum += tmp * tmp; 38 tmp = rsGetElementAtYuv_uchar_V(gCurrentFrame, dx, y) - curPixel.b; 39 sum += tmp * tmp; 43 tmp = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, dy) - curPixel.r; 44 sum += tmp * tmp; 45 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, dy) - curPixel.g; [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | DataSourceBase.h | 78 uint32_t tmp; in getUInt32() local 79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32() 83 *x = ntohl(tmp); in getUInt32() 90 uint64_t tmp; in getUInt64() local 91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64() 95 *x = ntoh64(tmp); in getUInt64() 106 uint8_t tmp; in getUInt16Var() local 107 if (readAt(offset, &tmp, 1) == 1) { in getUInt16Var() 108 *x = tmp; in getUInt16Var() 119 uint16_t tmp; in getUInt32Var() local [all …]
|
/frameworks/av/include/media/ |
D | DataSourceBase.h | 78 uint32_t tmp; in getUInt32() local 79 if (readAt(offset, &tmp, 4) != 4) { in getUInt32() 83 *x = ntohl(tmp); in getUInt32() 90 uint64_t tmp; in getUInt64() local 91 if (readAt(offset, &tmp, 8) != 8) { in getUInt64() 95 *x = ntoh64(tmp); in getUInt64() 106 uint8_t tmp; in getUInt16Var() local 107 if (readAt(offset, &tmp, 1) == 1) { in getUInt16Var() 108 *x = tmp; in getUInt16Var() 119 uint16_t tmp; in getUInt32Var() local [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | qgain475.cpp | 487 Word16 tmp; in MR475_quant_store_results() local 506 tmp = 10 - exp_gcode0; in MR475_quant_store_results() 507 L_tmp = L_shr(L_tmp, tmp, pOverflow); in MR475_quant_store_results() 522 tmp = shr_r(frac, 5, pOverflow); in MR475_quant_store_results() 524 qua_ener_MR122 = tmp + qua_ener_MR122; in MR475_quant_store_results() 702 Word16 tmp; in MR475_update_unq_pred() local 751 tmp = cod_gain_exp - exp_gcode0; in MR475_update_unq_pred() 752 tmp -= 1; in MR475_update_unq_pred() 755 exp += tmp; in MR475_update_unq_pred() 759 tmp = exp << 10; in MR475_update_unq_pred() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | CoordinateTransforms.java | 112 final Matrix tmp = new Matrix(); in transformToRotation() local 114 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation() 115 out.postConcat(tmp); in transformToRotation() 134 final Matrix tmp = new Matrix(); in transformToRotation() local 136 transformPhysicalToLogicalCoordinates(newRotation, w, h, tmp); in transformToRotation() 137 out.postConcat(tmp); in transformToRotation() 147 public static void transformRect(Matrix transform, Rect inOutRect, @Nullable RectF tmp) { in transformRect() argument 148 if (tmp == null) { in transformRect() 149 tmp = new RectF(); in transformRect() 151 tmp.set(inOutRect); in transformRect() [all …]
|