Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 326) sorted by relevance

12345678910>>...14

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_decode_huff_cw.cpp152 uint32 tmp; in pvmp3_decode_huff_cw_tab1() local
155 tmp = getUpTo9bits(pMainData, 3); /* hufftable1 */ in pvmp3_decode_huff_cw_tab1()
157 cw = *(huffTable_1 + tmp); in pvmp3_decode_huff_cw_tab1()
169 uint32 tmp; in pvmp3_decode_huff_cw_tab2() local
172 tmp = getUpTo9bits(pMainData, 6); /* huffTable_2,3 */ in pvmp3_decode_huff_cw_tab2()
174 if (tmp >> 3) in pvmp3_decode_huff_cw_tab2()
176 tmp = (tmp >> 3) - 1; in pvmp3_decode_huff_cw_tab2()
180 tmp = tmp + 7; in pvmp3_decode_huff_cw_tab2()
183 cw = *(huffTable_2 + tmp); in pvmp3_decode_huff_cw_tab2()
195 uint32 tmp; in pvmp3_decode_huff_cw_tab3() local
[all …]
Dpvmp3_get_side_info.cpp120 uint32 tmp; in pvmp3_get_side_info() local
128 tmp = getbits_crc(inputStream, 14, crc, info->error_protection); in pvmp3_get_side_info()
129 si->main_data_begin = (tmp << 18) >> 23; /* 9 */ in pvmp3_get_side_info()
130 si->private_bits = (tmp << 23) >> 27; /* 5 */ in pvmp3_get_side_info()
134 tmp = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info()
135 si->main_data_begin = (tmp << 20) >> 23; /* 9 */ in pvmp3_get_side_info()
136 si->private_bits = (tmp << 23) >> 29; /* 3 */ in pvmp3_get_side_info()
142 tmp = getbits_crc(inputStream, 4, crc, info->error_protection); in pvmp3_get_side_info()
143 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info()
144 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info()
[all …]
Dpvmp3_dequantize_sample.cpp296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss]))); in pvmp3_dequantize_sample() local
298 tmp = fxp_mul32_Q30(tmp, two_raise_one_fourth); in pvmp3_dequantize_sample()
305 is[ss] = (tmp >> temp); in pvmp3_dequantize_sample()
314 is[ss] = (tmp << global_gain); in pvmp3_dequantize_sample()
352 int32 tmp = is[ss]; in pvmp3_dequantize_sample() local
353 if (tmp) in pvmp3_dequantize_sample()
355 tmp = fxp_mul32_Q30((tmp << 16), power_1_third(pv_abs(tmp))); in pvmp3_dequantize_sample()
356 is[ss] = fxp_mul32_Q30(tmp, two_raise_one_fourth) >> global_gain; in pvmp3_dequantize_sample()
358 tmp = is[ss+1]; in pvmp3_dequantize_sample()
359 if (tmp) in pvmp3_dequantize_sample()
[all …]
Dpvmp3_mdct_18.cpp135 int32 tmp; in pvmp3_mdct_18() local
152 tmp = *(pt_vec); in pvmp3_mdct_18()
154 tmp = fxp_mul32_Q32(tmp << 1, *(pt_cos++)); in pvmp3_mdct_18()
156 *(pt_vec++) = tmp + tmp1 ; in pvmp3_mdct_18()
157 *(pt_vec_o--) = fxp_mul32_Q28((tmp - tmp1), *(pt_cos_split++)); in pvmp3_mdct_18()
169 tmp = vec[12]; in pvmp3_mdct_18()
179 vec[ 5] = vec[11] - tmp; in pvmp3_mdct_18()
180 vec[ 7] = vec[13] - tmp; in pvmp3_mdct_18()
194 tmp = history[ i]; in pvmp3_mdct_18()
198 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]); in pvmp3_mdct_18()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_vui.c86 u32 tmp; in h264bsdDecodeVuiParameters() local
95 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeVuiParameters()
96 if (tmp == END_OF_STREAM) in h264bsdDecodeVuiParameters()
98 pVuiParameters->aspectRatioPresentFlag = (tmp == 1) ? in h264bsdDecodeVuiParameters()
103 tmp = h264bsdGetBits(pStrmData, 8); in h264bsdDecodeVuiParameters()
104 if (tmp == END_OF_STREAM) in h264bsdDecodeVuiParameters()
106 pVuiParameters->aspectRatioIdc = tmp; in h264bsdDecodeVuiParameters()
110 tmp = h264bsdGetBits(pStrmData, 16); in h264bsdDecodeVuiParameters()
111 if (tmp == END_OF_STREAM) in h264bsdDecodeVuiParameters()
113 pVuiParameters->sarWidth = tmp; in h264bsdDecodeVuiParameters()
[all …]
Dh264bsd_slice_header.c104 u32 tmp, i, value; in h264bsdDecodeSliceHeader() local
121 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); in h264bsdDecodeSliceHeader()
122 if (tmp != HANTRO_OK) in h264bsdDecodeSliceHeader()
123 return(tmp); in h264bsdDecodeSliceHeader()
131 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); in h264bsdDecodeSliceHeader()
132 if (tmp != HANTRO_OK) in h264bsdDecodeSliceHeader()
133 return(tmp); in h264bsdDecodeSliceHeader()
146 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); in h264bsdDecodeSliceHeader()
147 if (tmp != HANTRO_OK) in h264bsdDecodeSliceHeader()
148 return(tmp); in h264bsdDecodeSliceHeader()
[all …]
Dh264bsd_sei.c187 u32 tmp, payloadType, payloadSize, status; in h264bsdDecodeSeiMessage() local
200 while((tmp = h264bsdGetBits(pStrmData, 8)) == 0xFF) in h264bsdDecodeSeiMessage()
204 if (tmp == END_OF_STREAM) in h264bsdDecodeSeiMessage()
206 payloadType += tmp; in h264bsdDecodeSeiMessage()
209 while((tmp = h264bsdGetBits(pStrmData, 8)) == 0xFF) in h264bsdDecodeSeiMessage()
213 if (tmp == END_OF_STREAM) in h264bsdDecodeSeiMessage()
215 payloadSize += tmp; in h264bsdDecodeSeiMessage()
406 u32 tmp, i; in DecodeBufferingPeriod() local
416 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, in DecodeBufferingPeriod()
418 if (tmp != HANTRO_OK) in DecodeBufferingPeriod()
[all …]
Dh264bsd_seq_param_set.c88 u32 tmp, i, value; in h264bsdDecodeSeqParamSet() local
98 tmp = h264bsdGetBits(pStrmData, 8); in h264bsdDecodeSeqParamSet()
99 if (tmp == END_OF_STREAM) in h264bsdDecodeSeqParamSet()
101 if (tmp != 66) in h264bsdDecodeSeqParamSet()
103 DEBUG(("NOT BASELINE PROFILE %d\n", tmp)); in h264bsdDecodeSeqParamSet()
105 pSeqParamSet->profileIdc = tmp; in h264bsdDecodeSeqParamSet()
108 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeSeqParamSet()
110 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeSeqParamSet()
112 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeSeqParamSet()
114 if (tmp == END_OF_STREAM) in h264bsdDecodeSeqParamSet()
[all …]
Dh264bsd_pic_param_set.c94 u32 tmp, i, value; in h264bsdDecodePicParamSet() local
105 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, in h264bsdDecodePicParamSet()
107 if (tmp != HANTRO_OK) in h264bsdDecodePicParamSet()
108 return(tmp); in h264bsdDecodePicParamSet()
115 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, in h264bsdDecodePicParamSet()
117 if (tmp != HANTRO_OK) in h264bsdDecodePicParamSet()
118 return(tmp); in h264bsdDecodePicParamSet()
126 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodePicParamSet()
127 if (tmp) in h264bsdDecodePicParamSet()
133 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodePicParamSet()
[all …]
Dh264bsd_nal_unit.c73 u32 tmp; in h264bsdDecodeNalUnit() local
82 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeNalUnit()
85 if (tmp == END_OF_STREAM) in h264bsdDecodeNalUnit()
88 tmp = h264bsdGetBits(pStrmData, 2); in h264bsdDecodeNalUnit()
89 pNalUnit->nalRefIdc = tmp; in h264bsdDecodeNalUnit()
91 tmp = h264bsdGetBits(pStrmData, 5); in h264bsdDecodeNalUnit()
92 pNalUnit->nalUnitType = (nalUnitType_e)tmp; in h264bsdDecodeNalUnit()
95 if ( (tmp == 2) || (tmp == 3) || (tmp == 4) ) in h264bsdDecodeNalUnit()
101 if ( ( (tmp == NAL_SEQ_PARAM_SET) || (tmp == NAL_PIC_PARAM_SET) || in h264bsdDecodeNalUnit()
102 (tmp == NAL_CODED_SLICE_IDR) ) && (pNalUnit->nalRefIdc == 0) ) in h264bsdDecodeNalUnit()
[all …]
Dh264bsd_macroblock_layer.c140 u32 tmp, i, value; in h264bsdDecodeMacroblockLayer() local
155 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); in h264bsdDecodeMacroblockLayer()
159 if ((value + 6) > 31 || tmp != HANTRO_OK) in h264bsdDecodeMacroblockLayer()
165 if ((value + 1) > 31 || tmp != HANTRO_OK) in h264bsdDecodeMacroblockLayer()
176 tmp = h264bsdGetBits(pStrmData, 1); in h264bsdDecodeMacroblockLayer()
177 if (tmp) in h264bsdDecodeMacroblockLayer()
196 tmp = DecodeSubMbPred(pStrmData, &pMbLayer->subMbPred, in h264bsdDecodeMacroblockLayer()
201 tmp = DecodeMbPred(pStrmData, &pMbLayer->mbPred, in h264bsdDecodeMacroblockLayer()
204 if (tmp != HANTRO_OK) in h264bsdDecodeMacroblockLayer()
205 return(tmp); in h264bsdDecodeMacroblockLayer()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
Ddeblock.cpp298 int *tmp; in DeblockMb() local
390 tmp = clipTable; in DeblockMb()
490 clipTable = tmp; in DeblockMb()
533 int tmp; in GetStrength_Edge0() local
579 tmp = *ptrQ++ - *ptrP++; in GetStrength_Edge0()
580 if (tmp < 0) tmp = -tmp; in GetStrength_Edge0()
581 if (tmp >= 4) *pStrength = 1; in GetStrength_Edge0()
583 tmp = *ptrQ-- - *ptrP--; in GetStrength_Edge0()
584 if (tmp < 0) tmp = -tmp; in GetStrength_Edge0()
585 if (tmp >= 4) *pStrength = 1; in GetStrength_Edge0()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dsad_halfpel.cpp189 int difmad, tmp, tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh() local
212 tmp = p1[12] + p2[12]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
214 tmp += tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
216 tmp += 2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
217 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
218 tmp = p1[8] + p2[8]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
220 tmp += tmp2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
222 tmp += 2; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
223 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
224 tmp = p1[4] + p2[4]; in AVCAVCSAD_MB_HP_HTFM_Collectxhyh()
[all …]
Dsad.cpp97 int saddata[16], tmp, tmp2; /* used when collecting flag (global) is on */ in AVCAVCSAD_MB_HTFM_Collect() local
114 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect()
116 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect()
117 tmp = p1[8]; in AVCAVCSAD_MB_HTFM_Collect()
119 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect()
120 tmp = p1[4]; in AVCAVCSAD_MB_HTFM_Collect()
122 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect()
123 tmp = p1[0]; in AVCAVCSAD_MB_HTFM_Collect()
126 sad = SUB_SAD(sad, tmp, tmp2); in AVCAVCSAD_MB_HTFM_Collect()
129 tmp = p1[12]; in AVCAVCSAD_MB_HTFM_Collect()
[all …]
Dsad_halfpel_inline.h31 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP1_SUB_SAD() argument
33 tmp = (tmp2 >> 1) - tmp; in INTERP1_SUB_SAD()
34 if (tmp > 0) sad += tmp; in INTERP1_SUB_SAD()
35 else sad -= tmp; in INTERP1_SUB_SAD()
40 __inline int32 INTERP2_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP2_SUB_SAD() argument
42 tmp = (tmp >> 2) - tmp2; in INTERP2_SUB_SAD()
43 if (tmp > 0) sad += tmp; in INTERP2_SUB_SAD()
44 else sad -= tmp; in INTERP2_SUB_SAD()
51 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2)
55 rsbs tmp, tmp, tmp2, asr #1 ;
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dsad.cpp113 Int saddata[16], tmp, tmp2; /* used when collecting flag (global) is on */ in SAD_MB_HTFM_Collect() local
127 tmp = p1[12]; in SAD_MB_HTFM_Collect()
129 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
130 tmp = p1[8]; in SAD_MB_HTFM_Collect()
132 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
133 tmp = p1[4]; in SAD_MB_HTFM_Collect()
135 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
136 tmp = p1[0]; in SAD_MB_HTFM_Collect()
139 sad = SUB_SAD(sad, tmp, tmp2); in SAD_MB_HTFM_Collect()
142 tmp = p1[12]; in SAD_MB_HTFM_Collect()
[all …]
Dsad_halfpel_inline.h34 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP1_SUB_SAD() argument
36 tmp = (tmp2 >> 1) - tmp; in INTERP1_SUB_SAD()
37 if (tmp > 0) sad += tmp; in INTERP1_SUB_SAD()
38 else sad -= tmp; in INTERP1_SUB_SAD()
43 __inline int32 INTERP2_SUB_SAD(int32 sad, int32 tmp, int32 tmp2) in INTERP2_SUB_SAD() argument
45 tmp = (tmp >> 2) - tmp2; in INTERP2_SUB_SAD()
46 if (tmp > 0) sad += tmp; in INTERP2_SUB_SAD()
47 else sad -= tmp; in INTERP2_SUB_SAD()
54 __inline int32 INTERP1_SUB_SAD(int32 sad, int32 tmp, int32 tmp2)
58 rsbs tmp, tmp, tmp2, asr #1 ;
[all …]
Dme_utils.cpp38 Int MB_mean, A, tmp, Th; in ChooseMode_C() local
76 tmp = *p - MB_mean; in ChooseMode_C()
78 if (tmp > 0) A += tmp; in ChooseMode_C()
79 else A -= tmp; in ChooseMode_C()
318 Int tmp, tmp2, mask = 0x00FF00FF; in ComputeMBSum_C() local
325 tmp = cInt[3]; /* load 4 pixels at a time */ in ComputeMBSum_C()
326 tmp2 = tmp & mask; in ComputeMBSum_C()
327 tmp = (tmp >> 8) & mask; in ComputeMBSum_C()
328 tmp += tmp2; in ComputeMBSum_C()
329 sad2 += tmp; in ComputeMBSum_C()
[all …]
Dsad_halfpel.cpp343 Int difmad, tmp, tmp2; in SAD_MB_HP_HTFM_Collectxhyh() local
363 tmp = p1[12] + p2[12]; in SAD_MB_HP_HTFM_Collectxhyh()
365 tmp += tmp2; in SAD_MB_HP_HTFM_Collectxhyh()
367 tmp += 2; in SAD_MB_HP_HTFM_Collectxhyh()
368 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in SAD_MB_HP_HTFM_Collectxhyh()
369 tmp = p1[8] + p2[8]; in SAD_MB_HP_HTFM_Collectxhyh()
371 tmp += tmp2; in SAD_MB_HP_HTFM_Collectxhyh()
373 tmp += 2; in SAD_MB_HP_HTFM_Collectxhyh()
374 sad = INTERP2_SUB_SAD(sad, tmp, tmp2);; in SAD_MB_HP_HTFM_Collectxhyh()
375 tmp = p1[4] + p2[4]; in SAD_MB_HP_HTFM_Collectxhyh()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddec_alg_codebook.cpp147 int16 pos1, pos2, tmp; in dec_2p_2N1() local
156 tmp = shl_int16(N, 1); in dec_2p_2N1()
157 i = (index >> tmp) & 1L; /* i = (index >> (2*N)) & 1; */ in dec_2p_2N1()
194 int16 j, tmp; in dec_3p_3N1() local
200 tmp = sub_int16(shl_int16(N, 1), 1); /* mask = ((1<<((2*N)-1))-1); */ in dec_3p_3N1()
206 tmp = (N << 1) - 1; in dec_3p_3N1()
209 if (((index >> tmp) & 1L) != 0L) in dec_3p_3N1()
216 tmp = N << 1; /* idx = (index >> (2*N)) & mask; */ in dec_3p_3N1()
217 idx = (index >> tmp) & mask; in dec_3p_3N1()
231 int16 j, tmp; in dec_4p_4N1() local
[all …]
Dvoice_factor.cpp127 int16 i, tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local
135 tmp = (int16)((L_tmp << exp) >> 16); in voice_factor()
136 ener1 = mult_int16(ener1, tmp); in voice_factor()
142 tmp = shl_int16(gain_code, exp); in voice_factor()
143 tmp = mult_int16(tmp, tmp); in voice_factor()
144 ener2 = mult_int16(ener2, tmp); in voice_factor()
161 tmp = ener1 - ener2; in voice_factor()
165 if (tmp >= 0) in voice_factor()
167 tmp = div_16by16(tmp, ener1); in voice_factor()
171 tmp = negate_int16(div_16by16(negate_int16(tmp), ener1)); in voice_factor()
[all …]
Disf_extrapolation.cpp122 int16 coeff, mean, tmp, tmp2, tmp3; in isf_extrapolation() local
145 tmp = 0; in isf_extrapolation()
148 if (IsfDiff[i] > tmp) in isf_extrapolation()
150 tmp = IsfDiff[i]; in isf_extrapolation()
153 exp = norm_s(tmp); in isf_extrapolation()
208 tmp = sub_int16(HfIsf[i - 1 - MaxCorr], HfIsf[i - 2 - MaxCorr]); in isf_extrapolation()
209 HfIsf[i] = add_int16(HfIsf[i - 1], tmp); in isf_extrapolation()
213 tmp = add_int16(HfIsf[4], HfIsf[3]); in isf_extrapolation()
214 tmp = sub_int16(HfIsf[2], tmp); in isf_extrapolation()
215 tmp = mult_int16(tmp, 5461); in isf_extrapolation()
[all …]
Dhoming_amr_wb_dec.cpp250 int16 i, j, tmp, shift; in dhf_test() local
280 tmp = nparms - 15; in dhf_test()
281 while (tmp > j) in dhf_test()
287 tmp = nparms - j; in dhf_test()
288 param[i] = Serial_parm(tmp, &prms); in dhf_test()
289 shift = 15 - tmp; in dhf_test()
318 tmp = Serial_parm(8, &prms); in dhf_test()
319 param[31] = shl_int16(tmp, 7); in dhf_test()
324 tmp = i; in dhf_test()
326 for (i = 0; i < tmp; i++) in dhf_test()
[all …]
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
Dfocus_peak.rs32 int tmp;
34 tmp = rsGetElementAtYuv_uchar_Y(gCurrentFrame, dx, y) - curPixel.r;
35 sum += tmp * tmp;
36 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, dx, y) - curPixel.g;
37 sum += tmp * tmp;
38 tmp = rsGetElementAtYuv_uchar_V(gCurrentFrame, dx, y) - curPixel.b;
39 sum += tmp * tmp;
43 tmp = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, dy) - curPixel.r;
44 sum += tmp * tmp;
45 tmp = rsGetElementAtYuv_uchar_U(gCurrentFrame, x, dy) - curPixel.g;
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dvoicefac.c37 Word16 tmp, exp, ener1, exp1, ener2, exp2; in voice_factor() local
48 tmp = extract_h(L_tmp << exp); in voice_factor()
49 ener1 = vo_mult(ener1, tmp); in voice_factor()
59 tmp = gain_code << exp; in voice_factor()
60 tmp = vo_mult(tmp, tmp); in voice_factor()
61 ener2 = vo_mult(ener2, tmp); in voice_factor()
76 tmp = vo_sub(ener1, ener2); in voice_factor()
79 if (tmp >= 0) in voice_factor()
81 tmp = div_s(tmp, ener1); in voice_factor()
84 tmp = vo_negate(div_s(vo_negate(tmp), ener1)); in voice_factor()
[all …]

12345678910>>...14