Lines Matching refs:encEnvData
588 INT ca = 2 - h_sbr->encEnvData.init_sbr_amp_res;
664 if(h_sbr->encEnvData.addHarmonicFlag){
667 if(h_sbr->encEnvData.addHarmonic[j]){ /*A missing sine in the current band*/
682 if(h_sbr->encEnvData.addHarmonic[i]){
841 sfb_nrgRight[m] = mapPanorama (nrgRight,h_sbr->encEnvData.init_sbr_amp_res,&quantError);
1051 h_envChan[0]->encEnvData.ldGrid,
1054 h_envChan[0]->encEnvData.hSbrBSGrid = &h_envChan[0]->SbrEnvFrame.SbrGrid;
1057 if (h_envChan[0]->encEnvData.ldGrid && eData[0].transient_info[2]) {
1069 h_envChan[1]->encEnvData.ldGrid,
1072 h_envChan[1]->encEnvData.hSbrBSGrid = &h_envChan[1]->SbrEnvFrame.SbrGrid;
1074 if (h_envChan[1]->encEnvData.ldGrid && eData[1].transient_info[2]) {
1102 h_envChan[1]->encEnvData.hSbrBSGrid = &h_envChan[0]->SbrEnvFrame.SbrGrid;
1124 hEnvChan->encEnvData.noOfEnvelopes = ed->nEnvelopes = ed->frame_info->nEnvelopes; /* number of envelopes of current frame */
1130 if( ( hEnvChan->encEnvData.hSbrBSGrid->frameClass == FIXFIX )
1134 if (hEnvChan->encEnvData.ldGrid)
1135 hEnvChan->encEnvData.currentAmpResFF = (AMP_RES)h_con->initAmpResFF;
1137 hEnvChan->encEnvData.currentAmpResFF = SBR_AMP_RES_1_5;
1139 if ( hEnvChan->encEnvData.currentAmpResFF != hEnvChan->encEnvData.init_sbr_amp_res) {
1141 FDKsbrEnc_InitSbrHuffmanTables(&hEnvChan->encEnvData,
1144 hEnvChan->encEnvData.currentAmpResFF);
1148 if(sbrHeaderData->sbr_amp_res != hEnvChan->encEnvData.init_sbr_amp_res ) {
1150 FDKsbrEnc_InitSbrHuffmanTables(&hEnvChan->encEnvData,
1163 hEnvChan->encEnvData.sbr_invf_mode_vec,
1165 &hEnvChan->encEnvData.addHarmonicFlag,
1166 hEnvChan->encEnvData.addHarmonic,
1172 hEnvChan->encEnvData.sbr_xpos_mode,
1185 hEnvChan->encEnvData.sbr_invf_mode_vec[i] = INVF_HIGH_LEVEL;
1190 hEnvChan->encEnvData.sbr_invf_mode = hEnvChan->encEnvData.sbr_invf_mode_vec[0];
1192 hEnvChan->encEnvData.noOfnoisebands = hEnvChan->TonCorr.sbrNoiseFloorEstimate.noNoiseBands;
1204 h_envChan[ch]->encEnvData.noScfBands[i] =
1263 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1273 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1281 h_envChan[1]->encEnvData.domain_vec_noise, 0,
1294 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1302 h_envChan[1]->encEnvData.domain_vec_noise, 1,
1324 h_envChan[0]->encEnvData.balance = 0;
1327 h_envChan[0]->encEnvData.domain_vec,
1335 h_envChan[0]->encEnvData.balance = 0;
1336 h_envChan[1]->encEnvData.balance = 0;
1341 h_envChan[0]->encEnvData.domain_vec,
1347 h_envChan[1]->encEnvData.domain_vec,
1354 h_envChan[0]->encEnvData.balance = 0;
1355 h_envChan[1]->encEnvData.balance = 1;
1359 h_envChan[0]->encEnvData.domain_vec,
1365 h_envChan[1]->encEnvData.domain_vec,
1415 h_envChan[0]->encEnvData.domain_vec, 0,
1420 h_envChan[1]->encEnvData.domain_vec, 0,
1426 for (j = 0; j < h_envChan[0]->encEnvData.noScfBands[i]; j++)
1428 h_envChan[0]->encEnvData.ienvelope[i][j] = eData[0].sfb_nrg[c];
1429 h_envChan[1]->encEnvData.ienvelope[i][j] = eData[1].sfb_nrg[c];
1438 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1444 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level[i];
1449 h_envChan[1]->encEnvData.domain_vec_noise, 0,
1454 h_envChan[1]->encEnvData.sbr_noise_levels[i] = eData[1].noise_level[i];
1458 h_envChan[0]->encEnvData.balance = 0;
1459 h_envChan[1]->encEnvData.balance = 0;
1464 &h_envChan[0]->encEnvData,
1465 &h_envChan[1]->encEnvData,
1502 FDKmemcpy(domainVecTemp[ch],h_envChan[ch]->encEnvData.domain_vec,sizeof(INT)*MAX_ENVELOPES);
1503 FDKmemcpy(domainVecNoiseTemp[ch],h_envChan[ch]->encEnvData.domain_vec_noise,sizeof(INT)*MAX_ENVELOPES);
1523 h_envChan[0]->encEnvData.domain_vec, 1,
1529 h_envChan[1]->encEnvData.domain_vec, 1,
1536 for (j = 0; j < h_envChan[0]->encEnvData.noScfBands[i]; j++) {
1537 h_envChan[0]->encEnvData.ienvelope[i][j] = eData[0].sfb_nrg_coupling[c];
1538 h_envChan[1]->encEnvData.ienvelope[i][j] = eData[1].sfb_nrg_coupling[c];
1545 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1550 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level_coupling[i];
1555 h_envChan[1]->encEnvData.domain_vec_noise, 1,
1560 h_envChan[1]->encEnvData.sbr_noise_levels[i] = eData[1].noise_level_coupling[i];
1564 h_envChan[0]->encEnvData.balance = 0;
1565 h_envChan[1]->encEnvData.balance = 1;
1567 tempFlagLeft = h_envChan[0]->encEnvData.addHarmonicFlag;
1568 tempFlagRight = h_envChan[1]->encEnvData.addHarmonicFlag;
1574 &h_envChan[0]->encEnvData,
1575 &h_envChan[1]->encEnvData,
1580 h_envChan[0]->encEnvData.addHarmonicFlag = tempFlagLeft;
1581 h_envChan[1]->encEnvData.addHarmonicFlag = tempFlagRight;
1597 h_envChan[0]->encEnvData.balance = 0;
1598 h_envChan[1]->encEnvData.balance = 1;
1614 FDKmemcpy (h_envChan[ch]->encEnvData.domain_vec,domainVecTemp[ch],sizeof(INT)*MAX_ENVELOPES);
1615 FDKmemcpy (h_envChan[ch]->encEnvData.domain_vec_noise,domainVecNoiseTemp[ch],sizeof(INT)*MAX_ENVELOPES);
1621 h_envChan[0]->encEnvData.balance = 0;
1622 h_envChan[1]->encEnvData.balance = 0;
1632 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME)
1638 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME ||
1639 h_envChan[1]->encEnvData.domain_vec[0] == TIME) {
1656 for (j = 0; j < h_envChan[ch]->encEnvData.noScfBands[i]; j++) {
1657 h_envChan[ch]->encEnvData.ienvelope[i][j] = ed->sfb_nrg[c];
1663 h_envChan[ch]->encEnvData.sbr_noise_levels[i] = ed->noise_level[i];
1675 &h_envChan[0]->encEnvData,
1676 &h_envChan[1]->encEnvData,
1684 &h_envChan[0]->encEnvData,