Lines Matching refs:encEnvData
693 INT ca = 2 - h_sbr->encEnvData.init_sbr_amp_res;
769 if(h_sbr->encEnvData.addHarmonicFlag){
772 if(h_sbr->encEnvData.addHarmonic[j]){ /*A missing sine in the current band*/
787 if(h_sbr->encEnvData.addHarmonic[i]){
946 sfb_nrgRight[m] = mapPanorama (nrgRight,h_sbr->encEnvData.init_sbr_amp_res,&quantError);
1041 hEnvChan->encEnvData.ton_HF[1] = hEnvChan->encEnvData.ton_HF[0];
1042 hEnvChan->encEnvData.ton_HF[0] = tonality;
1045 hEnvChan->encEnvData.global_tonality = (hEnvChan->encEnvData.ton_HF[0]>>1) + (hEnvChan->encEnvData.ton_HF[1]>>1);
1096 &hEnvChan->encEnvData.global_tonality);
1190 h_envChan[0]->encEnvData.ldGrid,
1193 h_envChan[0]->encEnvData.hSbrBSGrid = &h_envChan[0]->SbrEnvFrame.SbrGrid;
1196 if (h_envChan[0]->encEnvData.ldGrid && eData[0].transient_info[2]) {
1208 h_envChan[1]->encEnvData.ldGrid,
1211 h_envChan[1]->encEnvData.hSbrBSGrid = &h_envChan[1]->SbrEnvFrame.SbrGrid;
1213 if (h_envChan[1]->encEnvData.ldGrid && eData[1].transient_info[2]) {
1241 h_envChan[1]->encEnvData.hSbrBSGrid = &h_envChan[0]->SbrEnvFrame.SbrGrid;
1263 hEnvChan->encEnvData.noOfEnvelopes = ed->nEnvelopes = ed->frame_info->nEnvelopes; /* number of envelopes of current frame */
1269 if( ( hEnvChan->encEnvData.hSbrBSGrid->frameClass == FIXFIX )
1275 /* Note: global_tonaliy_float_value == ((float)hEnvChan->encEnvData.global_tonality/((INT64)(1)<<(31-(19+2)))/0.524288*(2.0/3.0)));
1280 hEnvChan->encEnvData.global_tonality, RELAXATION_SHIFT+2 )
1283 hEnvChan->encEnvData.currentAmpResFF = SBR_AMP_RES_1_5;
1286 hEnvChan->encEnvData.currentAmpResFF = SBR_AMP_RES_3_0;
1289 hEnvChan->encEnvData.currentAmpResFF = SBR_AMP_RES_1_5;
1292 if ( hEnvChan->encEnvData.currentAmpResFF != hEnvChan->encEnvData.init_sbr_amp_res) {
1294 FDKsbrEnc_InitSbrHuffmanTables(&hEnvChan->encEnvData,
1297 hEnvChan->encEnvData.currentAmpResFF);
1301 if(sbrHeaderData->sbr_amp_res != hEnvChan->encEnvData.init_sbr_amp_res ) {
1303 FDKsbrEnc_InitSbrHuffmanTables(&hEnvChan->encEnvData,
1316 hEnvChan->encEnvData.sbr_invf_mode_vec,
1318 &hEnvChan->encEnvData.addHarmonicFlag,
1319 hEnvChan->encEnvData.addHarmonic,
1325 hEnvChan->encEnvData.sbr_xpos_mode,
1343 hEnvChan->encEnvData.sbr_invf_mode_vec[i] = INVF_HIGH_LEVEL;
1348 hEnvChan->encEnvData.sbr_invf_mode = hEnvChan->encEnvData.sbr_invf_mode_vec[0];
1350 hEnvChan->encEnvData.noOfnoisebands = hEnvChan->TonCorr.sbrNoiseFloorEstimate.noNoiseBands;
1362 h_envChan[ch]->encEnvData.noScfBands[i] =
1421 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1431 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1439 h_envChan[1]->encEnvData.domain_vec_noise, 0,
1452 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1460 h_envChan[1]->encEnvData.domain_vec_noise, 1,
1482 h_envChan[0]->encEnvData.balance = 0;
1485 h_envChan[0]->encEnvData.domain_vec,
1493 h_envChan[0]->encEnvData.balance = 0;
1494 h_envChan[1]->encEnvData.balance = 0;
1499 h_envChan[0]->encEnvData.domain_vec,
1505 h_envChan[1]->encEnvData.domain_vec,
1512 h_envChan[0]->encEnvData.balance = 0;
1513 h_envChan[1]->encEnvData.balance = 1;
1517 h_envChan[0]->encEnvData.domain_vec,
1523 h_envChan[1]->encEnvData.domain_vec,
1573 h_envChan[0]->encEnvData.domain_vec, 0,
1578 h_envChan[1]->encEnvData.domain_vec, 0,
1584 for (j = 0; j < h_envChan[0]->encEnvData.noScfBands[i]; j++)
1586 h_envChan[0]->encEnvData.ienvelope[i][j] = eData[0].sfb_nrg[c];
1587 h_envChan[1]->encEnvData.ienvelope[i][j] = eData[1].sfb_nrg[c];
1596 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1602 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level[i];
1607 h_envChan[1]->encEnvData.domain_vec_noise, 0,
1612 h_envChan[1]->encEnvData.sbr_noise_levels[i] = eData[1].noise_level[i];
1616 h_envChan[0]->encEnvData.balance = 0;
1617 h_envChan[1]->encEnvData.balance = 0;
1622 &h_envChan[0]->encEnvData,
1623 &h_envChan[1]->encEnvData,
1660 FDKmemcpy(domainVecTemp[ch],h_envChan[ch]->encEnvData.domain_vec,sizeof(INT)*MAX_ENVELOPES);
1661 FDKmemcpy(domainVecNoiseTemp[ch],h_envChan[ch]->encEnvData.domain_vec_noise,sizeof(INT)*MAX_ENVELOPES);
1681 h_envChan[0]->encEnvData.domain_vec, 1,
1687 h_envChan[1]->encEnvData.domain_vec, 1,
1694 for (j = 0; j < h_envChan[0]->encEnvData.noScfBands[i]; j++) {
1695 h_envChan[0]->encEnvData.ienvelope[i][j] = eData[0].sfb_nrg_coupling[c];
1696 h_envChan[1]->encEnvData.ienvelope[i][j] = eData[1].sfb_nrg_coupling[c];
1703 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1708 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level_coupling[i];
1713 h_envChan[1]->encEnvData.domain_vec_noise, 1,
1718 h_envChan[1]->encEnvData.sbr_noise_levels[i] = eData[1].noise_level_coupling[i];
1722 h_envChan[0]->encEnvData.balance = 0;
1723 h_envChan[1]->encEnvData.balance = 1;
1725 tempFlagLeft = h_envChan[0]->encEnvData.addHarmonicFlag;
1726 tempFlagRight = h_envChan[1]->encEnvData.addHarmonicFlag;
1732 &h_envChan[0]->encEnvData,
1733 &h_envChan[1]->encEnvData,
1738 h_envChan[0]->encEnvData.addHarmonicFlag = tempFlagLeft;
1739 h_envChan[1]->encEnvData.addHarmonicFlag = tempFlagRight;
1755 h_envChan[0]->encEnvData.balance = 0;
1756 h_envChan[1]->encEnvData.balance = 1;
1772 FDKmemcpy (h_envChan[ch]->encEnvData.domain_vec,domainVecTemp[ch],sizeof(INT)*MAX_ENVELOPES);
1773 FDKmemcpy (h_envChan[ch]->encEnvData.domain_vec_noise,domainVecNoiseTemp[ch],sizeof(INT)*MAX_ENVELOPES);
1779 h_envChan[0]->encEnvData.balance = 0;
1780 h_envChan[1]->encEnvData.balance = 0;
1790 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME)
1796 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME ||
1797 h_envChan[1]->encEnvData.domain_vec[0] == TIME) {
1814 for (j = 0; j < h_envChan[ch]->encEnvData.noScfBands[i]; j++) {
1815 h_envChan[ch]->encEnvData.ienvelope[i][j] = ed->sfb_nrg[c];
1821 h_envChan[ch]->encEnvData.sbr_noise_levels[i] = ed->noise_level[i];
1833 &h_envChan[0]->encEnvData,
1834 &h_envChan[1]->encEnvData,
1842 &h_envChan[0]->encEnvData,