Home
last modified time | relevance | path

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

1234567891011

/frameworks/native/services/surfaceflinger/
DSurfaceFlingerProperties.cpp38 auto temp = SurfaceFlingerProperties::vsync_event_phase_offset_ns(); in vsync_event_phase_offset_ns() local
39 if (temp.has_value()) { in vsync_event_phase_offset_ns()
40 return *temp; in vsync_event_phase_offset_ns()
47 auto temp = SurfaceFlingerProperties::vsync_sf_event_phase_offset_ns(); in vsync_sf_event_phase_offset_ns() local
48 if (temp.has_value()) { in vsync_sf_event_phase_offset_ns()
49 return *temp; in vsync_sf_event_phase_offset_ns()
56 auto temp = SurfaceFlingerProperties::use_context_priority(); in use_context_priority() local
57 if (temp.has_value()) { in use_context_priority()
58 return *temp; in use_context_priority()
65 auto temp = SurfaceFlingerProperties::max_frame_buffer_acquired_buffers(); in max_frame_buffer_acquired_buffers() local
[all …]
/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/libeffects/lvm/lib/Common/src/
DMSTo2i_Sat_16x16.cpp33 LVM_INT32 temp,mVal,sVal; in MSTo2i_Sat_16x16() local
44 temp = mVal + sVal; in MSTo2i_Sat_16x16()
46 if (temp > 0x00007FFF) in MSTo2i_Sat_16x16()
50 else if (temp < -0x00008000) in MSTo2i_Sat_16x16()
56 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16()
60 temp = mVal - sVal; in MSTo2i_Sat_16x16()
62 if (temp > 0x00007FFF) in MSTo2i_Sat_16x16()
66 else if (temp < -0x00008000) in MSTo2i_Sat_16x16()
72 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16()
84 LVM_FLOAT temp,mVal,sVal; in MSTo2i_Sat_Float() local
[all …]
DShift_Sat_v32xv32.cpp32 LVM_FLOAT temp; in Shift_Sat_Float() local
40 temp = (LVM_FLOAT)*src; in Shift_Sat_Float()
44 temp = temp * 2; in Shift_Sat_Float()
47 if(temp > 1.0) in Shift_Sat_Float()
48 temp = 1.0; in Shift_Sat_Float()
49 if(temp < -1.0) in Shift_Sat_Float()
50 temp = -1.0; in Shift_Sat_Float()
52 *dst = (LVM_FLOAT)temp; in Shift_Sat_Float()
62 temp = (LVM_FLOAT)*src; in Shift_Sat_Float()
66 temp = temp / 2; in Shift_Sat_Float()
[all …]
DBQ_2I_D16F16Css_TRC_WRA_01_Init.cpp44 LVM_FLOAT temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init() local
48 temp = pCoef->A2; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
49 pBiquadState->coefs[0] = temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
50 temp = pCoef->A1; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
51 pBiquadState->coefs[1] = temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
52 temp = pCoef->A0; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
53 pBiquadState->coefs[2] = temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
54 temp = pCoef->B2; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
55 pBiquadState->coefs[3] = temp; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
56 temp = pCoef->B1; in BQ_2I_D16F16Css_TRC_WRA_01_Init()
[all …]
DBQ_2I_D16F32Css_TRC_WRA_01_init.cpp43 LVM_FLOAT temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init() local
46 temp = pCoef->A2; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
47 pBiquadState->coefs[0] = temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
48 temp = pCoef->A1; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
49 pBiquadState->coefs[1] = temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
50 temp = pCoef->A0; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
51 pBiquadState->coefs[2] = temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
52 temp = pCoef->B2; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
53 pBiquadState->coefs[3] = temp; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
54 temp = pCoef->B1; in BQ_2I_D16F32Css_TRC_WRA_01_Init()
[all …]
DBQ_1I_D16F16Css_TRC_WRA_01_Init.cpp44 LVM_FLOAT temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init() local
47 temp = pCoef->A2; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
48 pBiquadState->coefs[0] = temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
49 temp = pCoef->A1; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
50 pBiquadState->coefs[1] = temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
51 temp = pCoef->A0; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
52 pBiquadState->coefs[2] = temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
53 temp = pCoef->B2; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
54 pBiquadState->coefs[3] = temp; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
55 temp = pCoef->B1; in BQ_1I_D16F16Css_TRC_WRA_01_Init()
[all …]
DBQ_2I_D32F32Cll_TRC_WRA_01_Init.cpp44 LVM_FLOAT temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init() local
47 temp = pCoef->A2; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
48 pBiquadState->coefs[0] = temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
49 temp = pCoef->A1; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
50 pBiquadState->coefs[1] = temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
51 temp = pCoef->A0; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
52 pBiquadState->coefs[2] = temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
53 temp = pCoef->B2; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
54 pBiquadState->coefs[3] = temp; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
55 temp = pCoef->B1; in BQ_2I_D32F32Cll_TRC_WRA_01_Init()
[all …]
DBQ_1I_D16F32Css_TRC_WRA_01_init.cpp44 LVM_FLOAT temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init() local
48 temp = pCoef->A2; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
49 pBiquadState->coefs[0] = temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
50 temp = pCoef->A1; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
51 pBiquadState->coefs[1] = temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
52 temp = pCoef->A0; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
53 pBiquadState->coefs[2] = temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
54 temp = pCoef->B2; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
55 pBiquadState->coefs[3] = temp; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
56 temp = pCoef->B1; in BQ_1I_D16F32Css_TRC_WRA_01_Init()
[all …]
DDelayMix_16x16.cpp37 LVM_INT16 temp; in DelayMix_16x16() local
42 temp = (LVM_INT16)((LVM_UINT32)((LVM_INT32)(*dst) + (LVM_INT32)delay[Offset]) >> 1); in DelayMix_16x16()
43 *dst = temp; in DelayMix_16x16()
51 temp = (LVM_INT16)((LVM_UINT32)((LVM_INT32)(*dst) - (LVM_INT32)delay[Offset]) >> 1); in DelayMix_16x16()
52 *dst = temp; in DelayMix_16x16()
80 LVM_FLOAT temp; in DelayMix_Float() local
85 temp = (LVM_FLOAT)((LVM_FLOAT)(*dst + (LVM_FLOAT)delay[Offset]) / 2.0f); in DelayMix_Float()
86 *dst = temp; in DelayMix_Float()
94 temp = (LVM_FLOAT)((LVM_FLOAT)(*dst - (LVM_FLOAT)delay[Offset]) / 2.0f); in DelayMix_Float()
95 *dst = temp; in DelayMix_Float()
/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.cpp270 Word16 temp; in Syn_filt() local
306 temp = (Word16)(s1 >> 12); in Syn_filt()
310 temp = MAX_16; in Syn_filt()
314 temp = MIN_16; in Syn_filt()
317 s2 = amrnb_fxp_msu_16_by_16bb((Word32)a[1], (Word32)temp, s2); in Syn_filt()
319 *(yy++) = temp; in Syn_filt()
320 *(p_y++) = temp; in Syn_filt()
327 temp = (Word16)(s2 >> 12); in Syn_filt()
331 temp = MAX_16; in Syn_filt()
335 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 …]
/frameworks/av/media/libeffects/testlibs/
DEffectReverb.c762 int32_t temp; in Reverb_getParameter() local
825 temp = (pReverb->m_nRoomLpfFwd << 15) in Reverb_getParameter()
827 *pValue16 = Effects_Linear16ToMillibels(temp); in Reverb_getParameter()
829 …M_ROOM_LEVEL %d, gain %d, m_nRoomLpfFwd %d, m_nRoomLpfFbk %d", *pValue16, temp, pReverb->m_nRoomLp… in Reverb_getParameter()
843 temp = MULT_EG1_EG1(pReverb->m_nRoomLpfFbk, pReverb->m_nRoomLpfFbk); in Reverb_getParameter()
844 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 %d", temp); in Reverb_getParameter()
848 temp = 32767 + temp - temp2; in Reverb_getParameter()
849 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, a1^2 + 2 Cos a1 + 1 %d", temp); in Reverb_getParameter()
850 temp = Effects_Sqrt(temp) * 181; in Reverb_getParameter()
851 ALOGV("get REVERB_PARAM_ROOM_HF_LEVEL, SQRT(a1^2 + 2 Cos a1 + 1) %d", temp); in Reverb_getParameter()
[all …]
/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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DAverageFilter.java35 private float[] temp = new float[NUM_FRAMES]; field in AverageFilter
58 temp[counter] = ((Float)inFrameValue.getValue()).floatValue(); in onProcess()
63 float output = (temp[0] + temp[1] + temp[2] + temp[3] + temp[4]) / NUM_FRAMES; in onProcess()
64 if (mLogVerbose) Log.v(TAG, "Avg= " + output + "temp1= " + temp[0] + "temp2= " + in onProcess()
65 temp[1] + "temp3= " + temp[2] + "temp4=" + temp[3] + "temp5=" + temp[4]); in onProcess()
/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/libaaudio/src/fifo/
DFifoControllerBase.cpp36 fifo_frames_t temp = 0; in getFullFramesAvailable() local
37 __builtin_sub_overflow(getWriteCounter(), getReadCounter(), &temp); in getFullFramesAvailable()
38 return temp; in getFullFramesAvailable()
47 fifo_counter_t temp = 0; in advanceReadIndex() local
48 __builtin_add_overflow(getReadCounter(), numFrames, &temp); in advanceReadIndex()
49 setReadCounter(temp); in advanceReadIndex()
62 fifo_counter_t temp = 0; in advanceWriteIndex() local
63 __builtin_add_overflow(getWriteCounter(), numFrames, &temp); in advanceWriteIndex()
64 setWriteCounter(temp); in advanceWriteIndex()

1234567891011