/external/webrtc/webrtc/common_audio/vad/ |
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| = log2(exp(1)) * |tmp32|, in Q10 77 exp_value >>= tmp16; local [all...] |
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/ |
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) >>
|
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/ |
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...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/mips/dspr2/ |
vp9_intrapred16_dspr2.c | 20 int32_t tmp9, tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 38 "lb %[tmp16], 15(%[left]) \n\t" 55 "replv.qb %[tmp16], %[tmp16] \n\t" 147 "sw %[tmp16], (%[dst]) \n\t" 148 "sw %[tmp16], 4(%[dst]) \n\t" 149 "sw %[tmp16], 8(%[dst]) \n\t" 150 "sw %[tmp16], 12(%[dst]) \n\t" 159 [tmp15] "=&r" (tmp15), [tmp16] "=&r" (tmp16) [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
oper_32b.c | 218 Word16 tmp16; local 221 tmp16 = round16(tmp); 222 tmp = L_mult(tmp16, tmp16); 223 tmp16 = round16(tmp); 224 tmp = L_mult(tmp16, tmp16); 225 tmp16 = round16(tmp); 227 iLog4 = (-(iLog4 << 2) - norm_s(tmp16)) - 1;
|
/external/webrtc/webrtc/modules/audio_processing/ns/ |
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...] |
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);
|
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 [all...] |
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, tmp16no1, tmp16no2 local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
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,tmp16b local [all...] |
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 */
|
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 - 4 [all...] |
/external/libpng/contrib/pngminus/ |
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/ |
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_t)(dB - state->meanLongTerm) [all...] |
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/ |
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 += FAR_ENERGY_VAD_REGION 850 int16_t tmp16; local [all...] |
aecm_core_mips.c | 1257 int16_t tmp16, tmp161, tmp162, tmp163, nrsh1, nrsh2; local [all...] |
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/ |
jfdctint.c | 1789 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 1989 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 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...] |
jidctint.c | 2097 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 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/ |
jidctint.c | 1909 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local 2135 INT32 tmp10, tmp11, tmp12, tmp13, tmp14, tmp15, tmp16; local [all...] |