Lines Matching refs:outCh
848 INT mixScales[(8)][(8)], const unsigned int outCh) { in dmxInitChannel() argument
851 if (inCh == outCh) { in dmxInitChannel()
852 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.5f); in dmxInitChannel()
853 mixScales[outCh][inCh] = 1; in dmxInitChannel()
855 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.0f); in dmxInitChannel()
856 mixScales[outCh][inCh] = 0; in dmxInitChannel()
870 INT mixScales[(8)][(8)], const unsigned int outCh) { in dmxClearChannel() argument
871 FDK_ASSERT((outCh >= 0) && (outCh < (8))); in dmxClearChannel()
872 FDKmemclear(&mixFactors[outCh], (8) * sizeof(FIXP_DMX)); in dmxClearChannel()
873 FDKmemclear(&mixScales[outCh], (8) * sizeof(INT)); in dmxClearChannel()
969 unsigned int outCh, inChCfg = 0; in getMixFactors() local
1019 for (outCh = 0; outCh < (8); outCh += 1) { in getMixFactors()
1020 dmxInitChannel(mixFactors, mixScales, outCh); in getMixFactors()
1513 for (outCh = 0; outCh < (8); outCh += 1) { in getMixFactors()
1514 if (valid[outCh] != 0) { in getMixFactors()
1517 if (mixScales[outCh][inCh] > maxScale) { /* Store the new maximum */ in getMixFactors()
1518 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1525 for (outCh = 0; outCh < (8); outCh += 1) { in getMixFactors()
1526 chSum[outCh] = MAX_SEARCH_START_VAL; in getMixFactors()
1527 if (valid[outCh] != 0) { in getMixFactors()
1532 chSum[outCh] = 0; in getMixFactors()
1534 SHORT addFact = FX_DMX2SHRT(mixFactors[outCh][inCh]); in getMixFactors()
1535 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1536 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1538 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1540 chSum[outCh] += addFact; in getMixFactors()
1542 if (chSum[outCh] > (LONG)MAXVAL_SGL) { in getMixFactors()
1543 while (chSum[outCh] > (LONG)MAXVAL_SGL) { in getMixFactors()
1545 chSum[outCh] >>= 1; in getMixFactors()
1547 } else if (chSum[outCh] > 0) { in getMixFactors()
1548 while ((chSum[outCh] << 1) <= (LONG)MAXVAL_SGL) { in getMixFactors()
1550 chSum[outCh] <<= 1; in getMixFactors()
1554 chSum[outCh] = ovrflwProtScale; in getMixFactors()
1558 for (outCh = 0; outCh < (8); outCh += 1) { in getMixFactors()
1559 if ((valid[outCh] != 0) && in getMixFactors()
1560 (chSum[outCh] > chSumMax)) { /* Store the new maximum */ in getMixFactors()
1561 chSumMax = chSum[outCh]; in getMixFactors()
1567 for (outCh = 0; outCh < (8); outCh += 1) { in getMixFactors()
1568 if (valid[outCh] != 0) { in getMixFactors()
1571 if (mixFactors[outCh][inCh] != (FIXP_DMX)0) { in getMixFactors()
1572 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1573 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1575 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1577 mixScales[outCh][inCh] = maxScale; in getMixFactors()
2227 int inCh, outCh, map[(8)]; in pcmDmx_ApplyFrame() local
2242 for (outCh = 0; outCh < (8); outCh += 1) { in pcmDmx_ApplyFrame()
2243 mixFactors[outCh][inCh] = mixFactors[outCh][map[inCh]]; in pcmDmx_ApplyFrame()
2250 for (outCh = 0; outCh < (8); outCh += 1) { in pcmDmx_ApplyFrame()
2251 if (outOffsetTable[outCh] < (UCHAR)numOutChannels) { in pcmDmx_ApplyFrame()
2252 pOutPcm[ch] = &pPcmBuf[outOffsetTable[outCh] * offset]; in pcmDmx_ApplyFrame()
2253 map[ch++] = outCh; in pcmDmx_ApplyFrame()
2261 for (outCh = 0; outCh < numOutChannels; outCh += 1) { in pcmDmx_ApplyFrame()
2262 if (outCh != map[outCh]) { in pcmDmx_ApplyFrame()
2263 FDKmemcpy(&mixFactors[outCh], &mixFactors[map[outCh]], in pcmDmx_ApplyFrame()
2273 int inCh, outCh; in pcmDmx_ApplyFrame() local
2286 for (outCh = 0; outCh < numOutChannels; outCh += 1) { in pcmDmx_ApplyFrame()
2288 tOut[outCh] += fMult((DMX_PCMF)tIn[inCh], mixFactors[outCh][inCh]); in pcmDmx_ApplyFrame()
2290 FDK_ASSERT(pOutPcm[outCh] >= pPcmBuf); in pcmDmx_ApplyFrame()
2291 FDK_ASSERT(pOutPcm[outCh] < &pPcmBuf[pcmBufSize]); in pcmDmx_ApplyFrame()
2293 *pOutPcm[outCh] = (DMX_PCM)SATURATE_SHIFT( in pcmDmx_ApplyFrame()
2294 tOut[outCh], DFRACT_BITS - DMX_PCM_BITS - dmxScale, DMX_PCM_BITS); in pcmDmx_ApplyFrame()
2295 pOutPcm[outCh] += outStride; in pcmDmx_ApplyFrame()
2441 int outCh; in pcmDmx_ApplyFrame() local
2442 for (outCh = 0; outCh < (8); outCh += 1) { in pcmDmx_ApplyFrame()
2443 if (outOffsetTable[outCh] < 255) { in pcmDmx_ApplyFrame()
2447 if (outCh >= (8)) { in pcmDmx_ApplyFrame()
2454 pOut[nContentCh] = &pPcmBuf[outOffsetTable[outCh] * offset + in pcmDmx_ApplyFrame()
2457 FDK_ASSERT(inOffsetTable[outCh] < numInChannels); in pcmDmx_ApplyFrame()
2458 FDK_ASSERT(outOffsetTable[outCh] < numOutChannels); in pcmDmx_ApplyFrame()
2459 channelType[outOffsetTable[outCh]] = inChTypes[inOffsetTable[ch]]; in pcmDmx_ApplyFrame()
2460 channelIndices[outOffsetTable[outCh]] = in pcmDmx_ApplyFrame()
2463 outOffsetTable[outCh] = 255; in pcmDmx_ApplyFrame()