/frameworks/native/services/surfaceflinger/ |
D | Transform.cpp | 126 mat33& M(mMatrix); in set() local 127 M[0][0] = a; M[1][0] = b; in set() 128 M[0][1] = c; M[1][1] = d; in set() 129 M[0][2] = 0; M[1][2] = 0; in set() 150 mat33& M(H.mMatrix); in set() local 151 M[0][0] = -1; in set() 152 M[2][0] = w; in set() 158 mat33& M(V.mMatrix); in set() local 159 M[1][1] = -1; in set() 160 M[2][1] = h; in set() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
D | isf_extrapolation.cpp | 119 int16 IsfDiff[M - 2]; in isf_extrapolation() 126 HfIsf[M16k - 1] = HfIsf[M - 1]; in isf_extrapolation() 129 for (i = 1; i < (M - 1); i++) in isf_extrapolation() 136 for (i = 3; i < (M - 1); i++) in isf_extrapolation() 146 for (i = 0; i < (M - 2); i++) in isf_extrapolation() 154 for (i = 0; i < (M - 2); i++) in isf_extrapolation() 159 for (i = 7; i < (M - 2); i++) in isf_extrapolation() 169 for (i = 7; i < (M - 2); i++) in isf_extrapolation() 179 for (i = 7; i < (M - 2); i++) in isf_extrapolation() 206 for (i = M - 1; i < (M16k - 1); i++) in isf_extrapolation() [all …]
|
D | e_pv_amrwbdec.h | 89 int16 ispold[M]; /* old isp (immittance spectral pairs)*/ 90 int16 isfold[M]; /* old isf (frequency domain) */ 91 int16 isf_buf[L_MEANBUF * M]; /* isf buffer(frequency domain) */ 92 int16 past_isfq[M]; /* past isf quantizer */ 97 int16 mem_syn_hi[M]; /* modified synthesis memory (MSB) */ 98 int16 mem_syn_lo[M]; /* modified synthesis memory (LSB) */ 127 int16 ScratchMem[L_SUBFR + L_SUBFR16k + ((L_SUBFR + M + M16k +1)<<1) + \ 128 (2*L_FRAME + 1) + PIT_MAX + L_INTERPOL + NB_SUBFR*(M+1) \ 129 + 3*(M+L_SUBFR) + M16k];
|
D | dtx_decoder_amr_wb.cpp | 139 pv_memcpy((void *)st->isf, (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset() 141 pv_memcpy((void *)st->isf_old, (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset() 145 pv_memcpy((void *)&st->isf_hist[i * M], (void *)isf_init, M*sizeof(*isf_init)); in dtx_dec_amr_wb_reset() 210 int32 L_isf[M], L_log_en_int, level32, ener32; in dtx_dec_amr_wb() 230 …pv_memcpy((void *)&st->isf_hist[ptr * M], (void *)&st->isf_hist[st->hist_ptr * M], M*sizeof(*st->i… in dtx_dec_amr_wb() 236 for (i = 0; i < M; i++) in dtx_dec_amr_wb() 247 for (j = 0; j < M; j++) in dtx_dec_amr_wb() 249 L_isf[j] = add_int32(L_isf[j], (int32)(st->isf_hist[i * M + j])); in dtx_dec_amr_wb() 263 for (j = 0; j < M; j++) in dtx_dec_amr_wb() 275 pv_memcpy((void *)st->isf_old, (void *)st->isf, M*sizeof(*st->isf)); in dtx_dec_amr_wb() [all …]
|
D | synthesis_amr_wb.cpp | 163 int16 *synth_lo = &ScratchMem[M + L_SUBFR]; in synthesis_amr_wb() 164 int16 *synth = &synth_lo[M + L_SUBFR]; in synthesis_amr_wb() 180 M*sizeof(*synth_hi)); in synthesis_amr_wb() 184 M*sizeof(*synth_lo)); in synthesis_amr_wb() 186 Syn_filt_32(Aq, M, exc, Q_new, synth_hi + M, synth_lo + M, L_SUBFR); in synthesis_amr_wb() 190 M*sizeof(*st->mem_syn_hi)); in synthesis_amr_wb() 194 M*sizeof(*st->mem_syn_lo)); in synthesis_amr_wb() 196 deemphasis_32(synth_hi + M, in synthesis_amr_wb() 197 synth_lo + M, in synthesis_amr_wb() 399 weight_amrwb_lpc(Aq, Ap, 19661, M); /* fac=0.6 */ in synthesis_amr_wb() [all …]
|
D | qpisf_2s.cpp | 140 int16 ref_isf[M]; in Dpisf_2s_46b() 178 for (i = 0; i < M; i++) in Dpisf_2s_46b() 182 isf_buf[j * M + i] = isf_buf[(j - 1) * M + i]; in Dpisf_2s_46b() 190 for (i = 0; i < M; i++) in Dpisf_2s_46b() 195 L_tmp = mac_16by16_to_int32(L_tmp, isf_buf[j * M + i], 8192); in Dpisf_2s_46b() 236 int16 ref_isf[M]; in Dpisf_2s_36b() 272 for (i = 0; i < M; i++) in Dpisf_2s_36b() 276 isf_buf[j * M + i] = isf_buf[(j - 1) * M + i]; in Dpisf_2s_36b() 284 for (i = 0; i < M; i++) in Dpisf_2s_36b() 289 L_tmp = mac_16by16_to_int32(L_tmp, isf_buf[j * M + i], 8192); in Dpisf_2s_36b()
|
D | interpolate_isp.cpp | 94 #define MP1 (M+1) 123 int16 isp[M]; in interpolate_isp() 131 for (i = 0; i < M; i++) in interpolate_isp() 137 Isp_Az(isp, Az, M, 0); in interpolate_isp() 143 Isp_Az(isp_new, Az, M, 0); in interpolate_isp()
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
D | dtx_dec.cpp | 98 static const Word16 lsf_hist_mean_scale[M] = 308 Copy(&st->lsf_hist[0], &st->lsf_hist[M*i], M); in dtx_dec_reset() 310 memset(st->lsf_hist_mean, 0, sizeof(Word16)*M*DTX_HIST_SIZE); in dtx_dec_reset() 859 Word16 lsp_int[M]; in dtx_dec() 863 Word16 acoeff[M + 1]; in dtx_dec() 864 Word16 refl[M]; in dtx_dec() 876 Word16 lsf_int[M]; in dtx_dec() 877 Word16 lsf_int_variab[M]; in dtx_dec() 878 Word16 lsp_int_variab[M]; in dtx_dec() 879 Word16 acoeff_variab[M + 1]; in dtx_dec() [all …]
|
D | pstfilt.cpp | 127 static const Word16 gamma3_MR122[M] = 133 static const Word16 gamma3[M] = 138 static const Word16 gamma4_MR122[M] = 144 static const Word16 gamma4[M] = 246 memset(state->mem_syn_pst, 0, sizeof(Word16)*M); in Post_Filter_reset() 248 memset(state->synth_buf, 0, sizeof(Word16)*(L_FRAME + M)); in Post_Filter_reset() 459 Word16 *syn_work = &st->synth_buf[M]; in Post_Filter() 493 Copy(Ap3, h, M + 1); in Post_Filter() 494 memset(&h[M + 1], 0, sizeof(Word16)*(L_H - M - 1)); in Post_Filter() 495 Syn_filt(Ap4, h, h, L_H, &h[M + 1], 0); in Post_Filter() [all …]
|
D | d_plsf_3.cpp | 176 Word16 lsf1_r[M]; in D_plsf_3() 177 Word16 lsf1_q[M]; in D_plsf_3() 183 for (i = 0; i < M; i++) in D_plsf_3() 208 for (i = 0; i < M; i++) in D_plsf_3() 234 for (i = 0; i < M; i++) in D_plsf_3() 357 for (i = 0; i < M; i++) in D_plsf_3() 382 for (i = 0; i < M; i++) in D_plsf_3() 407 M, in D_plsf_3() 413 M); in D_plsf_3() 420 M, in D_plsf_3() [all …]
|
D | d_plsf_5.cpp | 317 Word16 lsf1_r[M]; in D_plsf_5() 318 Word16 lsf2_r[M]; in D_plsf_5() 319 Word16 lsf1_q[M]; in D_plsf_5() 320 Word16 lsf2_q[M]; in D_plsf_5() 326 for (i = 0; i < M; i++) in D_plsf_5() 475 for (i = 0; i < M; i++) in D_plsf_5() 510 M, in D_plsf_5() 516 M, in D_plsf_5() 522 M); in D_plsf_5() 529 M, in D_plsf_5() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
D | cod_main.h | 41 Word16 mem_levinson[M + 2]; /* levinson routine memory */ 42 Word16 ispold[M]; /* old isp (immittance spectral pairs) */ 43 Word16 ispold_q[M]; /* quantized old isp */ 44 Word16 past_isfq[M]; /* past isf quantizer */ 48 Word16 mem_syn[M]; /* synthesis memory */ 67 Word16 isfold[M]; /* old isf (frequency domain) */ 69 Word16 mem_syn_hi[M]; /* modified synthesis memory (MSB) */ 70 Word16 mem_syn_lo[M]; /* modified synthesis memory (LSB) */ 75 Word16 mem_syn_hf[M]; /* HF synthesis memory */
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | dtx_enc.cpp | 379 memcpy(&st->lsp_hist[i * M], lsp_init_data, M*sizeof(Word16)); in dtx_enc_reset() 383 memset(st->log_en_hist, 0, sizeof(Word16)*M); in dtx_enc_reset() 677 Word16 lsf[M]; in dtx_enc() 678 Word16 lsp[M]; in dtx_enc() 679 Word16 lsp_q[M]; in dtx_enc() 680 Word32 L_lsp[M]; in dtx_enc() 690 for (i = M - 1; i >= 0; i--) in dtx_enc() 708 for (j = M - 1; j >= 0; j--) in dtx_enc() 711 (Word32)(st->lsp_hist[i * M + j]), in dtx_enc() 725 for (j = M - 1; j >= 0; j--) in dtx_enc() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
D | int_lpc.cpp | 186 Word16 lsp[M]; in Int_lpc_1and3() 194 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3() 217 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3() 323 Word16 lsp[M]; in Int_lpc_1and3_2() 331 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3_2() 342 for (i = M >> 1; i != 0; i--) in Int_lpc_1and3_2() 446 Word16 lsp[M]; in Int_lpc_1to3() 448 for (i = 0; i < M; i++) in Int_lpc_1to3() 465 for (i = 0; i < M; i++) in Int_lpc_1to3() 479 for (i = 0; i < M; i++) in Int_lpc_1to3() [all …]
|
D | q_plsf_3.cpp | 1017 Word16 lsf1[M]; in Q_plsf_3() 1018 Word16 wf1[M]; in Q_plsf_3() 1019 Word16 lsf_p[M]; in Q_plsf_3() 1020 Word16 lsf_r1[M]; in Q_plsf_3() 1021 Word16 lsf1_q[M]; in Q_plsf_3() 1026 Word16 temp_r1[M]; in Q_plsf_3() 1027 Word16 temp_p[M]; in Q_plsf_3() 1035 M, in Q_plsf_3() 1048 for (i = 0; i < M; i++) in Q_plsf_3() 1068 for (i = 0; i < M; i++) in Q_plsf_3() [all …]
|
D | q_plsf_5.cpp | 605 Word16 lsf1[M]; in Q_plsf_5() 606 Word16 lsf2[M]; in Q_plsf_5() 607 Word16 wf1[M]; in Q_plsf_5() 608 Word16 wf2[M]; in Q_plsf_5() 609 Word16 lsf_p[M]; in Q_plsf_5() 610 Word16 lsf_r1[M]; in Q_plsf_5() 611 Word16 lsf_r2[M]; in Q_plsf_5() 612 Word16 lsf1_q[M]; in Q_plsf_5() 613 Word16 lsf2_q[M]; in Q_plsf_5() 623 Lsp_lsf(lsp1, lsf1, M, pOverflow); in Q_plsf_5() [all …]
|
D | syn_filt.cpp | 261 Word16 tmp[2*M]; /* This is usually done by memory allocation (lg+M) */ in Syn_filt() 273 memcpy(yy, mem, M*sizeof(Word16)); in Syn_filt() 275 yy = yy + M; in Syn_filt() 283 for (i = M >> 1; i != 0; i--) in Syn_filt() 291 for (j = (M >> 1) - 2; j != 0; j--) in Syn_filt() 340 p_yy1 = &y[M-1]; in Syn_filt() 342 for (i = (lg - M) >> 1; i != 0; i--) in Syn_filt() 350 for (j = (M >> 1) - 2; j != 0; j--) in Syn_filt() 395 memcpy(mem, &y[lg-M], M*sizeof(Word16)); in Syn_filt()
|
D | lsp.cpp | 273 memcpy(st->lsp_old, lsp_init_data, M*sizeof(Word16)); in lsp_reset() 276 memcpy(st->lsp_old_q, st->lsp_old, M*sizeof(Word16)); in lsp_reset() 450 Word16 lsp_new_q[M]; /* LSPs at 4th subframe */ in lsp() 451 Word16 lsp_mid[M], lsp_mid_q[M]; /* LSPs at 2nd subframe */ in lsp() 523 memcpy(st->lsp_old, lsp_new, M*sizeof(Word16)); in lsp() 527 memcpy(st->lsp_old_q, lsp_new_q, M*sizeof(Word16)); in lsp()
|
/frameworks/compile/slang/ |
D | llvm-rs-as.cpp | 71 static void WriteOutputFile(const Module *M) { in WriteOutputFile() argument 101 llvm_2_9::WriteBitcodeToFile(M, Out->os()); in WriteOutputFile() 104 llvm_2_9_func::WriteBitcodeToFile(M, Out->os()); in WriteOutputFile() 107 llvm_3_2::WriteBitcodeToFile(M, Out->os()); in WriteOutputFile() 110 llvm::WriteBitcodeToFile(M, Out->os()); in WriteOutputFile() 129 OwningPtr<Module> M(ParseAssemblyFile(InputFilename, Err, Context)); in main() local 130 if (M.get() == 0) { in main() 137 if (verifyModule(*M.get(), ReturnStatusAction, &Err)) { in main() 145 if (DumpAsm) errs() << "Here's the assembly:\n" << *M.get(); in main() 148 WriteOutputFile(M.get()); in main()
|
/frameworks/compile/libbcc/tools/bcc_strip_attr/ |
D | bcc_strip_attr.cpp | 71 virtual bool runOnModule(Module &M) { in runOnModule() argument 73 for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) { in runOnModule() 116 std::auto_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context)); in main() local 117 if (M.get() == 0) { in main() 126 PM.run(*M.get()); in main() 136 if (verifyModule(*M)) { in main() 142 Out.os() << *M; in main() 144 WriteBitcodeToFile(M.get(), Out.os()); in main()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | dtx.c | 114 Copy(isf_init, &st->isf_hist[i * M], M); in dtx_enc_reset() 160 …Word16 isf[M], /* o : CN ISF vector … in dtx_enc() argument 169 Word32 L_isf[M], ener32, level32; in dtx_enc() 175 for (i = 0; i < M; i++) in dtx_enc() 189 for (j = 0; j < M; j++) in dtx_enc() 310 Copy(isf_new, &st->isf_hist[st->hist_ptr * M], M); in dtx_buffer() 386 Word16 isf_tmp[2 * M]; in aver_isf_history() 395 for (i = 0; i < M; i++) in aver_isf_history() 397 isf_tmp[k * M + i] = isf_old[indices[k] * M + i]; in aver_isf_history() 398 isf_old[indices[k] * M + i] = isf_old[indices[2] * M + i]; in aver_isf_history() [all …]
|
D | voAMRWBEnc.c | 50 static Word16 isp_init[M] = 56 static Word16 isf_init[M] = 85 Set_zero(cod_state->mem_syn, M); in Reset_encoder() 86 Set_zero(cod_state->past_isfq, M); in Reset_encoder() 105 Copy(isp_init, cod_state->ispold, M); in Reset_encoder() 106 Copy(isp_init, cod_state->ispold_q, M); in Reset_encoder() 125 Set_zero(cod_state->mem_syn_hf, M); in Reset_encoder() 126 Set_zero(cod_state->mem_syn_hi, M); in Reset_encoder() 127 Set_zero(cod_state->mem_syn_lo, M); in Reset_encoder() 131 Copy(isf_init, cod_state->isfold, M); in Reset_encoder() [all …]
|
D | int_lpc.c | 29 #define MP1 (M+1) 41 Word16 isp[M]; in Int_isp() 49 for (i = 0; i < M; i++) in Int_isp() 55 Isp_Az(isp, Az, M, 0); in Int_isp() 60 Isp_Az(isp_new, Az, M, 0); in Int_isp()
|
D | levinson.c | 95 #define M 16 macro 96 #define NC (M/2) 119 Word16 Ah[M + 1], Al[M + 1]; /* LPC coef. in double prec. */ in Levinson() 120 Word16 Anh[M + 1], Anl[M + 1]; /* LPC coef.for next iteration in double prec. */ in Levinson() 126 old_rc = mem + M; in Levinson() 163 for (i = 2; i <= M; i++) in Levinson() 190 for (j = 0; j < M; j++) in Levinson() 238 for (i = 1; i <= M; i++) in Levinson()
|
D | az_isp.c | 54 #define M 16 macro 55 #define NC (M/2) 90 f1[i] = vo_round(t0 + (a[M - i] << 15)); /* =(a[i]+a[M-i])/2 */ in Az_isp() 91 f2[i] = vo_round(t0 - (a[M - i] << 15)); /* =(a[i]-a[M-i])/2 */ in Az_isp() 115 while ((nf < M - 1) && (j < GRID_POINTS)) in Az_isp() 182 if(nf < M - 1) in Az_isp() 184 for (i = 0; i < M; i++) in Az_isp() 190 isp[M - 1] = a[M] << 3; /* From Q12 to Q15 with saturation */ in Az_isp()
|