Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 195) sorted by relevance

12345678

/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dcod_amr.cpp463 Word16 cod_amr_reset(cod_amrState *st) in cod_amr_reset() argument
467 if (st == (cod_amrState *) NULL) in cod_amr_reset()
477 st->new_speech = st->old_speech + L_TOTAL - L_FRAME; /* New speech */ in cod_amr_reset()
479 st->speech = st->new_speech - L_NEXT; /* Present frame */ in cod_amr_reset()
481 st->p_window = st->old_speech + L_TOTAL - L_WINDOW; /* For LPC window */ in cod_amr_reset()
482 st->p_window_12k2 = st->p_window - L_NEXT; /* EFR LPC window: no lookahead */ in cod_amr_reset()
486 st->wsp = st->old_wsp + PIT_MAX; in cod_amr_reset()
487 st->exc = st->old_exc + PIT_MAX + L_INTERPOL; in cod_amr_reset()
488 st->zero = st->ai_zero + MP1; in cod_amr_reset()
489 st->error = st->mem_err + M; in cod_amr_reset()
[all …]
Ddtx_enc.cpp239 Word16 dtx_enc_init(dtx_encState **st) in dtx_enc_init() argument
243 if (st == (dtx_encState **) NULL) in dtx_enc_init()
248 *st = NULL; in dtx_enc_init()
257 *st = s; in dtx_enc_init()
360 Word16 dtx_enc_reset(dtx_encState *st) in dtx_enc_reset() argument
364 if (st == (dtx_encState *) NULL) in dtx_enc_reset()
369 st->hist_ptr = 0; in dtx_enc_reset()
370 st->log_en_index = 0; in dtx_enc_reset()
371 st->init_lsf_vq_index = 0; in dtx_enc_reset()
372 st->lsp_index[0] = 0; in dtx_enc_reset()
[all …]
Dg_adapt.cpp159 Word16 gain_adapt_init(GainAdaptState **st) in gain_adapt_init() argument
163 if (st == (GainAdaptState **) NULL) in gain_adapt_init()
168 *st = NULL; in gain_adapt_init()
177 *st = s; in gain_adapt_init()
245 Word16 gain_adapt_reset(GainAdaptState *st) in gain_adapt_reset() argument
249 if (st == (GainAdaptState *) NULL) in gain_adapt_reset()
255 st->onset = 0; in gain_adapt_reset()
256 st->prev_alpha = 0; in gain_adapt_reset()
257 st->prev_gc = 0; in gain_adapt_reset()
261 st->ltpg_mem[i] = 0; in gain_adapt_reset()
[all …]
Dsid_sync.cpp258 Word16 sid_sync_reset(void *st) in sid_sync_reset() argument
260 sid_syncState *state = (sid_syncState *) st; in sid_sync_reset()
337 sid_syncState **st = (sid_syncState **) state; in sid_sync_exit() local
339 if (st == NULL || *st == NULL) in sid_sync_exit()
345 free(*st); in sid_sync_exit()
346 *st = NULL; in sid_sync_exit()
419 void sid_sync_set_handover_debt(sid_syncState *st, in sid_sync_set_handover_debt() argument
423 st->sid_handover_debt = debtFrames; in sid_sync_set_handover_debt()
500 sid_syncState *st = (sid_syncState *) state; in sid_sync() local
505 st->sid_update_counter--; in sid_sync()
[all …]
Dgain_q.cpp468 gainQuantState *st, /* i/o : State struct */ in gainQuant() argument
510 st->gain_idx_ptr = (*anap)++; in gainQuant()
514 memcpy(st->gc_predUnqSt.past_qua_en, in gainQuant()
515 st->gc_predSt.past_qua_en, in gainQuant()
517 memcpy(st->gc_predUnqSt.past_qua_en_MR122, in gainQuant()
518 st->gc_predSt.past_qua_en_MR122, in gainQuant()
525 &(st->gc_predUnqSt), in gainQuant()
528 &st->sf0_exp_gcode0, in gainQuant()
529 &st->sf0_frac_gcode0, in gainQuant()
544 st->sf0_frac_coeff, in gainQuant()
[all …]
Dpre_proc.cpp541 Pre_ProcessState *st, in Pre_Process() argument
551 x_n_2 = st->x1; in Pre_Process()
552 x_n_1 = st->x0; in Pre_Process()
561 L_tmp = ((Word32) st->y1_hi) * 7807; in Pre_Process()
562 L_tmp += (Word32)(((Word32) st->y1_lo * 7807) >> 15); in Pre_Process()
564 L_tmp += ((Word32) st->y2_hi) * (-3733); in Pre_Process()
565 st->y2_hi = st->y1_hi; in Pre_Process()
566 L_tmp += (Word32)(((Word32) st->y2_lo * (-3733)) >> 15); in Pre_Process()
567 st->y2_lo = st->y1_lo; in Pre_Process()
578 st->y1_hi = (Word16)(L_tmp >> 12); in Pre_Process()
[all …]
Dton_stab.cpp289 Word16 ton_stab_reset(tonStabState *st) in ton_stab_reset() argument
291 if (st == (tonStabState *) NULL) in ton_stab_reset()
298 st->count = 0; in ton_stab_reset()
299 Set_zero(st->gp, N_FRAME); /* Init Gp_Clipping */ in ton_stab_reset()
525 Word16 check_lsp(tonStabState *st, /* i/o : State struct */ in check_lsp() argument
582 st->count++; in check_lsp()
586 st->count = 0; in check_lsp()
590 if (st->count >= 12) in check_lsp()
592 st->count = 12; in check_lsp()
690 Word16 check_gp_clipping(tonStabState *st, /* i/o : State struct */ in check_gp_clipping() argument
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Ddtx_dec.cpp247 Word16 dtx_dec_reset(dtx_decState *st) in dtx_dec_reset() argument
251 if (st == (dtx_decState *) NULL) in dtx_dec_reset()
257 st->since_last_sid = 0; in dtx_dec_reset()
258 st->true_sid_period_inv = (1 << 13); in dtx_dec_reset()
260 st->log_en = 3500; in dtx_dec_reset()
261 st->old_log_en = 3500; in dtx_dec_reset()
264 st->L_pn_seed_rx = PN_INITIAL_SEED; in dtx_dec_reset()
267 st->lsp[0] = 30000; in dtx_dec_reset()
268 st->lsp[1] = 26000; in dtx_dec_reset()
269 st->lsp[2] = 21000; in dtx_dec_reset()
[all …]
Ddec_amr.cpp1334 Decoder_amrState *st, /* i/o : State variables */ in Decoder_amr() argument
1398 Flag *pOverflow = &(st->overflow); /* Overflow flag */ in Decoder_amr()
1402 newDTXState = rx_dtx_handler(&(st->dtxDecoderState), frame_type, pOverflow); in Decoder_amr()
1408 Decoder_amr_reset(st, MRDTX); in Decoder_amr()
1410 dtx_dec(&(st->dtxDecoderState), in Decoder_amr()
1411 st->mem_syn, in Decoder_amr()
1412 &(st->lsfState), in Decoder_amr()
1413 &(st->pred_state), in Decoder_amr()
1414 &(st->Cb_gain_averState), in Decoder_amr()
1421 st->lsfState.past_lsf_q, in Decoder_amr()
[all …]
Dec_gains.cpp316 ec_gain_codeState *st, /* i/o : State struct */ in ec_gain_code() argument
334 tmp = gmed_n(st->gbuf, 5); in ec_gain_code()
337 if (sub(tmp, st->past_gain_code, pOverflow) > 0) in ec_gain_code()
339 tmp = st->past_gain_code; in ec_gain_code()
453 ec_gain_codeState *st, /* i/o : State struct */ in ec_gain_code_update() argument
467 if (sub(*gain_code, st->prev_gc, pOverflow) > 0) in ec_gain_code_update()
469 *gain_code = st->prev_gc; in ec_gain_code_update()
472 st->prev_gc = *gain_code; in ec_gain_code_update()
476 st->past_gain_code = *gain_code; in ec_gain_code_update()
480 st->gbuf[i - 1] = st->gbuf[i]; in ec_gain_code_update()
[all …]
Dpost_pro.cpp345 Post_ProcessState *st, /* i/o : post process state */ in Post_Process() argument
365 x2 = st->x1; in Post_Process()
366 st->x1 = st->x0; in Post_Process()
367 st->x0 = *(p_signal); in Post_Process()
372 L_tmp = ((Word32) st->y1_hi) * c_a1; in Post_Process()
373 L_tmp += (((Word32) st->y1_lo) * c_a1) >> 15; in Post_Process()
374 L_tmp += ((Word32) st->y2_hi) * c_a2; in Post_Process()
375 L_tmp += (((Word32) st->y2_lo) * c_a2) >> 15; in Post_Process()
376 L_tmp += ((Word32) st->x0) * c_b0; in Post_Process()
377 L_tmp += ((Word32) st->x1) * c_b1; in Post_Process()
[all …]
Dbgnscd.cpp399 Word16 Bgn_scd(Bgn_scdState *st, /* i : State variables for bgn SCD */ in Bgn_scd() argument
448 if (st->frameEnergyHist[i] < frameEnergyMin) in Bgn_scd()
450 frameEnergyMin = st->frameEnergyHist[i]; in Bgn_scd()
472 maxEnergy = st->frameEnergyHist[0]; in Bgn_scd()
475 if (maxEnergy < st->frameEnergyHist[i]) in Bgn_scd()
477 maxEnergy = st->frameEnergyHist[i]; in Bgn_scd()
481 maxEnergyLastPart = st->frameEnergyHist[2*L_ENERGYHIST/3]; in Bgn_scd()
484 if (maxEnergyLastPart < st->frameEnergyHist[i]) in Bgn_scd()
486 maxEnergyLastPart = st->frameEnergyHist[i]; in Bgn_scd()
502 if ((st->bgHangover + 1) > 30) in Bgn_scd()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Ddtx_decoder_amr_wb.cpp117 int16 dtx_dec_amr_wb_reset(dtx_decState * st, const int16 isf_init[]) in dtx_dec_amr_wb_reset() argument
122 if (st == (dtx_decState *) NULL) in dtx_dec_amr_wb_reset()
127 st->since_last_sid = 0; in dtx_dec_amr_wb_reset()
128 st->true_sid_period_inv = (1 << 13); /* 0.25 in Q15 */ in dtx_dec_amr_wb_reset()
130 st->log_en = 3500; in dtx_dec_amr_wb_reset()
131 st->old_log_en = 3500; in dtx_dec_amr_wb_reset()
134 st->cng_seed = RANDOM_INITSEED; in dtx_dec_amr_wb_reset()
136 st->hist_ptr = 0; in dtx_dec_amr_wb_reset()
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()
[all …]
Dpvamrwbdecoder.cpp155 Decoder_State *st = &(((PV_AmrWbDec *)pt_st)->state); in pvDecoder_AmrWb_Init() local
161 dtx_dec_amr_wb_reset(&(st->dtx_decSt), isf_init); in pvDecoder_AmrWb_Init()
163 pvDecoder_AmrWb_Reset((void *) st, 1); in pvDecoder_AmrWb_Init()
165 *spd_state = (void *) st; in pvDecoder_AmrWb_Init()
174 void pvDecoder_AmrWb_Reset(void *st, int16 reset_all) in pvDecoder_AmrWb_Reset() argument
180 dec_state = (Decoder_State *) st; in pvDecoder_AmrWb_Reset()
293 Decoder_State *st; in pvDecoder_AmrWb() local
337 st = (Decoder_State *) spd_state; in pvDecoder_AmrWb()
346 newDTXState = rx_amr_wb_dtx_handler(&(st->dtx_decSt), frame_type); in pvDecoder_AmrWb()
351 dtx_dec_amr_wb(&(st->dtx_decSt), exc2, newDTXState, isf, &prms); in pvDecoder_AmrWb()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dwb_vad.c179 VadVars * st, /* i/o : State struct */ in filter_bank() argument
196 filter5(&tmp_buf[2 * i], &tmp_buf[2 * i + 1], st->a_data5[0]); in filter_bank()
200 filter5(&tmp_buf[4 * i], &tmp_buf[4 * i + 2], st->a_data5[1]); in filter_bank()
201 filter5(&tmp_buf[4 * i + 1], &tmp_buf[4 * i + 3], st->a_data5[2]); in filter_bank()
205 filter5(&tmp_buf[8 * i], &tmp_buf[8 * i + 4], st->a_data5[3]); in filter_bank()
206 filter5(&tmp_buf[8 * i + 2], &tmp_buf[8 * i + 6], st->a_data5[4]); in filter_bank()
207 filter3(&tmp_buf[8 * i + 3], &tmp_buf[8 * i + 7], &st->a_data3[0]); in filter_bank()
211 filter3(&tmp_buf[16 * i + 0], &tmp_buf[16 * i + 8], &st->a_data3[1]); in filter_bank()
212 filter3(&tmp_buf[16 * i + 4], &tmp_buf[16 * i + 12], &st->a_data3[2]); in filter_bank()
213 filter3(&tmp_buf[16 * i + 6], &tmp_buf[16 * i + 14], &st->a_data3[3]); in filter_bank()
[all …]
Ddtx.c46 dtx_encState * st
50 dtx_encState * st
72 Word16 dtx_enc_init(dtx_encState ** st, Word16 isf_init[], VO_MEM_OPERATOR *pMemOP) in dtx_enc_init() argument
76 if (st == (dtx_encState **) NULL) in dtx_enc_init()
81 *st = NULL; in dtx_enc_init()
90 *st = s; in dtx_enc_init()
99 Word16 dtx_enc_reset(dtx_encState * st, Word16 isf_init[]) in dtx_enc_reset() argument
103 if (st == (dtx_encState *) NULL) in dtx_enc_reset()
108 st->hist_ptr = 0; in dtx_enc_reset()
109 st->log_en_index = 0; in dtx_enc_reset()
[all …]
DvoAMRWBEnc.c77 Coder_State * st /* (i/o) : State structure */
81 void Reset_encoder(void *st, Word16 reset_all) in Reset_encoder() argument
85 cod_state = (Coder_State *) st; in Reset_encoder()
161 Coder_State *st; in coder() local
215 st = (Coder_State *) spe_state; in coder()
244 Copy(st->old_speech, old_speech, L_TOTAL - L_FRAME); in coder()
245 Copy(st->old_wsp, old_wsp, PIT_MAX / OPL_DECIM); in coder()
246 Copy(st->old_exc, old_exc, PIT_MAX + L_INTERPOL); in coder()
256 Decim_12k8(speech16k, L_FRAME16k, new_speech, st->mem_decim); in coder()
259 Copy(st->mem_decim, code, 2 * L_FILT16k); in coder()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dvad1.cpp614 vadState1 *st, /* i/o : State struct */ in filter_bank() argument
625 first_filter_stage(in, tmp_buf, st->a_data5[0], pOverflow); in filter_bank()
629 filter5(&tmp_buf[4*i], &tmp_buf[4*i+2], st->a_data5[1], pOverflow); in filter_bank()
630 filter5(&tmp_buf[4*i+1], &tmp_buf[4*i+3], st->a_data5[2], pOverflow); in filter_bank()
634 filter3(&tmp_buf[8*i+0], &tmp_buf[8*i+4], &st->a_data3[0], pOverflow); in filter_bank()
635 filter3(&tmp_buf[8*i+2], &tmp_buf[8*i+6], &st->a_data3[1], pOverflow); in filter_bank()
636 filter3(&tmp_buf[8*i+3], &tmp_buf[8*i+7], &st->a_data3[4], pOverflow); in filter_bank()
641 filter3(&tmp_buf[16*i+0], &tmp_buf[16*i+8], &st->a_data3[2], pOverflow); in filter_bank()
642 filter3(&tmp_buf[16*i+4], &tmp_buf[16*i+12], &st->a_data3[3], pOverflow); in filter_bank()
648 level[8] = level_calculation(tmp_buf, &st->sub_level[8], FRAME_LEN / 4 - 8, in filter_bank()
[all …]
Dlsp.cpp163 Word16 lsp_init(lspState **st) in lsp_init() argument
167 if (st == (lspState **) NULL) in lsp_init()
173 *st = NULL; in lsp_init()
193 *st = s; in lsp_init()
263 Word16 lsp_reset(lspState *st) in lsp_reset() argument
266 if (st == (lspState *) NULL) in lsp_reset()
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()
279 Q_plsf_reset(st->qSt); in lsp_reset()
352 void lsp_exit(lspState **st) in lsp_exit() argument
[all …]
/frameworks/base/core/java/com/android/internal/os/
DProcessCpuTracker.java426 Stats st = curStatsIndex < NS ? allProcs.get(curStatsIndex) : null; in collectStats()
428 if (st != null && st.pid == pid) { in collectStats()
430 st.added = false; in collectStats()
431 st.working = false; in collectStats()
435 + " pid " + pid + ": " + st); in collectStats()
437 if (st.interesting) { in collectStats()
441 if (!Process.readProcFile(st.statFile.toString(), in collectStats()
451 if (utime == st.base_utime && stime == st.base_stime) { in collectStats()
452 st.rel_utime = 0; in collectStats()
453 st.rel_stime = 0; in collectStats()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java39 StreamTokenizer st = new StreamTokenizer(r); in initTokenizer() local
42 st.resetSyntax(); in initTokenizer()
50 st.wordChars('0', '9'); in initTokenizer()
51 st.wordChars('A', 'Z'); in initTokenizer()
52 st.wordChars('a', 'z'); in initTokenizer()
53 st.wordChars('_', '_'); in initTokenizer()
54 st.wordChars('$', '$'); in initTokenizer()
55 st.wordChars('.', '.'); in initTokenizer()
56 st.wordChars('-', '-'); in initTokenizer()
57 st.wordChars('+', '+'); in initTokenizer()
[all …]
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp83 ResXMLParser* st = new ResXMLParser(*osb); in android_content_XmlBlock_nativeCreateParseState() local
84 if (st == NULL) { in android_content_XmlBlock_nativeCreateParseState()
89 st->restart(); in android_content_XmlBlock_nativeCreateParseState()
91 return reinterpret_cast<jlong>(st); in android_content_XmlBlock_nativeCreateParseState()
97 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeNext() local
98 if (st == NULL) { in android_content_XmlBlock_nativeNext()
103 ResXMLParser::event_code_t code = st->next(); in android_content_XmlBlock_nativeNext()
131 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetNamespace() local
132 if (st == NULL) { in android_content_XmlBlock_nativeGetNamespace()
136 return static_cast<jint>(st->getElementNamespaceID()); in android_content_XmlBlock_nativeGetNamespace()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DPhoneWindow.java580 public final boolean preparePanel(PanelFeatureState st, KeyEvent event) { in preparePanel() argument
586 if (st.isPrepared) { in preparePanel()
590 if ((mPreparedPanel != null) && (mPreparedPanel != st)) { in preparePanel()
598 st.createdPanelView = cb.onCreatePanelView(st.featureId); in preparePanel()
602 (st.featureId == FEATURE_OPTIONS_PANEL || st.featureId == FEATURE_ACTION_BAR); in preparePanel()
610 if (st.createdPanelView == null) { in preparePanel()
612 if (st.menu == null || st.refreshMenuContent) { in preparePanel()
613 if (st.menu == null) { in preparePanel()
614 if (!initializePanelMenu(st) || (st.menu == null)) { in preparePanel()
623 mDecorContentParent.setMenu(st.menu, mActionMenuPresenterCallback); in preparePanel()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDelegateImplV9.java342 PanelFeatureState st = getPanelState(FEATURE_OPTIONS_PANEL, false);
343 if (!isDestroyed() && (st == null || st.menu == null)) {
649 PanelFeatureState st = getPanelState(featureId, true);
650 if (st.isOpen) {
651 closePanel(st, false);
929 PanelFeatureState st = getPanelState(FEATURE_OPTIONS_PANEL, true);
930 preparePanel(st, ev);
931 handled = performPanelShortcut(st, ev.getKeyCode(), ev, Menu.FLAG_PERFORM_NO_CLOSE);
932 st.isPrepared = false;
965 PanelFeatureState st = getPanelState(Window.FEATURE_OPTIONS_PANEL, false);
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DGradientDrawable.java702 final GradientState st = mGradientState; in draw() local
710 final boolean useLayer = haveStroke && haveFill && st.mShape != LINE && in draw()
724 mLayerPaint.setDither(st.mDither); in draw()
742 mFillPaint.setDither(st.mDither); in draw()
744 if (colorFilter != null && st.mSolidColors == null) { in draw()
749 mStrokePaint.setDither(st.mDither); in draw()
754 switch (st.mShape) { in draw()
756 if (st.mRadiusArray != null) { in draw()
762 } else if (st.mRadius > 0.0f) { in draw()
768 float rad = Math.min(st.mRadius, in draw()
[all …]

12345678