/external/webrtc/src/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) WEBRTC_SPL_MUL_16_16_RSFT(tmp16, tmp16, 2); 51 tmp16 = (input << 3); // Q4 -> Q7 52 tmp16 = tmp16 - mean; // Q7 - Q7 = Q7 57 *delta = (int16_t) WEBRTC_SPL_MUL_16_16_RSFT(inv_std2, tmp16, 10); 62 tmp32 = WEBRTC_SPL_MUL_16_16_RSFT(*delta, tmp16, 9); 68 // Calculate |tmp16| = log2(exp(1)) * |tmp32|, in Q10 77 exp_value >>= tmp16; local [all...] |
vad_core.c | 338 WebRtc_Word16 tmp16, tmp16_1, tmp16_2; local 538 tmp16 = WEBRTC_SPL_LSHIFT_W16(k+5, 7); 539 if (nmk3 < tmp16) 540 nmk3 = tmp16; 541 tmp16 = WEBRTC_SPL_LSHIFT_W16(72+k-n, 7); 542 if (nmk3 > tmp16) 543 nmk3 = tmp16; 555 tmp16 = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16_RSFT(delt, 558 smk2 = smk + (tmp16 >> 1); // Q7 + (Q14 * Q15 >> 22) 570 tmp16 = WEBRTC_SPL_RSHIFT_W16((smk + 4), 3) [all...] |
vad_filterbank.c | 85 int16_t tmp16 = 0; local 91 tmp16 = (int16_t) WEBRTC_SPL_RSHIFT_W32(tmp32, 16); 92 *out_vector++ = tmp16; 94 state32 = in32 - WEBRTC_SPL_MUL_16_16(filter_coefficients, tmp16);
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
oper_32b.c | 216 Word16 tmp16; local 219 tmp16 = round16(tmp); 220 tmp = L_mult(tmp16, tmp16); 221 tmp16 = round16(tmp); 222 tmp = L_mult(tmp16, tmp16); 223 tmp16 = round16(tmp); 225 iLog4 = (-(iLog4 << 2) - norm_s(tmp16)) - 1;
|
/external/webrtc/src/modules/audio_processing/ns/ |
nsx_core_neon.c | 27 int16_t tmp16 = WebRtcSpl_MaxValueW16(inst->noiseEstLogQuantile + offset, local 32 tmp16, 51 // tmp16 = (int16_t) WEBRTC_SPL_RSHIFT_W32(tmp32no2, 21); 54 // tmp16 -= 21;// shift 21 to get result in Q0 57 // tmp16 += (int16_t) inst->qNoise; 61 // if (tmp16 < 0) { 62 // tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); 64 // tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); 68 // tmp16 = WebRtcSpl_SatW32ToW16(tmp32no1); 71 //inst->noiseEstQuantile[i] = tmp16; 101 int16_t log2, tabind, logval, tmp16, tmp16no1, tmp16no2; local [all...] |
nsx_core.c | 442 WebRtc_Word16 tmp16 = 0; local 447 tmp16 = WebRtcSpl_MaxValueW16(inst->noiseEstLogQuantile + offset, 451 kExp2Const, tmp16, 21); 458 tmp16 = (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W32(tmp32no2, 21); 459 tmp16 -= 21;// shift 21 to get result in Q0 460 tmp16 += (WebRtc_Word16) inst->qNoise; //shift to get result in Q(qNoise) 461 if (tmp16 < 0) { 462 tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); 464 tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); 477 WebRtc_Word16 log2, tabind, logval, tmp16, tmp16no1, tmp16no2 local 596 int16_t tmp16 = 0; local 1301 WebRtc_Word16 tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac, intPart; local [all...] |
/external/libpng/contrib/pngminus/ |
pnm2png.c | 209 png_uint_32 tmp16; local 354 tmp16 = get_value (pnm_file, bit_depth); 355 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); 357 *pix_ptr = (png_byte) (tmp16 & 0xFF); 371 tmp16 = get_value (alpha_file, bit_depth); 372 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); 373 *pix_ptr++ = (png_byte) (tmp16 & 0xFF);
|
/external/webrtc/src/modules/audio_processing/aecm/ |
aecm_core.c | 566 WebRtc_Word16 tmp16 = PART_LEN1; local 637 tmp16--; 638 tmp32 -= (WebRtc_Word32)((tmp16 << 1) + 1); 868 WebRtc_Word16 tmp16; local 1036 WebRtc_Word16 tmp16; local 1923 WebRtc_Word16 tmp16; local [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
lpc_masking_model.c | 374 WebRtc_Word16 tmp16, chng1, chng2, chng3, chng4, tmp, chngQ, oldNrgQlog, pgQ, pg3; local 422 tmp16=(WebRtc_Word16)WEBRTC_SPL_MUL_16_16_RSFT_WITH_ROUND(kExp2,pg3,13);/* Q13*Q10>>13 => Q10*/ 423 if (tmp16<0) { 424 tmp16_2 = (0x0400 | (tmp16 & 0x03FF)); 425 tmp16_1 = (WEBRTC_SPL_RSHIFT_W16((WebRtc_UWord16)(tmp16 ^ 0xFFFF), 10)-3); /* Gives result in Q14 */ 436 tmp16=(WebRtc_Word16)WEBRTC_SPL_MUL_16_16_RSFT_WITH_ROUND(kExp2,divVal,13);/* Q13*Q10>>13 => Q10*/ 437 if (tmp16<0) { 438 tmp16_2 = (0x0400 | (tmp16 & 0x03FF)); 439 tmp16_1 = (WEBRTC_SPL_RSHIFT_W16((WebRtc_UWord16)(tmp16 ^ 0xFFFF), 10)-3); /* Gives result in Q14 */ 557 WebRtc_Word16 tmp16,tmp16b local [all...] |
pitch_estimator.c | 72 WebRtc_Word16 t16, tmp16, tmp16_1; local 101 tmp16 = tmp16_1-t16; 102 *fy = WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[0]); /* (Q14 * Q8 >>15)/2 = Q8 */ 105 tmp16 = 16384-tmp16_1; /* 1 in Q14 - Q14 */ 106 *fy += WEBRTC_SPL_MUL_16_32_RSFT14(tmp16, fx[1]);/* Q14 * Q8 >> 14 = Q8 */ 109 tmp16 = tmp16_1+t16; 110 *fy += WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[2]);/* (Q14 * Q8 >>15)/2 = Q8 */
|
decode_plc.c | 273 WebRtc_Word16 nLP, pLP, wNoisyLP, wPriodicLP, tmp16, minIdx; local 385 tmp16 = (WebRtc_Word16)((logVarIn<<1) - (4<<10) ); 387 if( tmp16 > 4096 ) 389 tmp16 -= 4096; 390 tmp16 = exp2_Q10_T( tmp16 ); 391 tmp16 >>= 6; 394 tmp16 = exp2_Q10_T( tmp16 )>>10; 396 (ISACdec_obj->plcstr_obj).std = tmp16 - 4 [all...] |
/external/webrtc/src/modules/audio_processing/agc/ |
digital_agc.c | 81 WebRtc_Word16 i, tmp16, tmp16no1; local 142 tmp16 = (WebRtc_Word16)WEBRTC_SPL_MUL_16_16(kCompRatio - 1, i - 1); // Q0 143 tmp32 = WEBRTC_SPL_MUL_16_U16(tmp16, kLog10_2) + 1; // Q14 238 tmp16 = WEBRTC_SPL_LSHIFT_W16(2, 14) - constLinApprox; 240 tmp32no2 = WEBRTC_SPL_MUL_32_16(tmp32no2, tmp16); 245 tmp16 = constLinApprox - WEBRTC_SPL_LSHIFT_W16(1, 14); 246 tmp32no2 = WEBRTC_SPL_MUL_32_16(fracPart, tmp16); 670 WebRtc_Word16 k, subfr, tmp16; local 778 tmp16 = WEBRTC_SPL_LSHIFT_W16(3, 12); 779 tmp32 = WEBRTC_SPL_MUL_16_16(tmp16, (dB - state->meanLongTerm)) [all...] |
analog_agc.c | 119 WebRtc_Word16 i, n, L, M, subFrames, tmp16, tmp_speech[16]; local 208 tmp16 = (WebRtc_Word16)(stt->micVol - stt->maxAnalog); 209 tmp32 = WEBRTC_SPL_MUL_16_16(GAIN_TBL_LEN - 1, tmp16); 210 tmp16 = (WebRtc_Word16)(stt->maxLevel - stt->maxAnalog); 211 targetGainIdx = (WebRtc_UWord16)WEBRTC_SPL_DIV(tmp32, tmp16); 541 WebRtc_Word16 tmp16; local 554 tmp16 = (DIFF_REF_TO_ANALOG * stt->compressionGaindB) + ANALOG_TARGET_LEVEL_2; 555 tmp16 = WebRtcSpl_DivW32W16ResW16((WebRtc_Word32)tmp16, ANALOG_TARGET_LEVEL); 556 stt->analogTarget = DIGITAL_REF_AT_0_COMP_GAIN + tmp16; [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_menu_manager_unittest.cc | 480 string16 tmp16; local 481 ASSERT_TRUE(info->GetString("selectionText", &tmp16)); 482 ASSERT_EQ(params.selection_text, tmp16);
|