Home | History | Annotate | Download | only in src

Lines Matching refs:ch

385     int i, ch;
439 for (ch = 0; ch < setup.maxChIn; ch++) {
440 FDK_ALLOCATE_MEMORY_1D_INT(hEnc->phQmfFiltIn__FDK[ch], 1,
442 FDK_ALLOCATE_MEMORY_1D_INT(hEnc->phQmfFiltIn__FDK[ch]->FilterStates,
450 ch = 0; ch < setup.maxChIn; ch++) {
452 (error = fdk_sacenc_createDCFilter(&hEnc->phDCFilterSigIn[ch]))) {
458 for (ch = 0; ch < setup.maxChIn; ch++) {
460 &hEnc->phOnset[ch], setup.maxFrameTimeSlots))) {
625 int ch; /* loop counter */
696 for (ch = 0; ch < hEnc->nInputChannels; ch++) {
698 hEnc->pEncoderInputChScale[ch] = 7;
702 hEnc->pEncoderInputChScale[ch] += 1;
705 { hEnc->pEncoderInputChScale[ch] += DC_FILTER_SF; }
709 for (ch = 0; ch < hEnc->nInputChannels; ch++) {
710 hEnc->phQmfFiltIn__FDK[ch]->flags =
711 updateQmfFlags(hEnc->phQmfFiltIn__FDK[ch]->flags, !initStatesFlag);
714 hEnc->phQmfFiltIn__FDK[ch],
715 (FIXP_QAS *)hEnc->phQmfFiltIn__FDK[ch]->FilterStates, 1,
717 hEnc->phQmfFiltIn__FDK[ch]->flags)) {
725 for (ch = 0; ch < hEnc->nInputChannels; ch++) {
727 hEnc->phDCFilterSigIn[ch], hEnc->nSampleRate))) {
742 for (ch = 0; ch < hEnc->nInputChannels; ch++) {
744 hEnc->phOnset[ch], &onsetDetectConfig, 1))) {
775 for (ch = 0; ch < hEnc->nInputChannels; ch++) {
776 hEnc->pEncoderInputChScale[ch] += hEnc->staticGainScale;
864 int ch;
891 for (ch = 0; ch < nChIn; ch++) {
893 FDKmemcpy(&(hEnc->ppTimeSigIn__FDK[ch][0]),
894 &(hEnc->ppTimeSigDelayIn__FDK[ch][0]),
901 &(hEnc->ppTimeSigIn__FDK[ch][hEnc->nSurroundAnalysisBufferDelay]),
902 1, pInput__FDK + ch, nChInWithDmx, hEnc->nInputDelay);
904 &(hEnc->ppTimeSigIn__FDK[ch][hEnc->nSurroundAnalysisBufferDelay +
906 1, pInput2__FDK + ch, nChInWithDmx,
911 &(hEnc->ppTimeSigIn__FDK[ch][hEnc->nSurroundAnalysisBufferDelay]),
912 pInput__FDK + ch * inputBufferSizePerChannel,
915 &(hEnc->ppTimeSigIn__FDK[ch][hEnc->nSurroundAnalysisBufferDelay +
917 pInput2__FDK + ch * inputBufferSizePerChannel,
922 FDKmemcpy(&(hEnc->ppTimeSigDelayIn__FDK[ch][0]),
923 &(hEnc->ppTimeSigIn__FDK[ch][hEnc->nFrameLength]),
925 } /* for ch */
993 int i, ch, ps, winCnt, ts, slot;
1076 for (ch = 0; ch < nChIn; ch++) {
1080 [ch][hMp4SpaceEnc->nUpdateHybridPositionTimeSlots +
1092 for (ch = 0; ch < nChIn; ch++) {
1103 &hMp4SpaceEnc->ppTimeSigIn__FDK[ch][(ts * hMp4SpaceEnc->nQmfBands)];
1108 hMp4SpaceEnc->phDCFilterSigIn[ch], pTimeIn,
1117 qmfAnalysisFilteringSlot(hMp4SpaceEnc->phQmfFiltIn__FDK[ch], pQmfInReal,
1126 if (MAXVAL_GAIN != pPreGain[ch]) {
1129 ->pppHybridIn__FDK[ch]
1132 .v.re = fMult(pSpecReal[i], pPreGain[ch]);
1134 ->pppHybridIn__FDK[ch]
1137 .v.im = fMult(pSpecImag[i], pPreGain[ch]);
1142 ->pppHybridIn__FDK[ch]
1147 ->pppHybridIn__FDK[ch]
1160 } /* ch */
1164 for (ch = 0; ch < nChIn; ch++) {
1169 copyCplxVec(hMp4SpaceEnc->pppHybridIn__FDK[ch][slot],
1170 hMp4SpaceEnc->pppHybridInStatic__FDK[ch][slot],
1174 for (ch = 0; ch < nChIn; ch++) {
1180 hMp4SpaceEnc->pppHybridInStatic__FDK[ch][slot],
1181 hMp4SpaceEnc->pppHybridIn__FDK[ch][nFrameTimeSlots + slot],
1192 for (ch = 0; ch < nChIn; ch++) {
1193 if (ch != 3) { /* !LFE */
1196 hMp4SpaceEnc->phOnset[ch], nFrameTimeSlots,
1199 [ch][hMp4SpaceEnc->nAnalysisLookaheadTimeSlots],
1200 encoderInputChScale[ch],
1202 hMp4SpaceEnc->ppTrCurrPos[ch]))) {
1207 hMp4SpaceEnc->ppTrCurrPos[ch][0] = -1;
1211 if ((hMp4SpaceEnc->ppTrCurrPos[ch][0] >= 0) &&
1213 (hMp4SpaceEnc->ppTrCurrPos[ch][0] < currTransPos))) {
1214 currTransPos = hMp4SpaceEnc->ppTrCurrPos[ch][0];
1217 } /* ch */
1232 for (ch = 0; ch < nChIn; ch++) {
1234 hMp4SpaceEnc->phOnset[ch], nFrameTimeSlots))) {
1319 for (ch = 0; ch < nChIn; ch++) { /* for automatic downmix */
1325 hMp4SpaceEnc->pppHybridIn__FDK[ch][slot],
1326 hMp4SpaceEnc->pppHybridIn__FDK[ch][nFrameTimeSlots + slot],
1332 [ch][hMp4SpaceEnc->nUpdateHybridPositionTimeSlots +
1439 for (ch = 0; ch < nChOut; ch++) {
1442 [ch + (hMp4SpaceEnc->nOutputBufferDelay) * nChOut],
1443 nChOut, hMp4SpaceEnc->ppTimeSigOut__FDK[ch], 1,
1486 int ch, i;
1500 for (ch = 0; ch < hEnc->setup.maxChIn; ch++) {
1501 if (hEnc->phQmfFiltIn__FDK[ch] != NULL) {
1502 if (hEnc->phQmfFiltIn__FDK[ch]->FilterStates != NULL) {
1503 FDK_FREE_MEMORY_1D(hEnc->phQmfFiltIn__FDK[ch]->FilterStates);
1505 FDK_FREE_MEMORY_1D(hEnc->phQmfFiltIn__FDK[ch]);
1510 for (ch = 0; ch < hEnc->setup.maxChIn; ch++) {
1511 if (NULL != hEnc->phDCFilterSigIn[ch]) {
1512 fdk_sacenc_destroyDCFilter(&hEnc->phDCFilterSigIn[ch]);
1516 for (ch = 0; ch < hEnc->setup.maxChIn; ch++) {
1517 if (NULL != hEnc->phOnset[ch]) {
1518 fdk_sacenc_onsetDetect_Close(&hEnc->phOnset[ch]);