/frameworks/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 45 for (int j = 0; j < width; j++) { in testBasic() 46 ins[j] = i + j; in testBasic() 57 for (int j = 0; j < width; j++) { in testBasic() 59 assertEquals(0, p.getValue(at, j)); in testBasic() 61 assertEquals(p.getValue(at, j), i + j); in testBasic() local 69 for (int j = 0; j < width; j++) { in testBasic() 70 p.setValue(i, j, i * j); in testBasic() 72 assertEquals(p.getValue(i, j), i * j); in testBasic() local 78 for (int j = 0; j < width; j++) { in testBasic() 79 p.adjustValuesBelow(j * 2, j, j + 27); in testBasic() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | low_pass_filt_7k.cpp | 149 int16 i, j; in low_pass_filt_7k() local 169 for (j = 1; j < L_FIR - 1; j += 4) in low_pass_filt_7k() 173 int16 tmp1 = x[(i<<2)+j ]; in low_pass_filt_7k() 174 int16 tmp2 = x[(i<<2)+j+1]; in low_pass_filt_7k() 175 int16 tmp3 = x[(i<<2)+j+2]; in low_pass_filt_7k() 177 L_tmp1 = fxp_mac_16by16(tmp1, fir_7k[j ], L_tmp1); in low_pass_filt_7k() 178 L_tmp2 = fxp_mac_16by16(tmp2, fir_7k[j ], L_tmp2); in low_pass_filt_7k() 179 L_tmp1 = fxp_mac_16by16(tmp2, fir_7k[j+1], L_tmp1); in low_pass_filt_7k() 180 L_tmp2 = fxp_mac_16by16(tmp3, fir_7k[j+1], L_tmp2); in low_pass_filt_7k() 181 L_tmp3 = fxp_mac_16by16(tmp3, fir_7k[j ], L_tmp3); in low_pass_filt_7k() [all …]
|
D | band_pass_6k_7k.cpp | 156 int16 i, j; in band_pass_6k_7k() local 191 for (j = 1; j < L_FIR - 1; j += 4) in band_pass_6k_7k() 193 int16 tmp1 = x[(i<<2)+j ]; in band_pass_6k_7k() 194 int16 tmp2 = x[(i<<2)+j+1]; in band_pass_6k_7k() 195 int16 tmp3 = x[(i<<2)+j+2]; in band_pass_6k_7k() 197 L_tmp1 = fxp_mac_16by16(tmp1, fir_6k_7k[j ], L_tmp1); in band_pass_6k_7k() 198 L_tmp2 = fxp_mac_16by16(tmp2, fir_6k_7k[j ], L_tmp2); in band_pass_6k_7k() 199 L_tmp1 = fxp_mac_16by16(tmp2, fir_6k_7k[j+1], L_tmp1); in band_pass_6k_7k() 200 L_tmp2 = fxp_mac_16by16(tmp3, fir_6k_7k[j+1], L_tmp2); in band_pass_6k_7k() 201 L_tmp3 = fxp_mac_16by16(tmp3, fir_6k_7k[j ], L_tmp3); in band_pass_6k_7k() [all …]
|
D | phase_dispersion.cpp | 160 int16 i, j, state; in phase_dispersion() local 200 j = 0; in phase_dispersion() 205 j++; in phase_dispersion() 209 if (j > 2) in phase_dispersion() 232 for (j = 0; j < L_SUBFR; j++) in phase_dispersion() 234 code2[i + j] = add_int16(code2[i + j], mult_int16_r(code[i], ph_imp_low[j])); in phase_dispersion() 245 for (j = 0; j < L_SUBFR; j++) in phase_dispersion() 247 code2[i + j] = add_int16(code2[i + j], mult_int16_r(code[i], ph_imp_mid[j])); in phase_dispersion()
|
D | wb_syn_filt.cpp | 137 int16 i, j; in wb_syn_filt() local 166 for (j = 4; j < m; j += 2) in wb_syn_filt() 168 L_tmp1 = fxp_mac_16by16(yy[(i<<2)-1 - j], a[j+1], L_tmp1); in wb_syn_filt() 169 L_tmp2 = fxp_mac_16by16(yy[(i<<2) - j], a[j+1], L_tmp2); in wb_syn_filt() 170 L_tmp1 = fxp_mac_16by16(yy[(i<<2) - j], a[j ], L_tmp1); in wb_syn_filt() 171 L_tmp2 = fxp_mac_16by16(yy[(i<<2)+1 - j], a[j ], L_tmp2); in wb_syn_filt() 172 L_tmp3 = fxp_mac_16by16(yy[(i<<2)+1 - j], a[j+1], L_tmp3); in wb_syn_filt() 173 L_tmp4 = fxp_mac_16by16(yy[(i<<2)+2 - j], a[j+1], L_tmp4); in wb_syn_filt() 174 L_tmp3 = fxp_mac_16by16(yy[(i<<2)+2 - j], a[j ], L_tmp3); in wb_syn_filt() 175 L_tmp4 = fxp_mac_16by16(yy[(i<<2)+3 - j], a[j ], L_tmp4); in wb_syn_filt() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | if2_to_ets.cpp | 147 Word16 j; in if2_to_ets() local 160 for (j = 4; j < 8; j++) in if2_to_ets() 163 (if2_input_ptr[0] >> j) & 0x01; in if2_to_ets() 167 for (j = 0; j < 8; j++) in if2_to_ets() 174 (if2_input_ptr[i] >> j) & 0x01; in if2_to_ets() 180 for (j = 4; j < 8; j++) in if2_to_ets() 183 (if2_input_ptr[0] >> j) & 0x01; in if2_to_ets() 187 for (j = 0; j < 8; j++) in if2_to_ets() 190 (if2_input_ptr[i] >> j) & 0x01; in if2_to_ets()
|
D | d2_11pf.cpp | 158 Word16 j; in decode_2i40_11bits() local 164 j = index & 0x1; in decode_2i40_11bits() 170 pos[0] = i * 5 + j * 2 + 1; in decode_2i40_11bits() 177 j = index & 0x3; in decode_2i40_11bits() 183 if (j == 3) in decode_2i40_11bits() 189 pos[1] = i * 5 + j; in decode_2i40_11bits() 201 for (j = 0; j < NB_PULSE; j++) in decode_2i40_11bits() 218 cod[pos[j]] = i * 16383 - 8192; in decode_2i40_11bits()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | levinson.c | 115 Word32 i, j; in Levinson() local 167 for (j = 1; j < i; j++) in Levinson() 168 t0 = vo_L_add(t0, Mpy_32(Rh[j], Rl[j], Ah[i - j], Al[i - j])); in Levinson() 190 for (j = 0; j < M; j++) in Levinson() 192 A[j + 1] = old_A[j]; in Levinson() 203 for (j = 1; j < i; j++) in Levinson() 205 t0 = Mpy_32(Kh, Kl, Ah[i - j], Al[i - j]); in Levinson() 206 t0 = vo_L_add(t0, ((Ah[j] << 16) + (Al[j] << 1))); in Levinson() 207 Anh[j] = t0 >> 16; in Levinson() 208 Anl[j] = (t0 & 0xffff)>>1; in Levinson() [all …]
|
D | cor_h_x.c | 41 Word32 i, j; in cor_h_x() local 57 for (j = i; j < L_SUBFR; j++) in cor_h_x() 70 for (j = i+1; j < L_SUBFR; j++) in cor_h_x() 83 for (j = i+2; j < L_SUBFR; j++) in cor_h_x() 96 for (j = i+3; j < L_SUBFR; j++) in cor_h_x() 113 j = norm_l(L_tot) - 4; /* 4 -> 16 x tot */ in cor_h_x() 118 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 119 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 120 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x() 121 *p1++ = vo_round(L_shl(*p3++, j)); in cor_h_x()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p10/src/ |
D | omxVCM4P10_SubAndTransformQDQResidual.c | 89 OMX_INT i, j; in omxVCM4P10_SubAndTransformQDQResidual() local 136 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 140 pDstQuantCoeff [4 * j + i] = 0; in omxVCM4P10_SubAndTransformQDQResidual() 143 pDstDeQuantCoeff [4 * j + i] = 0; in omxVCM4P10_SubAndTransformQDQResidual() 158 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 162 Buf [j * 4 + i] = in omxVCM4P10_SubAndTransformQDQResidual() 163 pSrcOrg [j * iSrcOrgStep + i] - pSrcPred [j * iSrcPredStep + i]; in omxVCM4P10_SubAndTransformQDQResidual() 177 for (j = 0; j < 4; j++) in omxVCM4P10_SubAndTransformQDQResidual() 181 MF = armVCM4P10_MFMatrix[QPmod][armVCM4P10_PosToVCol4x4[j * 4 + i]]; in omxVCM4P10_SubAndTransformQDQResidual() 182 Value = armAbs(m[j * 4 + i]) * MF + f; in omxVCM4P10_SubAndTransformQDQResidual() [all …]
|
D | omxVCM4P10_TransformQuant_LumaDC.c | 56 OMX_INT i, j; in omxVCM4P10_TransformQuant_LumaDC() local 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() 105 for (j = 0; j < 4; j++) in omxVCM4P10_TransformQuant_LumaDC() 109 Value = (armAbs((m2[j][i]/* + 1*/) / 2) * MF + Two_f) >> QbitsPlusOne; in omxVCM4P10_TransformQuant_LumaDC() 110 pSrcDst[j * 4 + i] = (OMX_S16)((m2[j][i] < 0) ? -Value : Value); in omxVCM4P10_TransformQuant_LumaDC()
|
D | omxVCM4P10_InvTransformDequant_LumaDC.c | 57 OMX_INT i, j; in omxVCM4P10_InvTransformDequant_LumaDC() local 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() 105 for (j = 0; j < 4; j++) in omxVCM4P10_InvTransformDequant_LumaDC() 111 Value = (m2[j][i] * V + (1 << (1 - QPer))) >> (2 - QPer); in omxVCM4P10_InvTransformDequant_LumaDC() 115 Value = m2[j][i] * V * (1 << (QPer - 2)); in omxVCM4P10_InvTransformDequant_LumaDC() 118 pDst[j * 4 + i] = (OMX_S16) Value; in omxVCM4P10_InvTransformDequant_LumaDC()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | reflist.cpp | 409 int i, j; in SortPicByPicNum() local 414 for (j = i + 1; j < num; j++) in SortPicByPicNum() 416 if (data[j]->PicNum > data[i]->PicNum) in SortPicByPicNum() 418 temp = data[j]; in SortPicByPicNum() 419 data[j] = data[i]; in SortPicByPicNum() 431 int i, j; in SortPicByPicNumLongTerm() local 436 for (j = i + 1; j < num; j++) in SortPicByPicNumLongTerm() 438 if (data[j]->LongTermPicNum < data[i]->LongTermPicNum) in SortPicByPicNumLongTerm() 440 temp = data[j]; in SortPicByPicNumLongTerm() 441 data[j] = data[i]; in SortPicByPicNumLongTerm() [all …]
|
/frameworks/av/libvideoeditor/vss/src/ |
D | M4VD_Tools.c | 61 M4OSA_UInt8 i,j; in M4VD_Tools_WriteBitsToMemory() local 67 for(j=0;j<3;j++) in M4VD_Tools_WriteBitsToMemory() 71 if((j*8)+i >= offset && (j*8)+i < nb_bits + offset) in M4VD_Tools_WriteBitsToMemory() 73 mask |= (temp << ((7*(j+1))-i+j)); in M4VD_Tools_WriteBitsToMemory() 81 for(j=0;j<3;j++) in M4VD_Tools_WriteBitsToMemory() 85 if((j*8)+i >= offset && (j*8)+i < nb_bits + offset) in M4VD_Tools_WriteBitsToMemory() 89 *dest_bits |= (temp << ((7*(j+1))-i+j)); in M4VD_Tools_WriteBitsToMemory()
|
/frameworks/rs/ |
D | rsMatrix3x3.cpp | 53 for (int j=0 ; j<3 ; j++) { in loadMultiply() local 54 const float rhs_ij = ((const Matrix3x3 *)rhs)->get(i, j); in loadMultiply() 55 ri0 += ((const Matrix3x3 *)lhs)->get(j, 0) * rhs_ij; in loadMultiply() 56 ri1 += ((const Matrix3x3 *)lhs)->get(j, 1) * rhs_ij; in loadMultiply() 57 ri2 += ((const Matrix3x3 *)lhs)->get(j, 2) * rhs_ij; in loadMultiply() 66 int i, j; in transpose() local 69 for (j = i + 1; j < 3; ++j) { in transpose() 70 temp = get(i, j); in transpose() 71 set(i, j, get(j, i)); in transpose() 72 set(j, i, temp); in transpose()
|
/frameworks/rs/cpu_ref/linkloader/utils/ |
D | helper.cpp | 42 for (size_t j = i, k = i + 16; j < k; ++j) { in dump_hex() local 43 if (j == begin) { in dump_hex() 47 if (j == end) { in dump_hex() 51 if (j < size) { in dump_hex() 52 out() << ' ' << format("%02x", (unsigned)data[j]); in dump_hex() 59 for (size_t j = i, k = i + 16; j < k; ++j) { in dump_hex() local 60 if (data[j] > 0x20 && data[j] < 0x7f) { in dump_hex() 61 out() << (char)data[j]; in dump_hex()
|
/frameworks/av/media/libeffects/lvm/lib/Reverb/src/ |
D | LVREV_Process.c | 181 LVM_INT16 j, size; in ReverbBlock() local 258 for(j = 0; j < NumberOfDelayLines; j++) in ReverbBlock() 260 pDelayLine = pPrivate->pScratchDelayLine[j]; in ReverbBlock() 266 MixSoft_2St_D32C31_SAT(&pPrivate->Mixer_APTaps[j], in ReverbBlock() 267 pPrivate->pOffsetA[j], in ReverbBlock() 268 pPrivate->pOffsetB[j], in ReverbBlock() 272 Copy_16((LVM_INT16 *)&pPrivate->pDelay_T[j][NumSamples], in ReverbBlock() 273 (LVM_INT16 *)pPrivate->pDelay_T[j], in ReverbBlock() 274 (LVM_INT16)((pPrivate->T[j]-NumSamples) << 1)); /* 32-bit data */ in ReverbBlock() 276 MixSoft_1St_D32C31_WRA(&pPrivate->Mixer_SGFeedback[j], in ReverbBlock() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | sad_halfpel.cpp | 66 Int i, j; in HalfPel1_SAD_MB() local 80 for (j = 0; j < 16; j++) in HalfPel1_SAD_MB() 83 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_MB() 98 Int i, j; in HalfPel2_SAD_MB() local 111 for (j = 0; j < 16; j++) in HalfPel2_SAD_MB() 114 temp = ((p1[j] + p2[j] + p3[j] + p4[j] + 2) >> 2) - *kk++; in HalfPel2_SAD_MB() 140 Int i, j; in HalfPel1_SAD_Blk() local 154 for (j = 0; j < 8; j++) in HalfPel1_SAD_Blk() 157 temp = ((p1[j] + p2[j] + 1) >> 1) - *kk++; in HalfPel1_SAD_Blk() 172 Int i, j; in HalfPel2_SAD_Blk() local [all …]
|
D | vlc_encode_inline.h | 25 Int idx, run, level, j; in zero_run_search() local 29 j = 0; in zero_run_search() 42 j++; in zero_run_search() 48 level = dataBlock[j]; in zero_run_search() 49 dataBlock[j] = 0; /* reset output */ in zero_run_search() 50 j++; in zero_run_search() 79 j++; in zero_run_search() 85 level = dataBlock[j]; in zero_run_search() 86 dataBlock[j] = 0; /* reset output */ in zero_run_search() 87 j++; in zero_run_search() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | ets_to_if2.cpp | 146 Word16 j = 0; in ets_to_if2() local 153 if2_output_ptr[j++] = (UWord8)(frame_type_3gpp) | in ets_to_if2() 161 if2_output_ptr[j] = in ets_to_if2() 163 if2_output_ptr[j] |= in ets_to_if2() 165 if2_output_ptr[j] |= in ets_to_if2() 167 if2_output_ptr[j] |= in ets_to_if2() 169 if2_output_ptr[j] |= in ets_to_if2() 171 if2_output_ptr[j] |= in ets_to_if2() 173 if2_output_ptr[j] |= in ets_to_if2() 175 if2_output_ptr[j++] |= in ets_to_if2() [all …]
|
D | ets_to_wmf.cpp | 171 Word16 j = 0; in ets_to_wmf() local 178 wmf_output_ptr[j++] = (UWord8)(frame_type_3gpp) & 0x0f; in ets_to_wmf() 182 wmf_output_ptr[j] = in ets_to_wmf() 184 wmf_output_ptr[j] |= in ets_to_wmf() 186 wmf_output_ptr[j] |= in ets_to_wmf() 188 wmf_output_ptr[j] |= in ets_to_wmf() 190 wmf_output_ptr[j] |= in ets_to_wmf() 192 wmf_output_ptr[j] |= in ets_to_wmf() 194 wmf_output_ptr[j] |= in ets_to_wmf() 196 wmf_output_ptr[j++] |= in ets_to_wmf() [all …]
|
D | s10_8pf.cpp | 569 Word16 i, j, k/*, m*/; in search_10and8i40() local 657 for (j = ipos[2]; j < L_CODE; j += step) in search_10and8i40() 660 p_temp2 = &rr[j][0]; in search_10and8i40() 662 alp1 = (s + (Word32) * (p_temp2 + j)) >> 1; in search_10and8i40() 669 ps1 = dn[j]; in search_10and8i40() 686 ia = j; in search_10and8i40() 724 for (j = ipos[4]; j < L_CODE; j += step) in search_10and8i40() 727 p_temp2 = &rr[j][0]; in search_10and8i40() 730 alp1 = alp0 + ((Word32) * (p_temp2 + j) << 11); in search_10and8i40() 745 ps1 = dn[j]; in search_10and8i40() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_mpeg2_stereo_proc.cpp | 236 int32 j; in pvmp3_mpeg2_stereo_proc() local 340 for (j = 0; j < 3; j++) in pvmp3_mpeg2_stereo_proc() 350 (scalefac_R->s[j][12]) = (scalefac_R->s[j][11]); in pvmp3_mpeg2_stereo_proc() 351 …scalefac_IIP_buffer[36 + j] = scalefac_IIP_buffer[33 + j]; /* legal/illegal in sfb 12 same as in … in pvmp3_mpeg2_stereo_proc() 356 sfbStart = 3 * mp3_sfBandIndex[sfreq].s[sfb] + j * sfbNo; in pvmp3_mpeg2_stereo_proc() 358 if ((uint32)(scalefac_R->s[j][sfb]) != scalefac_IIP_buffer[3*sfb + j]) in pvmp3_mpeg2_stereo_proc() 360 … pvmp3_st_intensity_ver2(xr, xl, io, scalefac_R->s[j][sfb], sfbStart, sfbNo); in pvmp3_mpeg2_stereo_proc() 377 for (j = 0; j < 3; j++) in pvmp3_mpeg2_stereo_proc() 385 i = 3 * mp3_sfBandIndex[sfreq].s[sfb] + (j + 1) * lines - 1; in pvmp3_mpeg2_stereo_proc() 421 (scalefac_R->s[j][12]) = (scalefac_R->s[j][11]); in pvmp3_mpeg2_stereo_proc() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | grp_data.c | 50 Word32 i, j; in groupShortData() local 111 for (j=1; j<groupLen[grp]; j++) { in groupShortData() 112 thresh = L_add(thresh, sfbThreshold->sfbShort[wnd+j][sfb]); in groupShortData() 126 for (j=1; j<groupLen[grp]; j++) { in groupShortData() 127 energy = L_add(energy, sfbEnergy->sfbShort[wnd+j][sfb]); in groupShortData() 141 for (j=1; j<groupLen[grp]; j++) { in groupShortData() 142 energy = L_add(energy, sfbEnergyMS->sfbShort[wnd+j][sfb]); in groupShortData() 156 for (j=1; j<groupLen[grp]; j++) { in groupShortData() 157 energy = L_add(energy, sfbSpreadedEnergy->sfbShort[wnd+j][sfb]); in groupShortData() 170 for (j = 0; j < groupLen[grp]; j++) { in groupShortData() [all …]
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | foreach.rs | 20 int i, j; 22 for (j = 0; j < dimY; j++) { 24 int v = rsGetElementAt_int(aRaw, i, j); 25 _RS_ASSERT(v == (i + j * dimX)); 41 int i, j; 43 for (j = 0; j < dimY; j++) { 45 int v = rsGetElementAt_int(aRaw, i, j); 46 _RS_ASSERT(v == (99 + i + j * dimX));
|