/external/webrtc/webrtc/common_audio/vad/ |
H A D | vad_gmm.c | 34 int16_t tmp16, inv_std, inv_std2, exp_value = 0; local 44 tmp16 = (inv_std >> 2); // Q10 -> Q8. 46 inv_std2 = (int16_t)((tmp16 * tmp16) >> 2); 51 tmp16 = (input << 3); // Q4 -> Q7 52 tmp16 = tmp16 - mean; // Q7 - Q7 = Q7 57 *delta = (int16_t)((inv_std2 * tmp16) >> 10); 62 tmp32 = (*delta * tmp16) >> 9; 68 // Calculate |tmp16| 77 exp_value >>= tmp16; local [all...] |
H A D | vad_filterbank.c | 93 int16_t tmp16 = 0; local 99 tmp16 = (int16_t) (tmp32 >> 16); // Q(-1) 100 *data_out++ = tmp16; 101 state32 = (*data_in << 14) - filter_coefficient * tmp16; // Q14
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
H A D | cb_update_best_index.c | 37 int16_t shOld, shNew, tmp16; local 56 tmp16 = (int16_t)WebRtcSpl_NormW32(cDotNew); 57 tmp16 = 16 - tmp16; 64 scaleTmp = -energyShiftNew-tmp16+31; 67 gainW32 = ((int16_t)WEBRTC_SPL_SHIFT_W32(cDotNew, -tmp16) * invEnergyNew) >>
|
H A D | cb_search_core.c | 39 int16_t max, sh, tmp16; local 69 tmp16 = (int16_t)(tmp32 >> 16); 70 cDotSqW16 = (int16_t)(((int32_t)(tmp16)*(tmp16))>>16); 98 tmp16 = WEBRTC_SPL_MIN(16, max-(*inverseEnergyShiftPtr)); 100 (*critPtr)=WEBRTC_SPL_SHIFT_W32((*critPtr),-tmp16);
|
/external/libvpx/libvpx/vpx_dsp/mips/ |
H A D | intrapred16_dspr2.c | 17 int32_t tmp9, tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 35 "lb %[tmp16], 15(%[left]) \n\t" 52 "replv.qb %[tmp16], %[tmp16] \n\t" 144 "sw %[tmp16], (%[dst]) \n\t" 145 "sw %[tmp16], 4(%[dst]) \n\t" 146 "sw %[tmp16], 8(%[dst]) \n\t" 147 "sw %[tmp16], 12(%[dst]) \n\t" 156 [tmp15] "=&r" (tmp15), [tmp16] "=&r" (tmp16) [all...] |
/external/webrtc/webrtc/modules/audio_processing/ns/ |
H A D | nsx_core_neon.c | 68 int16_t tmp16 = WebRtcSpl_MaxValueW16(inst->noiseEstLogQuantile + offset, local 73 tmp16, 91 // tmp16 = (int16_t)(tmp32no2 >> 21); 94 // tmp16 -= 21;// shift 21 to get result in Q0 97 // tmp16 += (int16_t) inst->qNoise; 101 // if (tmp16 < 0) { 102 // tmp32no1 >>= -tmp16; 104 // tmp32no1 <<= tmp16; 108 // tmp16 = WebRtcSpl_SatW32ToW16(tmp32no1); 111 //inst->noiseEstQuantile[i] = tmp16; 128 tmp32no1 <<= tmp16; local 140 int16_t log2, tabind, logval, tmp16, tmp16no1, tmp16no2; local [all...] |
H A D | nsx_core_c.c | 35 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac, intPart; local 205 tmp16 = indPriorFX16 - inst->priorNonSpeechProb; // Q14 206 inst->priorNonSpeechProb += (int16_t)((PRIOR_UPDATE_Q14 * tmp16) >> 14);
|
H A D | nsx_core_mips.c | 34 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac; local 240 tmp16 = indPriorFX16 - inst->priorNonSpeechProb; // Q14 241 inst->priorNonSpeechProb += (int16_t)((PRIOR_UPDATE_Q14 * tmp16) >> 14); 762 int16_t tmp16 = (int16_t)(inst->anaLen << 1) - 4; local 764 int16_t* freq_buf_s = &freq_buf[tmp16];
|
H A D | nsx_core.c | 306 int16_t tmp16 = 0; local 311 tmp16 = WebRtcSpl_MaxValueW16(inst->noiseEstLogQuantile + offset, 315 kExp2Const, tmp16, 21); 321 tmp16 = (int16_t)(tmp32no2 >> 21); 322 tmp16 -= 21;// shift 21 to get result in Q0 323 tmp16 += (int16_t) inst->qNoise; //shift to get result in Q(qNoise) 324 if (tmp16 < 0) { 325 tmp32no1 >>= -tmp16; 327 tmp32no1 <<= tmp16; local 340 int16_t log2, tabind, logval, tmp16, tmp16no local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
H A D | lpc_masking_model.c | 362 int16_t tmp16, chng1, chng2, chng3, chng4, tmp, chngQ, oldNrgQlog, pgQ, pg3; local 410 tmp16=(int16_t)WEBRTC_SPL_MUL_16_16_RSFT_WITH_ROUND(kExp2,pg3,13);/* Q13*Q10>>13 => Q10*/ 411 if (tmp16<0) { 412 tmp16_2 = (0x0400 | (tmp16 & 0x03FF)); 413 tmp16_1 = ((uint16_t)(tmp16 ^ 0xFFFF) >> 10) - 3; /* Gives result in Q14 */ 424 tmp16=(int16_t)WEBRTC_SPL_MUL_16_16_RSFT_WITH_ROUND(kExp2,divVal,13);/* Q13*Q10>>13 => Q10*/ 425 if (tmp16<0) { 426 tmp16_2 = (0x0400 | (tmp16 & 0x03FF)); 427 tmp16_1 = ((uint16_t)(tmp16 ^ 0xFFFF) >> 10) - 3; /* Gives result in Q14 */ 545 int16_t tmp16,tmp16 local [all...] |
H A D | pitch_estimator.c | 56 int16_t t16, tmp16, tmp16_1; local 86 tmp16 = tmp16_1-t16; 87 *fy = WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[0]); /* (Q14 * Q8 >>15)/2 = Q8 */ 90 tmp16 = 16384-tmp16_1; /* 1 in Q14 - Q14 */ 91 *fy += WEBRTC_SPL_MUL_16_32_RSFT14(tmp16, fx[1]);/* Q14 * Q8 >> 14 = Q8 */ 94 tmp16 = tmp16_1+t16; 95 *fy += WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[2]);/* (Q14 * Q8 >>15)/2 = Q8 */
|
H A D | decode_plc.c | 270 int16_t nLP, pLP, wNoisyLP, wPriodicLP, tmp16; local 382 tmp16 = (int16_t)((logVarIn<<1) - (4<<10) ); 384 if( tmp16 > 4096 ) 386 tmp16 -= 4096; 387 tmp16 = exp2_Q10_T( tmp16 ); 388 tmp16 >>= 6; 391 tmp16 = exp2_Q10_T( tmp16 )>>10; 393 (ISACdec_obj->plcstr_obj).std = tmp16 [all...] |
/external/libpng/contrib/pngminus/ |
H A D | pnm2png.c | 220 png_uint_32 tmp16; local 404 tmp16 = get_value (pnm_file, bit_depth); 405 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); 407 *pix_ptr = (png_byte) (tmp16 & 0xFF); 421 tmp16 = get_value (alpha_file, bit_depth); 422 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); 423 *pix_ptr++ = (png_byte) (tmp16 & 0xFF);
|
/external/webrtc/webrtc/modules/audio_processing/agc/legacy/ |
H A D | digital_agc.c | 81 int16_t i, tmp16, tmp16no1; local 141 tmp16 = (int16_t)((kCompRatio - 1) * (i - 1)); // Q0 142 tmp32 = WEBRTC_SPL_MUL_16_U16(tmp16, kLog10_2) + 1; // Q14 237 tmp16 = (2 << 14) - constLinApprox; 239 tmp32no2 *= tmp16; 244 tmp16 = constLinApprox - (1 << 14); 245 tmp32no2 = (fracPart * tmp16) >> 13; 640 int16_t k, subfr, tmp16; local 747 tmp16 = 3 << 12; 753 tmp32 = tmp16 * (int16_ [all...] |
H A D | analog_agc.c | 122 int16_t n, L, tmp16, tmp_speech[16]; local 146 tmp16 = (int16_t)(stt->micVol - stt->maxAnalog); 147 tmp32 = (GAIN_TBL_LEN - 1) * tmp16; 148 tmp16 = (int16_t)(stt->maxLevel - stt->maxAnalog); 149 targetGainIdx = tmp32 / tmp16; 427 int16_t tmp16; local 440 tmp16 = (DIFF_REF_TO_ANALOG * stt->compressionGaindB) + ANALOG_TARGET_LEVEL_2; 441 tmp16 = WebRtcSpl_DivW32W16ResW16((int32_t)tmp16, ANALOG_TARGET_LEVEL); 442 stt->analogTarget = DIGITAL_REF_AT_0_COMP_GAIN + tmp16; [all...] |
/external/webrtc/webrtc/modules/audio_processing/aecm/ |
H A D | aecm_core.c | 401 int16_t tmp16 = PART_LEN1; local 475 tmp16--; 476 tmp32 -= (int32_t)((tmp16 << 1) + 1); 727 int16_t tmp16; local 778 tmp16 = 2560 - aecm->farEnergyMin; 779 if (tmp16 > 0) 781 tmp16 = (int16_t)((tmp16 * FAR_ENERGY_VAD_REGION) >> 9); 784 tmp16 = 0; 786 tmp16 850 int16_t tmp16; local [all...] |
H A D | aecm_core_mips.c | 1257 int16_t tmp16, tmp161, tmp162, tmp163, nrsh1, nrsh2; local 1450 "lh %[tmp16], 0(%[lambdap]) \n\t" 1454 "subu %[tmp16], %[c114], %[tmp16] \n\t" 1460 : [tmp16] "=&r" (tmp16), [tmp161] "=&r" (tmp161), [tmp1] "+r" (tmp1), 1477 "mul %[tmp32], %[tmp32], %[tmp16] \n\t" 1482 : [tmp16] "r" (tmp16), [tmp161] "r" (tmp161), [tmp32] "r" (tmp32), 1493 "sra %[tmp16], [all...] |
H A D | aecm_core_c.c | 645 int16_t tmp16; local 742 tmp16 = ONE_Q14 - lambda[i]; 743 noiseRShift16[i] = (int16_t)((tmp16 * noiseRShift16[i]) >> 14); 755 tmp16 = (int16_t)((359 * randW16[i - 1]) >> 15); 758 uReal[i] = (int16_t)((noiseRShift16[i] * WebRtcAecm_kCosTable[tmp16]) >> 760 uImag[i] = (int16_t)((-noiseRShift16[i] * WebRtcAecm_kSinTable[tmp16]) >>
|
/external/opencv3/3rdparty/libjpeg/ |
H A D | jfdctint.c | 1789 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 1821 tmp16 = tmp2 - tmp4; 1845 + MULTIPLY(tmp16, FIX(0.613604268)), /* c10 */ 1849 - MULTIPLY(tmp16, FIX(1.378756276)), /* c2 */ 1913 tmp16 = tmp2 - tmp4; 1938 + MULTIPLY(tmp16, FIX(0.400721155)), /* c10 */ 1942 - MULTIPLY(tmp16, FIX(0.900412262)), /* c2 */ 1989 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 2024 tmp16 = GETJSAMPLE(elemptr[6]) - GETJSAMPLE(elemptr[8]); 2050 tmp2 = MULTIPLY(tmp10 - tmp12 - tmp13 + tmp15 + tmp16, 2168 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16, tmp17; local 2376 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16, tmp17; local 2557 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 3344 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16, tmp17; local 3532 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local [all...] |
H A D | jidctint.c | 2097 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 2163 tmp16 = tmp14 - MULTIPLY(z1, FIX(1.061150426)); /* c9+c11-c13 */ 2166 tmp16 += tmp15; 2191 wsptr[8*6] = (int) RIGHT_SHIFT(tmp26 + tmp16, CONST_BITS-PASS1_BITS); 2192 wsptr[8*7] = (int) RIGHT_SHIFT(tmp26 - tmp16, CONST_BITS-PASS1_BITS); 2247 tmp16 = tmp14 - MULTIPLY(z1, FIX(1.061150426)); /* c9+c11-c13 */ 2250 tmp16 += tmp15; 2298 outptr[6] = range_limit[(int) RIGHT_SHIFT(tmp26 + tmp16, 2301 outptr[7] = range_limit[(int) RIGHT_SHIFT(tmp26 - tmp16, 2323 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 3097 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 4242 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local [all...] |
/external/libjpeg-turbo/ |
H A D | jidctint.c | 1909 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 1975 tmp16 = tmp14 - MULTIPLY(z1, FIX(1.061150426)); /* c9+c11-c13 */ 1978 tmp16 += tmp15; 2003 wsptr[8*6] = (int) RIGHT_SHIFT(tmp26 + tmp16, CONST_BITS-PASS1_BITS); 2004 wsptr[8*7] = (int) RIGHT_SHIFT(tmp26 - tmp16, CONST_BITS-PASS1_BITS); 2059 tmp16 = tmp14 - MULTIPLY(z1, FIX(1.061150426)); /* c9+c11-c13 */ 2062 tmp16 += tmp15; 2110 outptr[6] = range_limit[(int) RIGHT_SHIFT(tmp26 + tmp16, 2113 outptr[7] = range_limit[(int) RIGHT_SHIFT(tmp26 - tmp16, 2135 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local [all...] |