Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 228) sorted by relevance

12345678910

/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dget_pred_outside.cpp113 #define PAD_CORNER { temp = *prev; \
114 temp |= (temp<<8); \
115 temp |= (temp<<16); \
116 *((uint32*)ptr) = temp; \
117 *((uint32*)(ptr+4)) = temp; \
118 *((uint32*)(ptr+=16)) = temp; \
119 *((uint32*)(ptr+4)) = temp; \
120 *((uint32*)(ptr+=16)) = temp; \
121 *((uint32*)(ptr+4)) = temp; \
122 *((uint32*)(ptr+=16)) = temp; \
[all …]
Dvlc_dequant.cpp77 int32 temp; in VlcDequantMpegIntraBlock() local
148 temp = (int32)datablock[k] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
149 temp = (temp + (0x7 & (temp >> 31))) >> 3; in VlcDequantMpegIntraBlock()
150 if (temp > 2047) temp = 2047; in VlcDequantMpegIntraBlock()
151 else if (temp < -2048) temp = -2048; in VlcDequantMpegIntraBlock()
152 datablock[k] = (int) temp; in VlcDequantMpegIntraBlock()
157 sum ^= temp; in VlcDequantMpegIntraBlock()
193 temp = (int32)dcac_col[j] * qmat[k] * QP; in VlcDequantMpegIntraBlock()
194 temp = (temp + (0x7 & (temp >> 31))) >> 3; /* 03/26/01*/ in VlcDequantMpegIntraBlock()
195 if (temp > 2047) temp = 2047; in VlcDequantMpegIntraBlock()
[all …]
Didct_vca.cpp450 int32 x0, x1, x2, x4, x5, temp; in idctrow2_intra() local
476 temp = ((x0 + x2) >> 14); in idctrow2_intra()
477 CLIP_RESULT(temp) in idctrow2_intra()
478 word = word | (temp << 8); in idctrow2_intra()
479 temp = ((x0 + x1) >> 14); in idctrow2_intra()
480 CLIP_RESULT(temp) in idctrow2_intra()
481 word = word | (temp << 16); in idctrow2_intra()
482 temp = ((x0 + x5) >> 14); in idctrow2_intra()
483 CLIP_RESULT(temp) in idctrow2_intra()
484 word = word | (temp << 24); in idctrow2_intra()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_decode_header.cpp121 uint32 temp; in pvmp3_decode_header() local
136 temp = getUpTo17bits(inputStream, SYNC_WORD_LNGTH); in pvmp3_decode_header()
137 if ((temp & SYNC_WORD) != SYNC_WORD) in pvmp3_decode_header()
147 temp = getNbits(inputStream, 21); // to avoid multiple bitstream accesses in pvmp3_decode_header()
150 switch (temp >> 19) /* 2 */ in pvmp3_decode_header()
167 info->layer_description = 4 - ((temp << 13) >> 30); /* 2 */ in pvmp3_decode_header()
168 info->error_protection = !((temp << 15) >> 31); /* 1 */ in pvmp3_decode_header()
173 calculate_crc((temp << 16) >> 16, 16, crc); in pvmp3_decode_header()
176 info->bitrate_index = (temp << 16) >> 28; /* 4 */ in pvmp3_decode_header()
177 info->sampling_frequency = (temp << 20) >> 30; /* 2 */ in pvmp3_decode_header()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dd_plsf_3.cpp173 Word16 temp; in D_plsf_3() local
186 temp = in D_plsf_3()
201 temp, in D_plsf_3()
212 temp = in D_plsf_3()
218 temp = in D_plsf_3()
221 temp, in D_plsf_3()
227 temp, in D_plsf_3()
238 temp = in D_plsf_3()
247 temp, in D_plsf_3()
302 temp = index + (index << 1); in D_plsf_3()
[all …]
Dd_plsf_5.cpp312 Word16 temp; in D_plsf_5() local
333 temp = in D_plsf_5()
348 temp, in D_plsf_5()
363 temp = in D_plsf_5()
369 temp = in D_plsf_5()
372 temp, in D_plsf_5()
378 temp, in D_plsf_5()
387 temp = in D_plsf_5()
393 p_dico = &dico1_lsf_5[temp]; in D_plsf_5()
400 temp = in D_plsf_5()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dq_plsf_3.cpp285 Word16 temp; in Vq_subvec4() local
318 temp = lsf_r1_0 - (*p_dico++); in Vq_subvec4()
319 temp = (Word16)((((Word32) wf1_0) * temp) >> 15); in Vq_subvec4()
320 dist = ((Word32) temp) * temp; in Vq_subvec4()
322 temp = lsf_r1_1 - (*p_dico++); in Vq_subvec4()
323 temp = (Word16)((((Word32) wf1_1) * temp) >> 15); in Vq_subvec4()
324 dist += ((Word32) temp) * temp; in Vq_subvec4()
326 temp = lsf_r1_2 - (*p_dico++); in Vq_subvec4()
327 temp = (Word16)((((Word32) wf1_2) * temp) >> 15); in Vq_subvec4()
328 dist += ((Word32) temp) * temp; in Vq_subvec4()
[all …]
Dint_lpc.cpp443 Word16 temp; in Int_lpc_1to3() local
450 temp = shr(lsp_old[i], 2, pOverflow); in Int_lpc_1to3()
451 temp = sub(lsp_old[i], temp, pOverflow); in Int_lpc_1to3()
454 lsp[i] = add(temp2, temp, pOverflow); in Int_lpc_1to3()
467 temp = shr(lsp_new[i], 1, pOverflow); in Int_lpc_1to3()
469 lsp[i] = add(temp, temp2, pOverflow); in Int_lpc_1to3()
481 temp = shr(lsp_new[i], 2, pOverflow); in Int_lpc_1to3()
482 temp = sub(lsp_new[i], temp, pOverflow); in Int_lpc_1to3()
485 lsp[i] = add(temp2, temp, pOverflow); in Int_lpc_1to3()
580 Word16 temp; in Int_lpc_1to3_2() local
[all …]
Dsyn_filt.cpp268 Word16 temp; in Syn_filt() local
304 temp = (Word16)(s1 >> 12); in Syn_filt()
308 temp = MAX_16; in Syn_filt()
312 temp = MIN_16; in Syn_filt()
315 s2 = amrnb_fxp_msu_16_by_16bb((Word32)a[1], (Word32)temp, s2); in Syn_filt()
317 *(yy++) = temp; in Syn_filt()
318 *(p_y++) = temp; in Syn_filt()
325 temp = (Word16)(s2 >> 12); in Syn_filt()
329 temp = MAX_16; in Syn_filt()
333 temp = MIN_16; in Syn_filt()
[all …]
Dq_plsf_5.cpp217 Word16 temp; in Vq_subvec() local
247 temp = (aux1 - ((Word32)wf1_0 * *(p_dico++))) >> 15; in Vq_subvec()
248 dist = ((Word32)temp * temp); in Vq_subvec()
256 temp = (aux2 - ((Word32)wf1_1 * *(p_dico++))) >> 15; in Vq_subvec()
257 dist += ((Word32)temp * temp); in Vq_subvec()
265 temp = (aux3 - ((Word32)wf2_0 * *(p_dico++))) >> 15; in Vq_subvec()
266 dist += ((Word32)temp * temp); in Vq_subvec()
274 temp = (aux4 - ((Word32)wf2_1 * *(p_dico++))) >> 15; in Vq_subvec()
275 dist += ((Word32)temp * temp); in Vq_subvec()
383 Word16 temp; in Vq_subvec_s() local
[all …]
Dlsfwt.cpp192 Word16 temp; in Lsf_wt() local
223 temp = wgt_fct - 1843; in Lsf_wt()
225 if (temp > 0) in Lsf_wt()
227 temp = (Word16)(((Word32)temp * 6242) >> 15); in Lsf_wt()
228 wgt_fct = 1843 - temp; in Lsf_wt()
232 temp = (Word16)(((Word32)wgt_fct * 28160) >> 15); in Lsf_wt()
233 wgt_fct = 3427 - temp; in Lsf_wt()
/frameworks/av/media/libeffects/testlibs/
DEffectReverb.c776 int32_t temp; in Reverb_getParameter() local
839 temp = (pReverb->m_nRoomLpfFwd << 15) in Reverb_getParameter()
841 *pValue16 = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
843 …M_ROOM_LEVEL %d, gain %d, m_nRoomLpfFwd %d, m_nRoomLpfFbk %d", *pValue16, temp, pReverb->m_nRoomLp… in Reverb_getParameter()
857 temp = MULT_EG1_EG1(pReverb->m_nRoomLpfFbk, pReverb->m_nRoomLpfFbk); in Reverb_getParameter()
858 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 %d", temp); in Reverb_getParameter()
862 temp = 32767 + temp - temp2; in Reverb_getParameter()
863 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 + 2 Cos a1 + 1 %d", temp); in Reverb_getParameter()
864 temp = Effects_Sqrt(temp) * 181; in Reverb_getParameter()
865 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, SQRT(a1^2 + 2 Cos a1 + 1) %d", temp); in Reverb_getParameter()
[all …]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DBQ_2I_D32F32Cll_TRC_WRA_01_Init.c44 LVM_INT32 temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init() local
48 temp=pCoef->A2; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
49 pBiquadState->coefs[0]=temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
50 temp=pCoef->A1; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
51 pBiquadState->coefs[1]=temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
52 temp=pCoef->A0; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
53 pBiquadState->coefs[2]=temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
54 temp=pCoef->B2; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
55 pBiquadState->coefs[3]=temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
56 temp=pCoef->B1; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
[all …]
DBQ_1I_D16F32Css_TRC_WRA_01_init.c45 LVM_INT16 temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init() local
49 temp=pCoef->A2; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
50 pBiquadState->coefs[0]=temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
51 temp=pCoef->A1; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
52 pBiquadState->coefs[1]=temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
53 temp=pCoef->A0; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
54 pBiquadState->coefs[2]=temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
55 temp=pCoef->B2; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
56 pBiquadState->coefs[3]=temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
57 temp=pCoef->B1; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
[all …]
DBQ_1I_D16F16Css_TRC_WRA_01_Init.c44 LVM_INT16 temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init() local
48 temp=pCoef->A2; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
49 pBiquadState->coefs[0]=temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
50 temp=pCoef->A1; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
51 pBiquadState->coefs[1]=temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
52 temp=pCoef->A0; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
53 pBiquadState->coefs[2]=temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
54 temp=pCoef->B2; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
55 pBiquadState->coefs[3]=temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
56 temp=pCoef->B1; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
[all …]
DBQ_2I_D16F32Css_TRC_WRA_01_init.c44 LVM_INT16 temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init() local
48 temp=pCoef->A2; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
49 pBiquadState->coefs[0]=temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
50 temp=pCoef->A1; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
51 pBiquadState->coefs[1]=temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
52 temp=pCoef->A0; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
53 pBiquadState->coefs[2]=temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
54 temp=pCoef->B2; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
55 pBiquadState->coefs[3]=temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
56 temp=pCoef->B1; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
[all …]
DBQ_2I_D16F16Css_TRC_WRA_01_Init.c45 LVM_INT16 temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init() local
49 temp=pCoef->A2; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
50 pBiquadState->coefs[0]=temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
51 temp=pCoef->A1; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
52 pBiquadState->coefs[1]=temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
53 temp=pCoef->A0; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
54 pBiquadState->coefs[2]=temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
55 temp=pCoef->B2; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
56 pBiquadState->coefs[3]=temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
57 temp=pCoef->B1; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
[all …]
DFO_2I_D16F32Css_LShx_TRC_WRA_01_Init.c44 LVM_INT16 temp; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init() local
48 temp=pCoef->A1; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
49 pBiquadState->coefs[0]=temp; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
50 temp=pCoef->A0; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
51 pBiquadState->coefs[1]=temp; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
52 temp=pCoef->B1; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
53 pBiquadState->coefs[2]=temp; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
55 temp=pCoef->Shift; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
56 pBiquadState->Shift = temp; in FO_2I_D16F32Css_LShx_TRC_WRA_01_Init()
DMSTo2i_Sat_16x16.c33 LVM_INT32 temp,mVal,sVal; in MSTo2i_Sat_16x16() local
45 temp = mVal + sVal; in MSTo2i_Sat_16x16()
47 if (temp > 0x00007FFF) in MSTo2i_Sat_16x16()
51 else if (temp < -0x00008000) in MSTo2i_Sat_16x16()
57 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16()
61 temp = mVal - sVal; in MSTo2i_Sat_16x16()
63 if (temp > 0x00007FFF) in MSTo2i_Sat_16x16()
67 else if (temp < -0x00008000) in MSTo2i_Sat_16x16()
73 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16()
DFO_1I_D32F32Cll_TRC_WRA_01_Init.c44 LVM_INT32 temp; in FO_1I_D32F32Cll_TRC_WRA_01_Init() local
48 temp=pCoef->A1; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
49 pBiquadState->coefs[0]=temp; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
50 temp=pCoef->A0; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
51 pBiquadState->coefs[1]=temp; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
52 temp=pCoef->B1; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
53 pBiquadState->coefs[2]=temp; in FO_1I_D32F32Cll_TRC_WRA_01_Init()
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dagc2_amr_wb.cpp128 int16 temp; in agc2_amr_wb() local
132 temp = sig_out[0] >> 2; in agc2_amr_wb()
133 s = fxp_mul_16by16(temp, temp) << 1; in agc2_amr_wb()
136 temp = sig_out[i] >> 2; in agc2_amr_wb()
137 s = mac_16by16_to_int32(s, temp, temp); in agc2_amr_wb()
150 temp = sig_in[0] >> 2; in agc2_amr_wb()
151 s = mul_16by16_to_int32(temp, temp); in agc2_amr_wb()
154 temp = sig_in[i] >> 2; in agc2_amr_wb()
155 s = mac_16by16_to_int32(s, temp, temp); in agc2_amr_wb()
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dmotion_comp.cpp1455 #define PAD_CORNER { temp = *src; \
1456 temp |= (temp<<8); \
1457 temp |= (temp<<16); \
1458 *((ULong*)dst) = temp; \
1459 *((ULong*)(dst+4)) = temp; \
1460 *((ULong*)(dst+=lx)) = temp; \
1461 *((ULong*)(dst+4)) = temp; \
1462 *((ULong*)(dst+=lx)) = temp; \
1463 *((ULong*)(dst+4)) = temp; \
1464 *((ULong*)(dst+=lx)) = temp; \
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dintra_est.cpp42 int temp, SBE, offset; in IntraDecisionABE() local
60 temp = *topL++ - orgY[j]; in IntraDecisionABE()
61 SBE += ((temp >= 0) ? temp : -temp); in IntraDecisionABE()
62 temp = *(leftL += picPitch) - *(orgY_2 += orgPitch); in IntraDecisionABE()
63 SBE += ((temp >= 0) ? temp : -temp); in IntraDecisionABE()
76 temp = *topL++ - orgY_2[j]; in IntraDecisionABE()
77 SBE += ((temp >= 0) ? temp : -temp); in IntraDecisionABE()
78 temp = *(leftL += (picPitch >> 1)) - *(orgY_3 += (orgPitch >> 1)); in IntraDecisionABE()
79 SBE += ((temp >= 0) ? temp : -temp); in IntraDecisionABE()
90 temp = *topL++ - orgY_2[j]; in IntraDecisionABE()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dautocorr.cpp321 Word16 temp; in Autocorr() local
343 temp = (amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_wind++), 0x04000)) >> 15; in Autocorr()
344 *(p_y++) = temp; in Autocorr()
346 sum += ((Word32)temp * temp) << 1; in Autocorr()
370temp = (amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_wind++), 0x04000)) >> 15; in Autocorr()
371 *(p_y++) = temp; in Autocorr()
396 temp = *p_y >> 2; in Autocorr()
397 *(p_y++) = temp; in Autocorr()
398 sum += ((Word32)temp * temp) << 1; in Autocorr()
399 temp = *p_y >> 2; in Autocorr()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p2/src/
DomxVCM4P2_PredictReconCoefIntra_s.s111 temp RN 11 label
156 ADD temp,dcScaler,dcScaler
157 …LDRH temp,[predCoeffTable,temp] ;// Load value from coeff table for…
159 …SMULBB tempPred,temp,absCoeffDC ;// tempPred=pPredBufRow(Col)[0]*32…
167 LDRH temp,[pPredBufCol]
174 STRH temp,[pPredBufRow,#-16]
176 LDRH temp,[pSrcDst] ;// temp=pSrcDst[0]
178 ADD temp,temp,tempPred ;// temp=pSrcDst[0]+tempPred
179 SSAT16 temp,#12,temp ;// clip temp to [-2048,2047]
181 …SMULBB temp1,temp,dcScaler ;// temp1=clipped(pSrcDst[0])*dcSca…
[all …]

12345678910