Lines Matching refs:streamInfo
143 (self->streamInfo.aacSamplesPerFrame > in aacDecoder_setMetadataExpiry()
145 FIXP_DBL frameTime = fDivNorm(self->streamInfo.aacSampleRate, in aacDecoder_setMetadataExpiry()
146 self->streamInfo.aacSamplesPerFrame * 1000); in aacDecoder_setMetadataExpiry()
900 self->streamInfo.numLostAccessUnits = 0; in aacDecoder_SetParam()
901 self->streamInfo.numBadBytes = 0; in aacDecoder_SetParam()
902 self->streamInfo.numTotalBytes = 0; in aacDecoder_SetParam()
1177 self->streamInfo.numLostAccessUnits = 0; in aacDecoder_DecodeFrame()
1191 self->streamInfo.numChannels = 0; in aacDecoder_DecodeFrame()
1214 self->streamInfo.numLostAccessUnits = in aacDecoder_DecodeFrame()
1234 if (self->streamInfo.numLostAccessUnits > 0) { in aacDecoder_DecodeFrame()
1235 self->streamInfo.numLostAccessUnits--; in aacDecoder_DecodeFrame()
1314 self->streamInfo.numLostAccessUnits = 0; in aacDecoder_DecodeFrame()
1315 self->streamInfo.numBadBytes = 0; in aacDecoder_DecodeFrame()
1316 self->streamInfo.numTotalBytes = 0; in aacDecoder_DecodeFrame()
1321 self->streamInfo.outputDelay = 0; in aacDecoder_DecodeFrame()
1347 pTimeData2 + 0, timeData2Size, self->streamInfo.aacSamplesPerFrame + 0); in aacDecoder_DecodeFrame()
1381 self->streamInfo.sampleRate = self->streamInfo.aacSampleRate; in aacDecoder_DecodeFrame()
1382 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame; in aacDecoder_DecodeFrame()
1385 self->streamInfo.numChannels = self->streamInfo.aacNumChannels; in aacDecoder_DecodeFrame()
1390 pTimeData2 + 1 * (self->streamInfo.aacSamplesPerFrame + 0) + 0, in aacDecoder_DecodeFrame()
1391 self->streamInfo.frameSize, 0); in aacDecoder_DecodeFrame()
1399 isSupportedMpsConfig(self->streamInfo.aot, in aacDecoder_DecodeFrame()
1400 self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1428 (UINT)self->streamInfo.aacSampleRate, self->streamInfo.aot); in aacDecoder_DecodeFrame()
1431 self->streamInfo.aacSamplesPerFrame / in aacDecoder_DecodeFrame()
1461 int chIdx, numCoreChannel = self->streamInfo.numChannels; in aacDecoder_DecodeFrame()
1472 if (self->streamInfo.aot == AOT_ER_AAC_ELD) { in aacDecoder_DecodeFrame()
1497 sizeof(PCM_AAC) * (self->streamInfo.numChannels) * in aacDecoder_DecodeFrame()
1498 (self->streamInfo.frameSize)); in aacDecoder_DecodeFrame()
1503 &self->streamInfo.numChannels, &self->streamInfo.sampleRate, in aacDecoder_DecodeFrame()
1512 if (self->streamInfo.aacSampleRate != self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1513 if (self->streamInfo.aacSampleRate >> 2 == in aacDecoder_DecodeFrame()
1514 self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1515 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1516 self->streamInfo.aacSamplesPerFrame >> 2; in aacDecoder_DecodeFrame()
1517 self->streamInfo.outputDelay = self->streamInfo.outputDelay >> 2; in aacDecoder_DecodeFrame()
1518 } else if (self->streamInfo.aacSampleRate >> 1 == in aacDecoder_DecodeFrame()
1519 self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1520 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1521 self->streamInfo.aacSamplesPerFrame >> 1; in aacDecoder_DecodeFrame()
1522 self->streamInfo.outputDelay = self->streamInfo.outputDelay >> 1; in aacDecoder_DecodeFrame()
1523 } else if (self->streamInfo.aacSampleRate << 1 == in aacDecoder_DecodeFrame()
1524 self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1525 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame in aacDecoder_DecodeFrame()
1527 self->streamInfo.outputDelay = self->streamInfo.outputDelay << 1; in aacDecoder_DecodeFrame()
1528 } else if (self->streamInfo.aacSampleRate << 2 == in aacDecoder_DecodeFrame()
1529 self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1530 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame in aacDecoder_DecodeFrame()
1532 self->streamInfo.outputDelay = self->streamInfo.outputDelay << 2; in aacDecoder_DecodeFrame()
1533 } else if (self->streamInfo.frameSize == 768) { in aacDecoder_DecodeFrame()
1534 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1535 (self->streamInfo.aacSamplesPerFrame << 3) / 3; in aacDecoder_DecodeFrame()
1536 self->streamInfo.outputDelay = in aacDecoder_DecodeFrame()
1537 (self->streamInfo.outputDelay << 3) / 3; in aacDecoder_DecodeFrame()
1543 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame; in aacDecoder_DecodeFrame()
1545 self->streamInfo.outputDelay += in aacDecoder_DecodeFrame()
1551 for (chIdx = numCoreChannel; chIdx < self->streamInfo.numChannels; in aacDecoder_DecodeFrame()
1566 nChannels = self->streamInfo.numChannels; in aacDecoder_DecodeFrame()
1567 frameSize = self->streamInfo.frameSize; in aacDecoder_DecodeFrame()
1572 if (self->streamInfo.aot == AOT_USAC) { in aacDecoder_DecodeFrame()
1585 self->streamInfo.aacSamplesPerFrame, &nChannels, &frameSize, in aacDecoder_DecodeFrame()
1586 self->streamInfo.sampleRate, self->streamInfo.aot, in aacDecoder_DecodeFrame()
1597 self->streamInfo.numChannels = nChannels; in aacDecoder_DecodeFrame()
1598 self->streamInfo.frameSize = frameSize; in aacDecoder_DecodeFrame()
1599 self->streamInfo.outputDelay += mpegSurroundDecoder_GetDelay( in aacDecoder_DecodeFrame()
1607 self->streamInfo.numChannels = self->mpsOutChannelsLast; in aacDecoder_DecodeFrame()
1608 self->streamInfo.frameSize = self->mpsFrameSizeLast; in aacDecoder_DecodeFrame()
1640 &self->streamInfo.numChannels, &self->streamInfo.sampleRate, in aacDecoder_DecodeFrame()
1648 if (self->streamInfo.aacSampleRate != self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1649 if (self->streamInfo.frameSize == 768) { in aacDecoder_DecodeFrame()
1650 self->streamInfo.frameSize = in aacDecoder_DecodeFrame()
1651 (self->streamInfo.aacSamplesPerFrame * 8) / 3; in aacDecoder_DecodeFrame()
1652 } else if (self->streamInfo.aacSampleRate << 2 == in aacDecoder_DecodeFrame()
1653 self->streamInfo.sampleRate) { in aacDecoder_DecodeFrame()
1654 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame in aacDecoder_DecodeFrame()
1657 self->streamInfo.frameSize = self->streamInfo.aacSamplesPerFrame in aacDecoder_DecodeFrame()
1672 for (int i = ((self->streamInfo.frameSize * in aacDecoder_DecodeFrame()
1673 self->streamInfo.numChannels) - in aacDecoder_DecodeFrame()
1703 self->streamInfo.sampleRate); in aacDecoder_DecodeFrame()
1705 self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1714 self->streamInfo.frameSize; in aacDecoder_DecodeFrame()
1716 for (ch = 0; ch < self->streamInfo.numChannels; ch++) { in aacDecoder_DecodeFrame()
1730 if ((self->streamInfo.numChannels > 1) && in aacDecoder_DecodeFrame()
1734 if (timeData2Size < (INT)(2 * self->streamInfo.numChannels * in aacDecoder_DecodeFrame()
1735 self->streamInfo.frameSize)) { in aacDecoder_DecodeFrame()
1742 self->streamInfo.numChannels * self->streamInfo.frameSize; in aacDecoder_DecodeFrame()
1744 pTimeData2, drcWorkBuffer, self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1745 self->streamInfo.frameSize, self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1755 self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1756 self->streamInfo.frameSize, channelGain, in aacDecoder_DecodeFrame()
1757 drcWorkBuffer, self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1761 for (ch = 0; ch < self->streamInfo.numChannels; ch++) { in aacDecoder_DecodeFrame()
1764 drcWorkBuffer, self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1770 &self->streamInfo.numChannels); /* self->streamInfo.numChannels in aacDecoder_DecodeFrame()
1773 for (ch = 0; ch < self->streamInfo.numChannels; ch++) { in aacDecoder_DecodeFrame()
1777 drcWorkBuffer, self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1782 drcWorkBuffer, pTimeData2, self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1783 self->streamInfo.frameSize, self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1793 self->streamInfo.outputLoudness = -1; in aacDecoder_DecodeFrame()
1798 self->streamInfo.outputLoudness = 0; in aacDecoder_DecodeFrame()
1800 self->streamInfo.outputLoudness = in aacDecoder_DecodeFrame()
1807 if (self->streamInfo.drcProgRefLev < in aacDecoder_DecodeFrame()
1809 self->streamInfo.outputLoudness = -1; in aacDecoder_DecodeFrame()
1813 self->streamInfo.outputLoudness = self->streamInfo.drcProgRefLev; in aacDecoder_DecodeFrame()
1815 self->streamInfo.outputLoudness = self->defaultTargetLoudness; in aacDecoder_DecodeFrame()
1820 if (self->streamInfo.extAot != AOT_AAC_SLS) { in aacDecoder_DecodeFrame()
1838 self->streamInfo.frameSize, in aacDecoder_DecodeFrame()
1839 &self->streamInfo.numChannels, interleaved, in aacDecoder_DecodeFrame()
1858 self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1859 self->streamInfo.frameSize, interleaved); in aacDecoder_DecodeFrame()
1866 for (int ch = 0; ch < self->streamInfo.numChannels; ch++) { in aacDecoder_DecodeFrame()
1879 self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
1880 self->streamInfo.frameSize, interleaved); in aacDecoder_DecodeFrame()
1894 self->streamInfo.flags = self->flags[0]; in aacDecoder_DecodeFrame()
1913 self->streamInfo.frameSize = 0; in aacDecoder_DecodeFrame()
1925 if (self->streamInfo.extAot != AOT_AAC_SLS) { in aacDecoder_DecodeFrame()
1948 (self->streamInfo.numChannels * self->streamInfo.frameSize)) { in aacDecoder_DecodeFrame()
1956 int blockLength = self->streamInfo.frameSize; in aacDecoder_DecodeFrame()
1959 pcmLimiter_SetNChannels(self->hLimiter, self->streamInfo.numChannels); in aacDecoder_DecodeFrame()
1960 pcmLimiter_SetSampleRate(self->hLimiter, self->streamInfo.sampleRate); in aacDecoder_DecodeFrame()
1962 if ((self->streamInfo.numChannels == 1) || (self->sbrEnabled) || in aacDecoder_DecodeFrame()
1971 self->streamInfo.numChannels, blockLength, in aacDecoder_DecodeFrame()
1972 self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1981 (INT)(self->streamInfo.frameSize * sizeof(FIXP_DBL))) { in aacDecoder_DecodeFrame()
1989 self->streamInfo.frameSize, self->streamInfo.numChannels, 1, 1); in aacDecoder_DecodeFrame()
1994 self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
1998 self->streamInfo.outputDelay += pcmLimiter_GetDelay(self->hLimiter); in aacDecoder_DecodeFrame()
2004 self->extGainDelay, self->streamInfo.frameSize, in aacDecoder_DecodeFrame()
2005 self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
2006 (interleaved || (self->streamInfo.numChannels == 1)) in aacDecoder_DecodeFrame()
2008 : self->streamInfo.frameSize, in aacDecoder_DecodeFrame()
2015 if ((self->streamInfo.numChannels == 1) || (self->sbrEnabled) || in aacDecoder_DecodeFrame()
2019 self->streamInfo.frameSize * self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
2025 self->streamInfo.frameSize * self->streamInfo.numChannels, in aacDecoder_DecodeFrame()
2029 self->streamInfo.numChannels, self->streamInfo.frameSize, in aacDecoder_DecodeFrame()
2030 self->streamInfo.frameSize); in aacDecoder_DecodeFrame()
2044 aacDecoder_UpdateBitStreamCounters(&self->streamInfo, hBs, nBits, in aacDecoder_DecodeFrame()
2046 if (((self->streamInfo.numChannels <= 0) || in aacDecoder_DecodeFrame()
2047 (self->streamInfo.frameSize <= 0) || in aacDecoder_DecodeFrame()
2048 (self->streamInfo.sampleRate <= 0)) && in aacDecoder_DecodeFrame()