Lines Matching defs:h_envChan
1145 HANDLE_ENV_CHANNEL h_envChan[MAX_NUM_CHANNELS] = {h_envChan0, h_envChan1};
1146 int ch, i, j, c, YSzShift = h_envChan[0]->sbrExtractEnvelope.YBufferSzShift;
1187 eData[0].frame_info = FDKsbrEnc_frameInfoGenerator(&h_envChan[0]->SbrEnvFrame,
1189 h_envChan[0]->sbrExtractEnvelope.pre_transient_info,
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]) {
1198 h_envChan[0]->SbrEnvFrame.SbrFrameInfo.shortEnv = h_envChan[0]->SbrEnvFrame.SbrFrameInfo.nEnvelopes;
1205 eData[1].frame_info = FDKsbrEnc_frameInfoGenerator(&h_envChan[1]->SbrEnvFrame,
1207 h_envChan[1]->sbrExtractEnvelope.pre_transient_info,
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]) {
1215 h_envChan[1]->SbrEnvFrame.SbrFrameInfo.shortEnv = h_envChan[1]->SbrEnvFrame.SbrFrameInfo.nEnvelopes;
1241 h_envChan[1]->encEnvData.hSbrBSGrid = &h_envChan[0]->SbrEnvFrame.SbrGrid;
1253 HANDLE_ENV_CHANNEL hEnvChan = h_envChan[ch];
1362 h_envChan[ch]->encEnvData.noScfBands[i] =
1372 calculateSbrEnvelope (h_envChan[0]->sbrExtractEnvelope.YBuffer, NULL,
1373 h_envChan[0]->sbrExtractEnvelope.YBufferScale, NULL,
1375 h_con, h_envChan[0], SBR_MONO, NULL, YSzShift);
1378 calculateSbrEnvelope (h_envChan[0]->sbrExtractEnvelope.YBuffer, NULL,
1379 h_envChan[0]->sbrExtractEnvelope.YBufferScale, NULL,
1381 h_con, h_envChan[0], SBR_MONO, NULL, YSzShift);
1382 calculateSbrEnvelope (h_envChan[1]->sbrExtractEnvelope.YBuffer, NULL,
1383 h_envChan[1]->sbrExtractEnvelope.YBufferScale, NULL,
1385 h_con, h_envChan[1], SBR_MONO, NULL, YSzShift);
1388 calculateSbrEnvelope (h_envChan[0]->sbrExtractEnvelope.YBuffer, h_envChan[1]->sbrExtractEnvelope.YBuffer,
1389 h_envChan[0]->sbrExtractEnvelope.YBufferScale, h_envChan[1]->sbrExtractEnvelope.YBufferScale,
1391 h_con, h_envChan[0], SBR_COUPLING, &fData->maxQuantError, YSzShift);
1394 calculateSbrEnvelope (h_envChan[0]->sbrExtractEnvelope.YBuffer, NULL,
1395 h_envChan[0]->sbrExtractEnvelope.YBufferScale, NULL,
1397 h_con, h_envChan[0], SBR_MONO, NULL, YSzShift);
1398 calculateSbrEnvelope (h_envChan[1]->sbrExtractEnvelope.YBuffer, NULL,
1399 h_envChan[1]->sbrExtractEnvelope.YBufferScale, NULL,
1401 h_con, h_envChan[1], SBR_MONO,NULL, YSzShift);
1402 calculateSbrEnvelope (h_envChan[0]->sbrExtractEnvelope.YBuffer, h_envChan[1]->sbrExtractEnvelope.YBuffer,
1403 h_envChan[0]->sbrExtractEnvelope.YBufferScale, h_envChan[1]->sbrExtractEnvelope.YBufferScale,
1405 h_con, h_envChan[0], SBR_COUPLING, &fData->maxQuantError, YSzShift);
1420 &h_envChan[0]->sbrCodeNoiseFloor,
1421 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1430 &h_envChan[0]->sbrCodeNoiseFloor,
1431 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1438 &h_envChan[1]->sbrCodeNoiseFloor,
1439 h_envChan[1]->encEnvData.domain_vec_noise, 0,
1451 &h_envChan[0]->sbrCodeNoiseFloor,
1452 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1459 &h_envChan[1]->sbrCodeNoiseFloor,
1460 h_envChan[1]->encEnvData.domain_vec_noise, 1,
1482 h_envChan[0]->encEnvData.balance = 0;
1484 &h_envChan[0]->sbrCodeEnvelope,
1485 h_envChan[0]->encEnvData.domain_vec,
1493 h_envChan[0]->encEnvData.balance = 0;
1494 h_envChan[1]->encEnvData.balance = 0;
1498 &h_envChan[0]->sbrCodeEnvelope,
1499 h_envChan[0]->encEnvData.domain_vec,
1504 &h_envChan[1]->sbrCodeEnvelope,
1505 h_envChan[1]->encEnvData.domain_vec,
1512 h_envChan[0]->encEnvData.balance = 0;
1513 h_envChan[1]->encEnvData.balance = 1;
1516 &h_envChan[0]->sbrCodeEnvelope,
1517 h_envChan[0]->encEnvData.domain_vec,
1522 &h_envChan[1]->sbrCodeEnvelope,
1523 h_envChan[1]->encEnvData.domain_vec,
1548 FDKmemcpy (sfbNrgPrevTemp[ch], h_envChan[ch]->sbrCodeEnvelope.sfb_nrg_prev,
1551 FDKmemcpy (noisePrevTemp[ch], h_envChan[ch]->sbrCodeNoiseFloor.sfb_nrg_prev,
1554 upDateNrgTemp[ch] = h_envChan[ch]->sbrCodeEnvelope.upDate;
1555 upDateNoiseTemp[ch] = h_envChan[ch]->sbrCodeNoiseFloor.upDate;
1562 h_envChan[ch]->sbrCodeEnvelope.upDate = 0;
1563 h_envChan[ch]->sbrCodeNoiseFloor.upDate = 0;
1572 &h_envChan[0]->sbrCodeEnvelope,
1573 h_envChan[0]->encEnvData.domain_vec, 0,
1577 &h_envChan[1]->sbrCodeEnvelope,
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];
1595 &h_envChan[0]->sbrCodeNoiseFloor,
1596 h_envChan[0]->encEnvData.domain_vec_noise, 0,
1602 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level[i];
1606 &h_envChan[1]->sbrCodeNoiseFloor,
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,
1636 itmp = h_envChan[ch]->sbrCodeEnvelope.sfb_nrg_prev[i];
1637 h_envChan[ch]->sbrCodeEnvelope.sfb_nrg_prev[i]=sfbNrgPrevTemp[ch][i];
1644 itmp = h_envChan[ch]->sbrCodeNoiseFloor.sfb_nrg_prev[i];
1645 h_envChan[ch]->sbrCodeNoiseFloor.sfb_nrg_prev[i]=noisePrevTemp[ch][i];
1649 itmp = h_envChan[ch]->sbrCodeEnvelope.upDate;
1650 h_envChan[ch]->sbrCodeEnvelope.upDate=upDateNrgTemp[ch];
1653 itmp = h_envChan[ch]->sbrCodeNoiseFloor.upDate;
1654 h_envChan[ch]->sbrCodeNoiseFloor.upDate=upDateNoiseTemp[ch];
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);
1669 h_envChan[ch]->sbrCodeEnvelope.upDate = 0;
1670 h_envChan[ch]->sbrCodeNoiseFloor.upDate = 0;
1680 &h_envChan[0]->sbrCodeEnvelope,
1681 h_envChan[0]->encEnvData.domain_vec, 1,
1686 &h_envChan[1]->sbrCodeEnvelope,
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];
1702 &h_envChan[0]->sbrCodeNoiseFloor,
1703 h_envChan[0]->encEnvData.domain_vec_noise, 1,
1708 h_envChan[0]->encEnvData.sbr_noise_levels[i] = eData[0].noise_level_coupling[i];
1712 &h_envChan[1]->sbrCodeNoiseFloor,
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;
1764 FDKmemcpy (h_envChan[ch]->sbrCodeEnvelope.sfb_nrg_prev,
1767 h_envChan[ch]->sbrCodeEnvelope.upDate = upDateNrgTemp[ch];
1769 FDKmemcpy (h_envChan[ch]->sbrCodeNoiseFloor.sfb_nrg_prev,
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);
1775 h_envChan[ch]->sbrCodeNoiseFloor.upDate = upDateNoiseTemp[ch];
1779 h_envChan[0]->encEnvData.balance = 0;
1780 h_envChan[1]->encEnvData.balance = 0;
1790 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME)
1791 h_envChan[0]->sbrCodeEnvelope.dF_edge_incr_fac++;
1793 h_envChan[0]->sbrCodeEnvelope.dF_edge_incr_fac = 0;
1796 if (h_envChan[0]->encEnvData.domain_vec[0] == TIME ||
1797 h_envChan[1]->encEnvData.domain_vec[0] == TIME) {
1798 h_envChan[0]->sbrCodeEnvelope.dF_edge_incr_fac++;
1799 h_envChan[1]->sbrCodeEnvelope.dF_edge_incr_fac++;
1802 h_envChan[0]->sbrCodeEnvelope.dF_edge_incr_fac = 0;
1803 h_envChan[1]->sbrCodeEnvelope.dF_edge_incr_fac = 0;
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,
1852 int YBufferLength = h_envChan[ch]->sbrExtractEnvelope.no_cols >> h_envChan[ch]->sbrExtractEnvelope.YBufferSzShift;
1853 for (i = 0; i < h_envChan[ch]->sbrExtractEnvelope.YBufferWriteOffset; i++) {
1854 FDKmemcpy(h_envChan[ch]->sbrExtractEnvelope.YBuffer[i],
1855 h_envChan[ch]->sbrExtractEnvelope.YBuffer[i + YBufferLength],
1858 h_envChan[ch]->sbrExtractEnvelope.YBufferScale[0] = h_envChan[ch]->sbrExtractEnvelope.YBufferScale[1];