Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/media/module/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.cpp458 int32 x0, x1, x2, x4, x5, temp; in idctrow2_intra() local
484 temp = ((x0 + x2) >> 14); in idctrow2_intra()
485 CLIP_RESULT(temp) in idctrow2_intra()
486 word = word | (temp << 8); in idctrow2_intra()
487 temp = ((x0 + x1) >> 14); in idctrow2_intra()
488 CLIP_RESULT(temp) in idctrow2_intra()
489 word = word | (temp << 16); in idctrow2_intra()
490 temp = ((x0 + x5) >> 14); in idctrow2_intra()
491 CLIP_RESULT(temp) in idctrow2_intra()
492 word = word | (temp << 24); in idctrow2_intra()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerProperties.cpp40 auto temp = SurfaceFlingerProperties::vsync_event_phase_offset_ns(); in vsync_event_phase_offset_ns() local
41 if (temp.has_value()) { in vsync_event_phase_offset_ns()
42 return *temp; in vsync_event_phase_offset_ns()
49 auto temp = SurfaceFlingerProperties::vsync_sf_event_phase_offset_ns(); in vsync_sf_event_phase_offset_ns() local
50 if (temp.has_value()) { in vsync_sf_event_phase_offset_ns()
51 return *temp; in vsync_sf_event_phase_offset_ns()
58 auto temp = SurfaceFlingerProperties::use_context_priority(); in use_context_priority() local
59 if (temp.has_value()) { in use_context_priority()
60 return *temp; in use_context_priority()
67 auto temp = SurfaceFlingerProperties::max_frame_buffer_acquired_buffers(); in max_frame_buffer_acquired_buffers() local
[all …]
/frameworks/av/media/module/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/module/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 …]
Db_cn_cod.cpp210 Word16 temp; in pseudonoise() local
238 temp = (Word16)((*pShift_reg) & 1); in pseudonoise()
239 noise_bits |= temp; in pseudonoise()
364 Word16 temp; in build_CN_code() local
375 temp = (Word16)(L_mult(i, 10, pOverflow)); in build_CN_code()
376 i = temp >> 1; in build_CN_code()
501 Word16 temp; in build_CN_param() local
512 temp = ~(0xFFFF << param_size_table[i]); in build_CN_param()
513 parm[i] = *pTemp++ & temp; in build_CN_param()
/frameworks/av/media/module/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 …]
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/lvm/lib/Common/src/
DShift_Sat_v32xv32.cpp28 LVM_FLOAT temp; in Shift_Sat_Float() local
34 temp = (LVM_FLOAT)*src; in Shift_Sat_Float()
37 temp = temp * 2; in Shift_Sat_Float()
40 if (temp > 1.0) temp = 1.0; in Shift_Sat_Float()
41 if (temp < -1.0) temp = -1.0; in Shift_Sat_Float()
43 *dst = (LVM_FLOAT)temp; in Shift_Sat_Float()
50 temp = (LVM_FLOAT)*src; in Shift_Sat_Float()
53 temp = temp / 2; in Shift_Sat_Float()
55 *dst = (LVM_FLOAT)temp; in Shift_Sat_Float()
/frameworks/av/media/module/codecs/amrwb/dec/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/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/module/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/libs/hwui/jni/
DScopedParcel.cpp23 int32_t temp = 0; in readInt32() local
26 if (AParcel_readInt32(mParcel, &temp) != STATUS_OK) { in readInt32()
27 temp = 0; in readInt32()
29 return temp; in readInt32()
33 uint32_t temp = 0; in readUint32() local
36 if (AParcel_readUint32(mParcel, &temp) != STATUS_OK) { in readUint32()
37 temp = 0; in readUint32()
39 return temp; in readUint32()
43 float temp = 0.; in readFloat() local
44 if (AParcel_readFloat(mParcel, &temp) != STATUS_OK) { in readFloat()
[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/module/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 …]
Dpitch_fr.cpp337 Word16 temp; in Norm_Corr() local
354 temp = *(p_excf++); in Norm_Corr()
355 *(p_s_excf++) = temp >> 2; in Norm_Corr()
356 s += (Word32) temp * temp; in Norm_Corr()
357 temp = *(p_excf++); in Norm_Corr()
358 *(p_s_excf++) = temp >> 2; in Norm_Corr()
359 s += (Word32) temp * temp; in Norm_Corr()
415 temp = exc[k]; in Norm_Corr()
422 s = ((Word32) temp * *(p_h--)) >> h_fac; in Norm_Corr()
424 s = ((Word32) temp * *(p_h--)) >> h_fac; in Norm_Corr()
[all …]
/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerBase.cpp34 fifo_frames_t temp = 0; in getFullFramesAvailable() local
35 __builtin_sub_overflow(getWriteCounter(), getReadCounter(), &temp); in getFullFramesAvailable()
36 return temp; in getFullFramesAvailable()
45 fifo_counter_t temp = 0; in advanceReadIndex() local
46 __builtin_add_overflow(getReadCounter(), numFrames, &temp); in advanceReadIndex()
47 setReadCounter(temp); in advanceReadIndex()
60 fifo_counter_t temp = 0; in advanceWriteIndex() local
61 __builtin_add_overflow(getWriteCounter(), numFrames, &temp); in advanceWriteIndex()
62 setWriteCounter(temp); in advanceWriteIndex()
/frameworks/av/media/module/codecs/amrwb/enc/src/
Dbits.c42 UWord8 temp; in PackBits() local
142 temp = 0; in PackBits()
148 temp++; in PackBits()
152 temp <<= 1; in PackBits()
156 *stream_ptr = temp; in PackBits()
158 temp = 0; in PackBits()
166 temp++; in PackBits()
168 temp <<= 4; in PackBits()
169 temp += mode & 0x000F; in PackBits()
174 temp <<= (unused_size[coding_mode] - 1); in PackBits()
[all …]
Dqpisf_2s.c66 Word32 i, k, temp, min_err, distance; in Qpisf_2s_46b() local
87 temp = min_err; in Qpisf_2s_46b()
89 temp = vo_L_add(temp, min_err); in Qpisf_2s_46b()
91 temp = vo_L_add(temp, min_err); in Qpisf_2s_46b()
93 if(temp < distance) in Qpisf_2s_46b()
95 distance = temp; in Qpisf_2s_46b()
117 temp = min_err; in Qpisf_2s_46b()
119 temp = vo_L_add(temp, min_err); in Qpisf_2s_46b()
121 if(temp < distance) in Qpisf_2s_46b()
123 distance = temp; in Qpisf_2s_46b()
[all …]
/frameworks/rs/
DrsMatrix3x3.cpp51 Matrix3x3 temp; in loadMultiply() local
62 temp.set(i, 0, ri0); in loadMultiply()
63 temp.set(i, 1, ri1); in loadMultiply()
64 temp.set(i, 2, ri2); in loadMultiply()
66 load(&temp); in loadMultiply()
71 float temp; in transpose() local
74 temp = get(i, j); in transpose()
76 set(j, i, temp); in transpose()

1234567891011