Searched refs:temp (Results 1 - 25 of 132) sorted by relevance

123456

/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dpulse_nc.cpp233 Int temp; local
273 temp = *pCoef;
275 if (temp > 0)
277 temp += *(pPulseAmp++);
278 *pCoef = (Int16)temp;
279 if (temp > *max)
281 *max = temp;
286 temp -= *(pPulseAmp++);
287 *pCoef = (Int16)temp;
288 if (-temp > *ma
[all...]
H A Dlong_term_synthesis.cpp72 Description: Use an auxiliary variable temp, to avoid using the same
592 Int32 temp; local
755 temp = *pCurrent_frame >> shift_factor;
756 *(pCurrent_frame++) = temp
758 temp = *pCurrent_frame >> shift_factor;
759 *(pCurrent_frame++) = temp
761 temp = *pCurrent_frame >> shift_factor;
762 *(pCurrent_frame++) = temp
764 temp = *pCurrent_frame >> shift_factor;
765 *(pCurrent_frame++) = temp
[all...]
H A Dget_pulse_data.cpp138 RETURNING(temp)
140 pPulseInfo->number_pulse = 1 + (temp >> LEN_PULSE_ST_SFB);
141 pPulseInfo->pulse_start_sfb = temp & ((1 << LEN_PULSE_ST_SFB) - 1);
150 RETURNING(temp)
152 *pPulseOffset++ = temp >> LEN_PULSE_PAMP;
153 *pPulseAmp++ = temp & ((1 << LEN_PULSE_PAMP) - 1);
241 UInt temp; local
250 temp =
255 pPulseInfo->number_pulse = (Int)(1 + (temp >> LEN_PULSE_ST_SFB));
256 pPulseInfo->pulse_start_sfb = (Int)(temp
[all...]
H A Dgen_rand_vector.cpp182 temp = (Int)(*(pSeed) >> 16);
184 power = power + ((temp*temp) >> 6);
186 *(pArray) = (Int32)temp;
358 Int32 temp; local
408 temp = seed >> 16;
414 power += ((temp * temp) >> 6);
415 *pArray++ = temp;
417 temp
[all...]
H A Dget_prog_config.cpp156 RETURNING( temp = returnValue )
158 pScratchPCE->front.num_ele = temp;
164 RETURNING( temp = returnValue )
166 pScratchPCE->side.num_ele = temp;
172 RETURNING( temp = returnValue )
174 pScratchPCE->back.num_ele = temp;
180 RETURNING( temp = returnValue )
182 pScratchPCE->lfe.num_ele = temp;
188 RETURNING( temp = returnValue )
190 pScratchPCE->data.num_ele = temp;
460 UInt temp; local
[all...]
/frameworks/base/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_decode_header.cpp121 uint32 temp; local
134 temp = getUpTo17bits(inputStream, SYNC_WORD_LNGTH);
135 if ((temp & SYNC_WORD) != SYNC_WORD)
145 temp = getNbits(inputStream, 21); // to avoid multiple bitstream accesses
148 switch (temp >> 19) /* 2 */
165 info->layer_description = 4 - ((temp << 13) >> 30); /* 2 */
166 info->error_protection = !((temp << 15) >> 31); /* 1 */
171 calculate_crc((temp << 16) >> 16, 16, crc);
174 info->bitrate_index = (temp << 16) >> 28; /* 4 */
175 info->sampling_frequency = (temp << 2
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
H A Dl_extract.cpp164 Word32 temp; local
168 temp = (L_var >> 16);
170 *(pL_var_hi) = (Word16) temp;
171 *(pL_var_lo) = (Word16)((L_var >> 1) - (temp << 15));
H A Dautocorr.cpp321 Word16 temp; local
343 temp = (amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_wind++), 0x04000)) >> 15;
344 *(p_y++) = temp;
346 sum += ((Word32)temp * temp) << 1;
370 temp = (amrnb_fxp_mac_16_by_16bb((Word32) * (p_x++), (Word32) * (p_wind++), 0x04000)) >> 15;
371 *(p_y++) = temp;
396 temp = *p_y >> 2;
397 *(p_y++) = temp;
398 sum += ((Word32)temp * tem
[all...]
H A Denc_lag6.cpp196 Word16 temp; local
218 temp = sub(T0, T0_min, pOverflow);
220 i = add(temp, temp, pOverflow);
221 i = add(temp, i, pOverflow);
H A Dq_gain_c.cpp210 Word16 temp; local
274 temp = index + (index << 1);
276 p = &qua_gain_code[temp];
278 temp = (gcode0 * *(p++)) >> 15;
281 *gain = temp << 1;
285 *gain = temp;
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A 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; \
259 uint32 temp, temp2; local
316 temp = *(prev += 16); local
[all...]
H A Dvlc_dequant.cpp77 int32 temp; local
148 temp = (int32)datablock[k] * qmat[k] * QP;
149 temp = (temp + (0x7 & (temp >> 31))) >> 3;
150 if (temp > 2047) temp = 2047;
151 else if (temp < -2048) temp = -2048;
152 datablock[k] = (int) temp;
402 int32 temp; local
507 int32 temp; local
809 int32 temp; local
1071 int32 temp; local
[all...]
H A Didct_vca.cpp450 int32 x0, x1, x2, x4, x5, temp; local
476 temp = ((x0 + x2) >> 14);
477 CLIP_RESULT(temp)
478 word = word | (temp << 8);
479 temp = ((x0 + x1) >> 14);
480 CLIP_RESULT(temp)
481 word = word | (temp << 16);
482 temp = ((x0 + x5) >> 14);
483 CLIP_RESULT(temp)
484 word = word | (temp << 2
507 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8, temp; local
580 int32 x0, x1, x2, x3, x4, x5, x6, x7, x8, temp; local
[all...]
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Dagc2_amr_wb.cpp128 int16 temp; local
132 temp = sig_out[0] >> 2;
133 s = fxp_mul_16by16(temp, temp) << 1;
136 temp = sig_out[i] >> 2;
137 s = mac_16by16_to_int32(s, temp, temp);
150 temp = sig_in[0] >> 2;
151 s = mul_16by16_to_int32(temp, temp);
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/
H A Dlsfwt.cpp192 Word16 temp; local
223 temp = wgt_fct - 1843;
225 if (temp > 0)
227 temp = (Word16)(((Word32)temp * 6242) >> 15);
228 wgt_fct = 1843 - temp;
232 temp = (Word16)(((Word32)wgt_fct * 28160) >> 15);
233 wgt_fct = 3427 - temp;
H A Dq_plsf_3.cpp209 Word16 *p_dico, temp;
217 temp = sub (lsf_r1[0], *p_dico++);
218 temp = mult (wf1[0], temp);
219 dist = L_mult (temp, temp);
221 temp = sub (lsf_r1[1], *p_dico++);
222 temp = mult (wf1[1], temp);
223 dist = L_mac (dist, temp, tem
285 Word16 temp; local
611 Word16 temp; local
1028 Word16 temp; local
[all...]
H A Dsyn_filt.cpp268 Word16 temp; local
304 temp = (Word16)(s1 >> 12);
308 temp = MAX_16;
312 temp = MIN_16;
315 s2 = amrnb_fxp_msu_16_by_16bb((Word32)a[1], (Word32)temp, s2);
317 *(yy++) = temp;
318 *(p_y++) = temp;
325 temp = (Word16)(s2 >> 12);
329 temp = MAX_16;
333 temp
[all...]
/frameworks/base/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_plsf_3.cpp173 Word16 temp; local
186 temp =
201 temp,
210 /* temp = mean_lsf[i] + past_r2_q[i] * PRED_FAC; */
212 temp =
218 temp =
221 temp,
227 temp,
236 /* temp = mean_lsf[i] + past_r2_q[i]; */
238 temp
[all...]
H A Dd_plsf_5.cpp174 Word16 temp, sign;
196 // temp = mean_lsf[i] + st->past_r_q[i] * LSP_PRED_FAC_MR122;
198 temp = add (mean_lsf[i], mult (st->past_r_q[i],
201 st->past_r_q[i] = sub (lsf2_q[i], temp);
255 temp = add (mean_lsf[i], mult (st->past_r_q[i],
257 lsf1_q[i] = add (lsf1_r[i], temp);
258 lsf2_q[i] = add (lsf2_r[i], temp);
312 Word16 temp; local
333 temp =
348 temp,
[all...]
H A Db_cn_cod.cpp210 Word16 temp; local
238 temp = (Word16)((*pShift_reg) & 1);
239 noise_bits |= temp;
364 Word16 temp; local
375 temp = (Word16)(L_mult(i, 10, pOverflow));
376 i = temp >> 1;
501 Word16 temp; local
512 temp = ~(0xFFFF << param_size_table[i]);
513 parm[i] = *pTemp++ & temp;
/frameworks/base/media/libstagefright/codecs/avc/dec/src/
H A Dvlc.cpp99 uint temp, tmp_cnt; local
101 BitstreamShowBits(bitstream, 16, &temp);
102 tmp_cnt = temp | 0x1;
108 *codeNum = (temp >> (15 - (leading_zeros << 1))) - 1;
113 BitstreamReadBits(bitstream, (leading_zeros << 1) + 1, &temp);
114 *codeNum = temp - 1;
124 uint temp, tmp_cnt; local
126 BitstreamShowBits(bitstream, 16, &temp);
127 tmp_cnt = temp | 0x1;
133 temp >>
466 uint temp, leading_zeros = 0; local
548 uint temp; local
612 uint temp, mask; local
755 uint temp; local
780 uint temp; local
[all...]
H A Dpred_intra.cpp20 #define CLIP_COMP *comp++ = (uint8)(((uint)temp>0xFF)? 0xFF&(~(temp>>31)): temp)
28 int component, SubBlock_indx, temp; local
85 temp = SubBlock_indx & 1;
86 if (temp)
714 uint32 temp; local
722 temp = S|(R<<8)|(Q<<16)|(P<<24);*/
723 temp = *((uint32*)comp_ref);
725 *((uint32*)pred) = temp; /* writ
739 uint32 temp; local
774 uint32 temp; local
828 uint32 temp; local
905 uint32 temp; local
969 uint32 temp; local
1040 uint32 temp; local
1170 uint32 temp; local
1256 uint32 temp; local
1279 uint32 temp, temp2; local
1364 uint32 temp; local
1485 uint32 temp, temp2, pred_a, pred_b; local
1623 uint32 temp; local
1689 uint32 temp; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DTemporaryBuffer.java37 /* package */ static void recycle(char[] temp) { argument
38 if (temp.length > 1000)
42 sTemp = temp;
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
H A DBerTlv.java77 int temp = data[curIndex++] & 0xff;
78 if (temp < 0x80) {
79 length = temp;
80 } else if (temp == 0x81) {
81 temp = data[curIndex++] & 0xff;
82 if (temp < 0x80) {
86 length = temp;
/frameworks/base/opengl/tests/gralloc/
H A Dgralloc.cpp43 void* temp = malloc(size); local
45 memset(temp, 0, size);
73 memcpy(temp, temp2, size);
79 memcpy(temp, vaddr, size);
85 memcpy(vaddr, temp, size);
92 lamecpy(temp, temp2, size);
98 lamecpy(temp, vaddr, size);
104 lamecpy(vaddr, temp, size);

Completed in 258 milliseconds

123456