/external/chromium_org/third_party/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) 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_filterbank.c | 93 int16_t tmp16 = 0; local 99 tmp16 = (int16_t) (tmp32 >> 16); // Q(-1) 100 *data_out++ = tmp16; 102 state32 -= WEBRTC_SPL_MUL_16_16(filter_coefficient, tmp16); // Q14
|
/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);
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/ |
cb_update_best_index.c | 37 int16_t shOld, shNew, tmp16; local 57 tmp16 = (int16_t)WebRtcSpl_NormW32(cDotNew); 58 tmp16 = 16 - tmp16; 65 scaleTmp = -energyShiftNew-tmp16+31; 69 ((int16_t)WEBRTC_SPL_SHIFT_W32(cDotNew, -tmp16)), invEnergyNew, scaleTmp);
|
cb_search_core.c | 39 int16_t max, sh, tmp16; local 69 tmp16 = (int16_t)WEBRTC_SPL_RSHIFT_W32(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/chromium_org/third_party/libvpx/source/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...] |
/external/libvpx/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...] |
/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...] |
/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/ |
aecm_core.c | 424 int16_t tmp16 = PART_LEN1; local 498 tmp16--; 499 tmp32 -= (int32_t)((tmp16 << 1) + 1); 744 int16_t tmp16; local 758 tmp16 = kLogLowValue; 764 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac; 765 tmp16 -= WEBRTC_SPL_LSHIFT_W16(aecm->dfaNoisyQDomain, 8); 767 aecm->nearLogEnergy[0] = tmp16; 779 tmp16 = kLogLowValue; 785 tmp16 += WEBRTC_SPL_LSHIFT_W16((31 - zeros), 8) + frac 907 int16_t tmp16; local [all...] |
aecm_core_mips.c | 1262 int16_t tmp16, tmp161, tmp162, tmp163, nrsh1, nrsh2; local [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/chromium_org/third_party/webrtc/modules/audio_processing/ns/ |
nsx_core_neon.c | 68 int16_t tmp16 = WebRtcSpl_MaxValueW16(inst->noiseEstLogQuantile + offset, local 73 tmp16, 92 // tmp16 = (int16_t) WEBRTC_SPL_RSHIFT_W32(tmp32no2, 21); 95 // tmp16 -= 21;// shift 21 to get result in Q0 98 // tmp16 += (int16_t) inst->qNoise; 102 // if (tmp16 < 0) { 103 // tmp32no1 = WEBRTC_SPL_RSHIFT_W32(tmp32no1, -tmp16); 105 // tmp32no1 = WEBRTC_SPL_LSHIFT_W32(tmp32no1, tmp16); 109 // tmp16 = WebRtcSpl_SatW32ToW16(tmp32no1); 112 //inst->noiseEstQuantile[i] = tmp16; 142 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 206 tmp16 = indPriorFX16 - inst->priorNonSpeechProb; // Q14 208 PRIOR_UPDATE_Q14, tmp16, 14); // Q14
|
nsx_core_mips.c | 34 int16_t tmp16, tmp16no1, tmp16no2, tmpIndFX, tableIndex, frac; local 240 tmp16 = indPriorFX16 - inst->priorNonSpeechProb; // Q14 242 PRIOR_UPDATE_Q14, tmp16, 14); // Q14 767 int16_t tmp16 = (inst->anaLen << 1) - 4; local [all...] |
/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...] |
/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/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/ |
lpc_masking_model.c | 374 int16_t tmp16, chng1, chng2, chng3, chng4, tmp, chngQ, oldNrgQlog, pgQ, pg3; local 422 tmp16=(int16_t)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((uint16_t)(tmp16 ^ 0xFFFF), 10)-3); /* Gives result in Q14 */ 436 tmp16=(int16_t)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((uint16_t)(tmp16 ^ 0xFFFF), 10)-3); /* Gives result in Q14 */ 557 int16_t tmp16,tmp16b local [all...] |
pitch_estimator.c | 63 int16_t t16, tmp16, tmp16_1; local 93 tmp16 = tmp16_1-t16; 94 *fy = WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[0]); /* (Q14 * Q8 >>15)/2 = Q8 */ 97 tmp16 = 16384-tmp16_1; /* 1 in Q14 - Q14 */ 98 *fy += WEBRTC_SPL_MUL_16_32_RSFT14(tmp16, fx[1]);/* Q14 * Q8 >> 14 = Q8 */ 101 tmp16 = tmp16_1+t16; 102 *fy += WEBRTC_SPL_MUL_16_32_RSFT15(tmp16, fx[2]);/* (Q14 * Q8 >>15)/2 = Q8 */
|
/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...] |
/external/chromium_org/content/browser/gamepad/ |
gamepad_platform_data_fetcher_linux.cc | 190 base::string16 tmp16 = base::UTF8ToUTF16(id); local 192 tmp16.copy(pad.id, arraysize(pad.id) - 1); 198 tmp16 = base::UTF8ToUTF16(mapping); 200 tmp16.copy(pad.mapping, arraysize(pad.mapping) - 1);
|
/external/libpng/contrib/pngminus/ |
pnm2png.c | 216 png_uint_32 tmp16; local 397 tmp16 = get_value (pnm_file, bit_depth); 398 *pix_ptr = (png_byte) ((tmp16 >> 8) & 0xFF); 400 *pix_ptr = (png_byte) (tmp16 & 0xFF); 414 tmp16 = get_value (alpha_file, bit_depth); 415 *pix_ptr++ = (png_byte) ((tmp16 >> 8) & 0xFF); 416 *pix_ptr++ = (png_byte) (tmp16 & 0xFF);
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/agc/ |
digital_agc.c | 81 int16_t i, tmp16, tmp16no1; local 142 tmp16 = (int16_t)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 *= tmp16; 245 tmp16 = constLinApprox - WEBRTC_SPL_LSHIFT_W16(1, 14); 246 tmp32no2 = fracPart * tmp16; 675 int16_t k, subfr, tmp16; local 783 tmp16 = WEBRTC_SPL_LSHIFT_W16(3, 12); 784 tmp32 = WEBRTC_SPL_MUL_16_16(tmp16, (dB - state->meanLongTerm)) [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...] |