Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 2439) sorted by relevance

12345678910>>...98

/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dqpisf_2s.cpp141 int16 i, j, tmp; in Dpisf_2s_46b() local
147 for (i = 0; i < 9; i++) in Dpisf_2s_46b()
149 isf_q[i] = dico1_isf[(indice[0] << 3) + indice[0] + i]; in Dpisf_2s_46b()
151 for (i = 0; i < 7; i++) in Dpisf_2s_46b()
153 isf_q[i + 9] = dico2_isf[(indice[1] << 3) - indice[1] + i]; in Dpisf_2s_46b()
156 for (i = 0; i < 3; i++) in Dpisf_2s_46b()
158 isf_q[i] += dico21_isf[indice[2] * 3 + i]; in Dpisf_2s_46b()
159 isf_q[i + 3] += dico22_isf[indice[3] * 3 + i]; in Dpisf_2s_46b()
160 isf_q[i + 6] += dico23_isf[indice[4] * 3 + i]; in Dpisf_2s_46b()
161 isf_q[i + 9] += dico24_isf[indice[5] * 3 + i]; in Dpisf_2s_46b()
[all …]
Disf_extrapolation.cpp124 int16 i, MaxCorr; in isf_extrapolation() local
129 for (i = 1; i < (M - 1); i++) in isf_extrapolation()
131 IsfDiff[i - 1] = sub_int16(HfIsf[i], HfIsf[i - 1]); in isf_extrapolation()
136 for (i = 3; i < (M - 1); i++) in isf_extrapolation()
138 L_tmp = mac_16by16_to_int32(L_tmp, IsfDiff[i - 1], INV_LENGTH); in isf_extrapolation()
146 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
148 if (IsfDiff[i] > tmp) in isf_extrapolation()
150 tmp = IsfDiff[i]; in isf_extrapolation()
154 for (i = 0; i < (M - 2); i++) in isf_extrapolation()
156 IsfDiff[i] = shl_int16(IsfDiff[i], exp); in isf_extrapolation()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dqpisf_2s.c66 Word32 i, k, temp, min_err, distance; in Qpisf_2s_46b() local
70 for (i = 0; i < ORDER; i++) in Qpisf_2s_46b()
72 isf[i] = vo_sub(isf1[i], mean_isf[i]); in Qpisf_2s_46b()
73 isf[i] = vo_sub(isf[i], vo_mult(MU, past_isfq[i])); in Qpisf_2s_46b()
82 for (i = 0; i < 9; i++) in Qpisf_2s_46b()
84 isf_stage2[i] = vo_sub(isf[i], dico1_isf[i + surv1[k] * 9]); in Qpisf_2s_46b()
97 for (i = 0; i < 3; i++) in Qpisf_2s_46b()
99 indice[i + 2] = tmp_ind[i]; in Qpisf_2s_46b()
111 for (i = 0; i < 7; i++) in Qpisf_2s_46b()
113 isf_stage2[i] = vo_sub(isf[9 + i], dico2_isf[i + surv1[k] * 7]); in Qpisf_2s_46b()
[all …]
Dqisf_ns.c41 Word16 i; in Qisf_ns() local
44 for (i = 0; i < ORDER; i++) in Qisf_ns()
46 isf_q[i] = sub(isf1[i], mean_isf_noise[i]); in Qisf_ns()
77 Word16 i; in Disf_ns() local
79 for (i = 0; i < 2; i++) in Disf_ns()
81 isf_q[i] = dico1_isf_noise[indice[0] * 2 + i]; in Disf_ns()
83 for (i = 0; i < 3; i++) in Disf_ns()
85 isf_q[i + 2] = dico2_isf_noise[indice[1] * 3 + i]; in Disf_ns()
87 for (i = 0; i < 3; i++) in Disf_ns()
89 isf_q[i + 5] = dico3_isf_noise[indice[2] * 3 + i]; in Disf_ns()
[all …]
Dhp6k.c60 Word32 i, L_tmp; in Filt_6k_7k() local
63 for (i = lg - 1; i >= 0; i--) in Filt_6k_7k()
65 x[i + L_FIR - 1] = signal[i] >> 2; /* gain of filter = 4 */ in Filt_6k_7k()
67 for (i = 0; i < lg; i++) in Filt_6k_7k()
69 L_tmp = (x[i] + x[i+ 30]) * fir_6k_7k[0]; in Filt_6k_7k()
70 L_tmp += (x[i+1] + x[i + 29]) * fir_6k_7k[1]; in Filt_6k_7k()
71 L_tmp += (x[i+2] + x[i + 28]) * fir_6k_7k[2]; in Filt_6k_7k()
72 L_tmp += (x[i+3] + x[i + 27]) * fir_6k_7k[3]; in Filt_6k_7k()
73 L_tmp += (x[i+4] + x[i + 26]) * fir_6k_7k[4]; in Filt_6k_7k()
74 L_tmp += (x[i+5] + x[i + 25]) * fir_6k_7k[5]; in Filt_6k_7k()
[all …]
Ddtx.c101 Word32 i; in dtx_enc_reset() local
112 for (i = 0; i < DTX_HIST_SIZE; i++) in dtx_enc_reset()
114 Copy(isf_init, &st->isf_hist[i * M], M); in dtx_enc_reset()
124 for (i = 0; i < 28; i++) in dtx_enc_reset()
126 st->D[i] = 0; in dtx_enc_reset()
129 for (i = 0; i < DTX_HIST_SIZE - 1; i++) in dtx_enc_reset()
131 st->sumD[i] = 0; in dtx_enc_reset()
165 Word32 i, j; in dtx_enc() local
175 for (i = 0; i < M; i++) in dtx_enc()
177 L_isf[i] = 0; in dtx_enc()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/
DomxVCM4P10_SATD_4x4.c62 OMX_INT i, j; in omxVCM4P10_SATD_4x4() local
78 for (i = 0; i < 4; i++) in omxVCM4P10_SATD_4x4()
80 d [j][i] = pSrcOrg [j * iStepOrg + i] - pSrcRef [j * iStepRef + i]; in omxVCM4P10_SATD_4x4()
87 for (i = 0; i < 4; i++) in omxVCM4P10_SATD_4x4()
89 m1[i][0] = d[i][0] + d[i][2]; /* a+c */ in omxVCM4P10_SATD_4x4()
90 m1[i][1] = d[i][1] + d[i][3]; /* b+d */ in omxVCM4P10_SATD_4x4()
91 m1[i][2] = d[i][0] - d[i][2]; /* a-c */ in omxVCM4P10_SATD_4x4()
92 m1[i][3] = d[i][1] - d[i][3]; /* b-d */ in omxVCM4P10_SATD_4x4()
94 m2[i][0] = m1[i][0] + m1[i][1]; /* a+b+c+d */ in omxVCM4P10_SATD_4x4()
95 m2[i][1] = m1[i][2] + m1[i][3]; /* a+b-c-d */ in omxVCM4P10_SATD_4x4()
[all …]
DomxVCM4P10_TransformQuant_LumaDC.c56 OMX_INT i, j; in omxVCM4P10_TransformQuant_LumaDC() local
68 for (i = 0; i < 4; i++) in omxVCM4P10_TransformQuant_LumaDC()
70 j = i * 4; in omxVCM4P10_TransformQuant_LumaDC()
72 m1[i][0] = pSrcDst[j + 0] + pSrcDst[j + 2]; /* a+c */ in omxVCM4P10_TransformQuant_LumaDC()
73 m1[i][1] = pSrcDst[j + 1] + pSrcDst[j + 3]; /* b+d */ in omxVCM4P10_TransformQuant_LumaDC()
74 m1[i][2] = pSrcDst[j + 0] - pSrcDst[j + 2]; /* a-c */ in omxVCM4P10_TransformQuant_LumaDC()
75 m1[i][3] = pSrcDst[j + 1] - pSrcDst[j + 3]; /* b-d */ in omxVCM4P10_TransformQuant_LumaDC()
77 m2[i][0] = m1[i][0] + m1[i][1]; /* a+b+c+d */ in omxVCM4P10_TransformQuant_LumaDC()
78 m2[i][1] = m1[i][2] + m1[i][3]; /* a+b-c-d */ in omxVCM4P10_TransformQuant_LumaDC()
79 m2[i][2] = m1[i][2] - m1[i][3]; /* a-b-c+d */ in omxVCM4P10_TransformQuant_LumaDC()
[all …]
DomxVCM4P10_InvTransformDequant_LumaDC.c57 OMX_INT i, j; in omxVCM4P10_InvTransformDequant_LumaDC() local
70 for (i = 0; i < 4; i++) in omxVCM4P10_InvTransformDequant_LumaDC()
72 j = i * 4; in omxVCM4P10_InvTransformDequant_LumaDC()
74 m1[i][0] = pSrc[j + 0] + pSrc[j + 2]; /* a+c */ in omxVCM4P10_InvTransformDequant_LumaDC()
75 m1[i][1] = pSrc[j + 1] + pSrc[j + 3]; /* b+d */ in omxVCM4P10_InvTransformDequant_LumaDC()
76 m1[i][2] = pSrc[j + 0] - pSrc[j + 2]; /* a-c */ in omxVCM4P10_InvTransformDequant_LumaDC()
77 m1[i][3] = pSrc[j + 1] - pSrc[j + 3]; /* b-d */ in omxVCM4P10_InvTransformDequant_LumaDC()
79 m2[i][0] = m1[i][0] + m1[i][1]; /* a+b+c+d */ in omxVCM4P10_InvTransformDequant_LumaDC()
80 m2[i][1] = m1[i][2] + m1[i][3]; /* a+b-c-d */ in omxVCM4P10_InvTransformDequant_LumaDC()
81 m2[i][2] = m1[i][2] - m1[i][3]; /* a-b-c+d */ in omxVCM4P10_InvTransformDequant_LumaDC()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java116 for (int i = 0; i < SIZE; i++) { in setUp()
118 statements[i] = in setUp()
119 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
128 for (int i = 0; i < SIZE; i++) { in testRun()
129 mDatabase.execSQL(statements[i]); in testRun()
148 for (int i = 0; i < SIZE; i++) { in setUp()
150 statements[i] = in setUp()
151 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
161 for (int i = 0; i < SIZE; i++) { in testRun()
162 mDatabase.execSQL(statements[i]); in testRun()
[all …]
DDatabasePerformanceTests.java207 for (int i = 0; i < SIZE; i++) { in setUp()
209 statements[i] = in setUp()
210 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
220 for (int i = 0; i < SIZE; i++) { in run()
221 mDatabase.execSQL(statements[i]); in run()
240 for (int i = 0; i < SIZE; i++) { in setUp()
242 statements[i] = in setUp()
243 "INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
254 for (int i = 0; i < SIZE; i++) { in run()
255 mDatabase.execSQL(statements[i]); in run()
[all …]
/frameworks/base/core/java/android/text/util/
DRfc822Tokenizer.java50 int i = 0; in tokenize() local
53 while (i < cursor) { in tokenize()
54 char c = text.charAt(i); in tokenize()
57 i++; in tokenize()
59 while (i < cursor && text.charAt(i) == ' ') { in tokenize()
60 i++; in tokenize()
79 i++; in tokenize()
81 while (i < cursor) { in tokenize()
82 c = text.charAt(i); in tokenize()
85 i++; in tokenize()
[all …]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java82 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
83 colors[i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in testGetPixelsWithAlpha()
91 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
92 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
93 assertEquals("getPixels", p, pixels[i]); in testGetPixelsWithAlpha()
96 for (int i = 0; i < 100; i++) { in testGetPixelsWithAlpha()
97 int p = bm.getPixel(i % 10, i / 10); in testGetPixelsWithAlpha()
98 assertEquals("getPixel", p, colors[i]); in testGetPixelsWithAlpha()
100 ((0xFF << 24) | (i << 16) | (i << 8) | i)); in testGetPixelsWithAlpha()
108 for (int i = 0; i < 100; i++) { in testGetPixelsWithoutAlpha()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/common/src/
Dreflist.cpp26 int i, list0idx; in RefListInit() local
40 for (i = 0; i < dpb->num_fs; i++) in RefListInit()
42 if ((dpb->fs[i]->IsReference == 3) && (!dpb->fs[i]->IsLongTerm)) in RefListInit()
45 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num) in RefListInit()
47 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum - video->MaxFrameNum; in RefListInit()
51 dpb->fs[i]->FrameNumWrap = dpb->fs[i]->FrameNum; in RefListInit()
53 dpb->fs[i]->frame.PicNum = dpb->fs[i]->FrameNumWrap; in RefListInit()
64 for (i = 0; i < dpb->num_fs; i++) in RefListInit()
66 if ((dpb->fs[i]->IsReference == 3) && (!dpb->fs[i]->IsLongTerm)) in RefListInit()
69 if (dpb->fs[i]->FrameNum > (int)sliceHdr->frame_num) in RefListInit()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dint_lsf.cpp221 register Word16 i; in Int_lsf() local
227 for (i = M - 1; i >= 0; i--) in Int_lsf()
229 if (*(lsf_old + i) < 0) in Int_lsf()
231 temp1 = ~(~(*(lsf_old + i)) >> 2); in Int_lsf()
235 temp1 = *(lsf_old + i) >> 2; in Int_lsf()
237 if (*(lsf_new + i) < 0) in Int_lsf()
239 temp2 = ~(~(*(lsf_new + i)) >> 2); in Int_lsf()
243 temp2 = *(lsf_new + i) >> 2; in Int_lsf()
245 *(lsf_out + i) = add((Word16)(*(lsf_old + i) - temp1), in Int_lsf()
253 for (i = M - 1; i >= 0; i--) in Int_lsf()
[all …]
Ddec_lag3.cpp198 Word16 i; in Dec_lag3() local
215 i = in Dec_lag3()
221 *T0 = i; in Dec_lag3()
225 i = add(i, i, pOverflow); in Dec_lag3()
226 i = add(i, *T0, pOverflow); in Dec_lag3()
231 i, in Dec_lag3()
256 i = in Dec_lag3()
262 i = in Dec_lag3()
264 i, in Dec_lag3()
268 i = in Dec_lag3()
[all …]
/frameworks/base/core/java/android/util/
DSpline.java63 for (int i = 0; i < n - 1; i++) { in createMonotoneCubicSpline()
64 float h = x[i + 1] - x[i]; in createMonotoneCubicSpline()
69 d[i] = (y[i + 1] - y[i]) / h; in createMonotoneCubicSpline()
74 for (int i = 1; i < n - 1; i++) { in createMonotoneCubicSpline()
75 m[i] = (d[i - 1] + d[i]) * 0.5f; in createMonotoneCubicSpline()
80 for (int i = 0; i < n - 1; i++) { in createMonotoneCubicSpline()
81 if (d[i] == 0f) { // successive Y values are equal in createMonotoneCubicSpline()
82 m[i] = 0f; in createMonotoneCubicSpline()
83 m[i + 1] = 0f; in createMonotoneCubicSpline()
85 float a = m[i] / d[i]; in createMonotoneCubicSpline()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DVideoEditorStressTest.java128 for (int i = 0; i < information.length; i++) { in writeTimingInfo()
129 output.write(information[i]); in writeTimingInfo()
184 int i = 0; in testStressAddRemoveVideoItem() local
186 for ( i = 0; i < 50; i++) { in testStressAddRemoveVideoItem()
187 if (i % 4 == 0) { in testStressAddRemoveVideoItem()
189 "m1" + i, videoItemFileName1, renderingMode); in testStressAddRemoveVideoItem()
193 if (i % 4 == 1) { in testStressAddRemoveVideoItem()
195 "m2" + i, videoItemFileName2, renderingMode); in testStressAddRemoveVideoItem()
199 if (i % 4 == 2) { in testStressAddRemoveVideoItem()
201 "m3" + i, videoItemFileName3, renderingMode); in testStressAddRemoveVideoItem()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DTestBenchMultipleInstance.c64 i32 i; in main() local
104 for (i = 1; i < (argc-1); i++) in main()
106 if ( strncmp(argv[i], "-N", 2) == 0 ) in main()
108 maxNumPics = (u32)atoi(argv[i]+2); in main()
111 else if ( strncmp(argv[i], "-O", 2) == 0 ) in main()
113 strcpy(outFileName, argv[i]+2); in main()
116 else if ( strcmp(argv[i], "-C") == 0 ) in main()
121 else if ( strcmp(argv[i], "-R") == 0 ) in main()
144 for (i = 0; i < instCount; i++) in main()
146 decoder[i] = (Decoder *)calloc(1, sizeof(Decoder)); in main()
[all …]
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs14 for (int i=0; i < (1000); i++) {
15 data_f4[i] = (data_f4[i] * 0.02f +
16 data_f4[i+1] * 0.04f +
17 data_f4[i+2] * 0.05f +
18 data_f4[i+3] * 0.1f +
19 data_f4[i+4] * 0.2f +
20 data_f4[i+5] * 0.2f +
21 data_f4[i+6] * 0.1f +
22 data_f4[i+7] * 0.05f +
23 data_f4[i+8] * 0.04f +
[all …]
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dfp_mad.rs14 for (int i=0; i < (1000); i++) {
15 data_f4[i] = (data_f4[i] * 0.02f +
16 data_f4[i+1] * 0.04f +
17 data_f4[i+2] * 0.05f +
18 data_f4[i+3] * 0.1f +
19 data_f4[i+4] * 0.2f +
20 data_f4[i+5] * 0.2f +
21 data_f4[i+6] * 0.1f +
22 data_f4[i+7] * 0.05f +
23 data_f4[i+8] * 0.04f +
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dfp_mad.rs14 for (int i=0; i < (1000); i++) {
15 data_f4[i] = (data_f4[i] * 0.02f +
16 data_f4[i+1] * 0.04f +
17 data_f4[i+2] * 0.05f +
18 data_f4[i+3] * 0.1f +
19 data_f4[i+4] * 0.2f +
20 data_f4[i+5] * 0.2f +
21 data_f4[i+6] * 0.1f +
22 data_f4[i+7] * 0.05f +
23 data_f4[i+8] * 0.04f +
[all …]
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs14 for (int i=0; i < (1000); i++) {
15 data_f4[i] = (data_f4[i] * 0.02f +
16 data_f4[i+1] * 0.04f +
17 data_f4[i+2] * 0.05f +
18 data_f4[i+3] * 0.1f +
19 data_f4[i+4] * 0.2f +
20 data_f4[i+5] * 0.2f +
21 data_f4[i+6] * 0.1f +
22 data_f4[i+7] * 0.05f +
23 data_f4[i+8] * 0.04f +
[all …]
/frameworks/base/core/java/android/database/
DMergeCursor.java47 for (int i = 0; i < mCursors.length; i++) { in MergeCursor()
48 if (mCursors[i] == null) continue; in MergeCursor()
50 mCursors[i].registerDataSetObserver(mObserver); in MergeCursor()
59 for (int i = 0 ; i < length ; i++) { in getCount()
60 if (mCursors[i] != null) { in getCount()
61 count += mCursors[i].getCount(); in getCount()
74 for (int i = 0 ; i < length; i++) { in onMove()
75 if (mCursors[i] == null) { in onMove()
79 if (newPosition < (cursorStartPos + mCursors[i].getCount())) { in onMove()
80 mCursor = mCursors[i]; in onMove()
[all …]
/frameworks/base/core/java/com/android/internal/database/
DSortCursor.java61 for (int i = 0 ; i < length ; i++) { in SortCursor()
62 if (mCursors[i] == null) continue; in SortCursor()
65 mCursors[i].registerDataSetObserver(mObserver); in SortCursor()
67 mCursors[i].moveToFirst(); in SortCursor()
70 mSortColumns[i] = mCursors[i].getColumnIndexOrThrow(sortcolumn); in SortCursor()
84 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor()
85 mRowNumCache[i] = -2; in SortCursor()
95 for (int i = 0 ; i < length ; i++) { in getCount()
96 if (mCursors[i] != null) { in getCount()
97 count += mCursors[i].getCount(); in getCount()
[all …]

12345678910>>...98