Lines Matching refs:h_sbrCodeEnvelope
404 SBR_CODE_ENVELOPE *h_sbrCodeEnvelope, in FDKsbrEnc_codeEnvelope() argument
420 INT offset = h_sbrCodeEnvelope->offset; in FDKsbrEnc_codeEnvelope()
431 tmp2 = h_sbrCodeEnvelope->dF_edge_1stEnv >> (DFRACT_BITS - 16); in FDKsbrEnc_codeEnvelope()
432 tmp3 = (FIXP_DBL)fMult(h_sbrCodeEnvelope->dF_edge_incr, in FDKsbrEnc_codeEnvelope()
433 ((FIXP_DBL)h_sbrCodeEnvelope->dF_edge_incr_fac) << 15); in FDKsbrEnc_codeEnvelope()
438 codeBookScfLavLevelTime = h_sbrCodeEnvelope->codeBookScfLavLevelTime; in FDKsbrEnc_codeEnvelope()
439 codeBookScfLavLevelFreq = h_sbrCodeEnvelope->codeBookScfLavLevelFreq; in FDKsbrEnc_codeEnvelope()
440 codeBookScfLavBalanceTime = h_sbrCodeEnvelope->codeBookScfLavBalanceTime; in FDKsbrEnc_codeEnvelope()
441 codeBookScfLavBalanceFreq = h_sbrCodeEnvelope->codeBookScfLavBalanceFreq; in FDKsbrEnc_codeEnvelope()
442 hufftableLevelTimeL = h_sbrCodeEnvelope->hufftableLevelTimeL; in FDKsbrEnc_codeEnvelope()
443 hufftableBalanceTimeL = h_sbrCodeEnvelope->hufftableBalanceTimeL; in FDKsbrEnc_codeEnvelope()
444 hufftableLevelFreqL = h_sbrCodeEnvelope->hufftableLevelFreqL; in FDKsbrEnc_codeEnvelope()
445 hufftableBalanceFreqL = h_sbrCodeEnvelope->hufftableBalanceFreqL; in FDKsbrEnc_codeEnvelope()
447 codeBookScfLavLevelTime = h_sbrCodeEnvelope->codeBookScfLavTime; in FDKsbrEnc_codeEnvelope()
448 codeBookScfLavLevelFreq = h_sbrCodeEnvelope->codeBookScfLavFreq; in FDKsbrEnc_codeEnvelope()
449 codeBookScfLavBalanceTime = h_sbrCodeEnvelope->codeBookScfLavTime; in FDKsbrEnc_codeEnvelope()
450 codeBookScfLavBalanceFreq = h_sbrCodeEnvelope->codeBookScfLavFreq; in FDKsbrEnc_codeEnvelope()
451 hufftableLevelTimeL = h_sbrCodeEnvelope->hufftableTimeL; in FDKsbrEnc_codeEnvelope()
452 hufftableBalanceTimeL = h_sbrCodeEnvelope->hufftableTimeL; in FDKsbrEnc_codeEnvelope()
453 hufftableLevelFreqL = h_sbrCodeEnvelope->hufftableFreqL; in FDKsbrEnc_codeEnvelope()
454 hufftableBalanceFreqL = h_sbrCodeEnvelope->hufftableFreqL; in FDKsbrEnc_codeEnvelope()
463 if (h_sbrCodeEnvelope->deltaTAcrossFrames == 0) h_sbrCodeEnvelope->upDate = 0; in FDKsbrEnc_codeEnvelope()
466 if (headerActive) h_sbrCodeEnvelope->upDate = 0; in FDKsbrEnc_codeEnvelope()
470 no_of_bands = h_sbrCodeEnvelope->nSfb[FREQ_RES_HIGH]; in FDKsbrEnc_codeEnvelope()
472 no_of_bands = h_sbrCodeEnvelope->nSfb[FREQ_RES_LOW]; in FDKsbrEnc_codeEnvelope()
480 delta_F_bits = h_sbrCodeEnvelope->start_bits_balance; in FDKsbrEnc_codeEnvelope()
482 delta_F_bits = h_sbrCodeEnvelope->start_bits; in FDKsbrEnc_codeEnvelope()
484 if (h_sbrCodeEnvelope->upDate != 0) { in FDKsbrEnc_codeEnvelope()
485 delta_T[0] = (curr_nrg - h_sbrCodeEnvelope->sfb_nrg_prev[0]) >> in FDKsbrEnc_codeEnvelope()
493 mapLowResEnergyVal(curr_nrg, h_sbrCodeEnvelope->sfb_nrg_prev, offset, 0, in FDKsbrEnc_codeEnvelope()
533 if (h_sbrCodeEnvelope->upDate != 0) { in FDKsbrEnc_codeEnvelope()
536 h_sbrCodeEnvelope in FDKsbrEnc_codeEnvelope()
541 mapLowResEnergyVal(curr_nrg, h_sbrCodeEnvelope->sfb_nrg_prev, offset, in FDKsbrEnc_codeEnvelope()
544 if (h_sbrCodeEnvelope->upDate != 0) { in FDKsbrEnc_codeEnvelope()
557 use_dT = (h_sbrCodeEnvelope->upDate != 0 && (delta_F_bits > tmp_bits)); in FDKsbrEnc_codeEnvelope()
559 use_dT = (delta_T_bits < delta_F_bits && h_sbrCodeEnvelope->upDate != 0); in FDKsbrEnc_codeEnvelope()
565 h_sbrCodeEnvelope->upDate = 0; in FDKsbrEnc_codeEnvelope()
570 h_sbrCodeEnvelope->upDate = 1; in FDKsbrEnc_codeEnvelope()
585 INT FDKsbrEnc_InitSbrCodeEnvelope(HANDLE_SBR_CODE_ENVELOPE h_sbrCodeEnvelope, in FDKsbrEnc_InitSbrCodeEnvelope() argument
589 FDKmemclear(h_sbrCodeEnvelope, sizeof(SBR_CODE_ENVELOPE)); in FDKsbrEnc_InitSbrCodeEnvelope()
591 h_sbrCodeEnvelope->deltaTAcrossFrames = deltaTAcrossFrames; in FDKsbrEnc_InitSbrCodeEnvelope()
592 h_sbrCodeEnvelope->dF_edge_1stEnv = dF_edge_1stEnv; in FDKsbrEnc_InitSbrCodeEnvelope()
593 h_sbrCodeEnvelope->dF_edge_incr = dF_edge_incr; in FDKsbrEnc_InitSbrCodeEnvelope()
594 h_sbrCodeEnvelope->dF_edge_incr_fac = 0; in FDKsbrEnc_InitSbrCodeEnvelope()
595 h_sbrCodeEnvelope->upDate = 0; in FDKsbrEnc_InitSbrCodeEnvelope()
596 h_sbrCodeEnvelope->nSfb[FREQ_RES_LOW] = nSfb[FREQ_RES_LOW]; in FDKsbrEnc_InitSbrCodeEnvelope()
597 h_sbrCodeEnvelope->nSfb[FREQ_RES_HIGH] = nSfb[FREQ_RES_HIGH]; in FDKsbrEnc_InitSbrCodeEnvelope()
598 h_sbrCodeEnvelope->offset = 2 * h_sbrCodeEnvelope->nSfb[FREQ_RES_LOW] - in FDKsbrEnc_InitSbrCodeEnvelope()
599 h_sbrCodeEnvelope->nSfb[FREQ_RES_HIGH]; in FDKsbrEnc_InitSbrCodeEnvelope()