Lines Matching refs:outCh
799 const unsigned int outCh in dmxInitChannel() argument
804 if (inCh == outCh) { in dmxInitChannel()
805 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.5f); in dmxInitChannel()
806 mixScales[outCh][inCh] = 1; in dmxInitChannel()
808 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.0f); in dmxInitChannel()
809 mixScales[outCh][inCh] = 0; in dmxInitChannel()
825 const unsigned int outCh in dmxClearChannel() argument
828 FDKmemclear(&mixFactors[outCh], PCM_DMX_MAX_CHANNELS*sizeof(FIXP_DMX)); in dmxClearChannel()
829 FDKmemclear(&mixScales[outCh], PCM_DMX_MAX_CHANNELS*sizeof(INT)); in dmxClearChannel()
931 unsigned int outCh, inCh, inChCfg = 0; in getMixFactors() local
981 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in getMixFactors()
982 dmxInitChannel( mixFactors, mixScales, outCh ); in getMixFactors()
1329 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in getMixFactors()
1330 if (valid[outCh]!=0) { in getMixFactors()
1332 if (mixScales[outCh][inCh] > maxScale) in getMixFactors()
1334 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1341 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in getMixFactors()
1342 chSum[outCh] = MAX_SEARCH_START_VAL; in getMixFactors()
1343 if (valid[outCh]!=0) { in getMixFactors()
1347 chSum[outCh] = 0; in getMixFactors()
1349 SHORT addFact = FX_DMX2SHRT(mixFactors[outCh][inCh]); in getMixFactors()
1350 if ( mixScales[outCh][inCh] <= maxScale ) { in getMixFactors()
1351 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1353 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1355 chSum[outCh] += addFact; in getMixFactors()
1357 if (chSum[outCh] > (LONG)MAXVAL_SGL) { in getMixFactors()
1358 while (chSum[outCh] > (LONG)MAXVAL_SGL) { in getMixFactors()
1360 chSum[outCh] >>= 1; in getMixFactors()
1362 } else if (chSum[outCh] > 0) { in getMixFactors()
1363 while ((chSum[outCh]<<1) <= (LONG)MAXVAL_SGL) { in getMixFactors()
1365 chSum[outCh] <<= 1; in getMixFactors()
1369 chSum[outCh] = ovrflwProtScale; in getMixFactors()
1373 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in getMixFactors()
1374 if ( (valid[outCh] != 0) in getMixFactors()
1375 && (chSum[outCh] > chSumMax) ) in getMixFactors()
1377 chSumMax = chSum[outCh]; in getMixFactors()
1383 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in getMixFactors()
1384 if (valid[outCh]!=0) { in getMixFactors()
1386 if (mixFactors[outCh][inCh] != (FIXP_DMX)0) { in getMixFactors()
1387 if ( mixScales[outCh][inCh] <= maxScale ) { in getMixFactors()
1388 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1390 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1392 mixScales[outCh][inCh] = maxScale; in getMixFactors()
2068 int inCh, outCh, map[PCM_DMX_MAX_CHANNELS]; in pcmDmx_ApplyFrame() local
2081 int outCh; in pcmDmx_ApplyFrame() local
2082 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in pcmDmx_ApplyFrame()
2083 mixFactors[outCh][inCh] = mixFactors[outCh][map[inCh]]; in pcmDmx_ApplyFrame()
2090 for (outCh=0; outCh < PCM_DMX_MAX_CHANNELS; outCh+=1) { in pcmDmx_ApplyFrame()
2091 if (outOffsetTable[outCh] != 255) { in pcmDmx_ApplyFrame()
2092 pOutPcm[ch] = &pPcmBuf[outOffsetTable[outCh]*offset]; in pcmDmx_ApplyFrame()
2093 map[ch++] = outCh; in pcmDmx_ApplyFrame()
2099 for (outCh=0; outCh < numOutChannels; outCh+=1) { in pcmDmx_ApplyFrame()
2100 if (outCh != map[outCh]) { in pcmDmx_ApplyFrame()
2101 … FDKmemcpy(&mixFactors[outCh], &mixFactors[map[outCh]], PCM_DMX_MAX_CHANNELS*sizeof(FIXP_DMX)); in pcmDmx_ApplyFrame()
2111 int inCh, outCh; in pcmDmx_ApplyFrame() local
2119 for (outCh=0; outCh < numOutChannels; outCh+=1) { in pcmDmx_ApplyFrame()
2121 tOut[outCh] += fMult(tIn[inCh], mixFactors[outCh][inCh]); in pcmDmx_ApplyFrame()
2125 *pOutPcm[outCh] = (INT_PCM)SATURATE_LEFT_SHIFT(tOut[outCh], dmxScale, SAMPLE_BITS); in pcmDmx_ApplyFrame()
2127 …*pOutPcm[outCh] = (INT_PCM)SATURATE_RIGHT_SHIFT(tOut[outCh], DFRACT_BITS-SAMPLE_BITS-dmxScale, SAM… in pcmDmx_ApplyFrame()
2129 pOutPcm[outCh] += outStride; in pcmDmx_ApplyFrame()
2273 int outCh; in pcmDmx_ApplyFrame() local
2274 for (outCh = 0 ; outCh < PCM_DMX_MAX_CHANNELS; outCh += 1) { in pcmDmx_ApplyFrame()
2275 if (outOffsetTable[outCh] < 255) { in pcmDmx_ApplyFrame()
2281 pOut[nContentCh] = &pPcmBuf[outOffsetTable[outCh]*offset+(frameSize-1)*outStride]; in pcmDmx_ApplyFrame()
2283 channelType[outOffsetTable[outCh]] = inChTypes[inOffsetTable[ch]]; in pcmDmx_ApplyFrame()
2284 channelIndices[outOffsetTable[outCh]] = inChIndices[inOffsetTable[ch]]; in pcmDmx_ApplyFrame()
2286 outOffsetTable[outCh] = 255; in pcmDmx_ApplyFrame()