/frameworks/av/media/codecs/amrnb/enc/src/ |
D | cod_amr.cpp | 463 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 …]
|
D | dtx_enc.cpp | 239 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 …]
|
D | g_adapt.cpp | 159 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 …]
|
D | sid_sync.cpp | 258 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 …]
|
D | gain_q.cpp | 468 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 …]
|
D | pre_proc.cpp | 541 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 …]
|
/frameworks/av/media/codecs/amrnb/dec/src/ |
D | dtx_dec.cpp | 247 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 …]
|
D | dec_amr.cpp | 1334 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 …]
|
D | ec_gains.cpp | 316 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 …]
|
D | post_pro.cpp | 345 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 …]
|
D | bgnscd.cpp | 399 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/codecs/amrwb/dec/src/ |
D | dtx_decoder_amr_wb.cpp | 117 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 …]
|
D | pvamrwbdecoder.cpp | 155 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() 349 newDTXState = rx_amr_wb_dtx_handler(&(st->dtx_decSt), frame_type); in pvDecoder_AmrWb() 354 dtx_dec_amr_wb(&(st->dtx_decSt), exc2, newDTXState, isf, &prms); in pvDecoder_AmrWb() [all …]
|
/frameworks/av/media/codecs/amrwb/enc/src/ |
D | wb_vad.c | 179 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 …]
|
D | dtx.c | 46 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 …]
|
D | voAMRWBEnc.c | 77 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/codecs/amrnb/common/src/ |
D | vad1.cpp | 614 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 …]
|
D | lsp.cpp | 163 Word16 lsp_init(lspState **st) in lsp_init() argument 167 if (st == (lspState **) NULL) in lsp_init() 173 *st = NULL; in lsp_init() 195 *st = s; in lsp_init() 265 Word16 lsp_reset(lspState *st) in lsp_reset() argument 268 if (st == (lspState *) NULL) in lsp_reset() 275 memcpy(st->lsp_old, lsp_init_data, M*sizeof(Word16)); in lsp_reset() 278 memcpy(st->lsp_old_q, st->lsp_old, M*sizeof(Word16)); in lsp_reset() 281 Q_plsf_reset(st->qSt); in lsp_reset() 354 void lsp_exit(lspState **st) in lsp_exit() argument [all …]
|
/frameworks/native/libs/nativedisplay/surfacetexture/ |
D | ImageConsumer.cpp | 22 #define IMG_LOGE(x, ...) ALOGE("[%s] " x, st.mName.string(), ##__VA_ARGS__) 31 bool* outQueueEmpty, SurfaceTexture& st, in dequeueBuffer() argument 37 err = st.acquireBufferLocked(&item, 0); in dequeueBuffer() 42 int slot = st.mCurrentTexture; in dequeueBuffer() 45 *outDataspace = st.mCurrentDataSpace; in dequeueBuffer() 47 return st.mSlots[slot].mGraphicBuffer; in dequeueBuffer() 66 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() 73 if (st.mCurrentTexture != BufferItem::INVALID_BUFFER_SLOT) { in dequeueBuffer() 78 err = createFence(st.mUseFenceSync, &mImageSlots[slot].eglFence(), &display, in dequeueBuffer() 81 st.releaseBufferLocked(slot, st.mSlots[slot].mGraphicBuffer, EGL_NO_DISPLAY, in dequeueBuffer() [all …]
|
D | EGLConsumer.cpp | 41 #define EGC_LOGV(x, ...) ALOGV("[%s] " x, st.mName.string(), ##__VA_ARGS__) 42 #define EGC_LOGD(x, ...) ALOGD("[%s] " x, st.mName.string(), ##__VA_ARGS__) 43 #define EGC_LOGW(x, ...) ALOGW("[%s] " x, st.mName.string(), ##__VA_ARGS__) 44 #define EGC_LOGE(x, ...) ALOGE("[%s] " x, st.mName.string(), ##__VA_ARGS__) 88 status_t EGLConsumer::updateTexImage(SurfaceTexture& st) { in updateTexImage() argument 90 status_t err = checkAndUpdateEglStateLocked(st); in updateTexImage() 100 err = st.acquireBufferLocked(&item, 0); in updateTexImage() 105 glBindTexture(st.mTexTarget, st.mTexName); in updateTexImage() 114 err = updateAndReleaseLocked(item, nullptr, st); in updateTexImage() 117 glBindTexture(st.mTexTarget, st.mTexName); in updateTexImage() [all …]
|
D | surface_texture.cpp | 118 ANativeWindow* ASurfaceTexture_acquireANativeWindow(ASurfaceTexture* st) { in ASurfaceTexture_acquireANativeWindow() argument 119 sp<Surface> surface = new Surface(st->producer); in ASurfaceTexture_acquireANativeWindow() 125 void ASurfaceTexture_release(ASurfaceTexture* st) { in ASurfaceTexture_release() argument 126 delete st; in ASurfaceTexture_release() 129 int ASurfaceTexture_attachToGLContext(ASurfaceTexture* st, uint32_t tex) { in ASurfaceTexture_attachToGLContext() argument 130 return st->consumer->attachToContext(tex); in ASurfaceTexture_attachToGLContext() 133 int ASurfaceTexture_detachFromGLContext(ASurfaceTexture* st) { in ASurfaceTexture_detachFromGLContext() argument 134 return st->consumer->detachFromContext(); in ASurfaceTexture_detachFromGLContext() 137 int ASurfaceTexture_updateTexImage(ASurfaceTexture* st) { in ASurfaceTexture_updateTexImage() argument 138 return st->consumer->updateTexImage(); in ASurfaceTexture_updateTexImage() [all …]
|
/frameworks/base/core/jni/ |
D | android_util_XmlBlock.cpp | 83 ResXMLParser* st = new ResXMLParser(*osb); in android_content_XmlBlock_nativeCreateParseState() local 84 if (st == NULL) { in android_content_XmlBlock_nativeCreateParseState() 89 st->setSourceResourceId(res_id); in android_content_XmlBlock_nativeCreateParseState() 90 st->restart(); in android_content_XmlBlock_nativeCreateParseState() 92 return reinterpret_cast<jlong>(st); in android_content_XmlBlock_nativeCreateParseState() 98 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeNext() local 99 if (st == NULL) { in android_content_XmlBlock_nativeNext() 104 ResXMLParser::event_code_t code = st->next(); in android_content_XmlBlock_nativeNext() 132 ResXMLParser* st = reinterpret_cast<ResXMLParser*>(token); in android_content_XmlBlock_nativeGetNamespace() local 133 if (st == NULL) { in android_content_XmlBlock_nativeGetNamespace() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TypedProperties.java | 39 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/java/com/android/internal/os/ |
D | ProcessCpuTracker.java | 446 Stats st = curStatsIndex < NS ? allProcs.get(curStatsIndex) : null; in collectStats() 448 if (st != null && st.pid == pid) { in collectStats() 450 st.added = false; in collectStats() 451 st.working = false; in collectStats() 455 + " pid " + pid + ": " + st); in collectStats() 457 if (st.interesting) { in collectStats() 461 if (!Process.readProcFile(st.statFile.toString(), in collectStats() 471 if (utime == st.base_utime && stime == st.base_stime) { in collectStats() 472 st.rel_utime = 0; in collectStats() 473 st.rel_stime = 0; in collectStats() [all …]
|
/frameworks/base/native/android/ |
D | surface_texture.cpp | 22 ANativeWindow* ASurfaceTexture_acquireANativeWindow(ASurfaceTexture* st) { in ASurfaceTexture_acquireANativeWindow() argument 23 return ASurfaceTexture_routeAcquireANativeWindow(st); in ASurfaceTexture_acquireANativeWindow() 26 int ASurfaceTexture_attachToGLContext(ASurfaceTexture* st, uint32_t texName) { in ASurfaceTexture_attachToGLContext() argument 27 return ASurfaceTexture_routeAttachToGLContext(st, texName); in ASurfaceTexture_attachToGLContext() 30 int ASurfaceTexture_detachFromGLContext(ASurfaceTexture* st) { in ASurfaceTexture_detachFromGLContext() argument 31 return ASurfaceTexture_routeDetachFromGLContext(st); in ASurfaceTexture_detachFromGLContext() 34 void ASurfaceTexture_release(ASurfaceTexture* st) { in ASurfaceTexture_release() argument 35 return ASurfaceTexture_routeRelease(st); in ASurfaceTexture_release() 38 int ASurfaceTexture_updateTexImage(ASurfaceTexture* st) { in ASurfaceTexture_updateTexImage() argument 39 return ASurfaceTexture_routeUpdateTexImage(st); in ASurfaceTexture_updateTexImage() [all …]
|