Lines Matching refs:pSpatialSpecificConfig
119 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, UPMIXTYPE upmixType) { in SpatialDecDecodeHelperInfo() argument
125 switch (pSpatialSpecificConfig->coreCodec) { in SpatialDecDecodeHelperInfo()
138 pSpatialSpecificConfig->syntaxFlags = syntaxFlags; in SpatialDecDecodeHelperInfo()
140 switch (pSpatialSpecificConfig->treeConfig) { in SpatialDecDecodeHelperInfo()
142 pSpatialSpecificConfig->ottCLDdefault[0] = 0; in SpatialDecDecodeHelperInfo()
149 if (pSpatialSpecificConfig->bsOttBandsPhasePresent) { in SpatialDecDecodeHelperInfo()
150 pSpatialSpecificConfig->numOttBandsIPD = in SpatialDecDecodeHelperInfo()
151 pSpatialSpecificConfig->bsOttBandsPhase; in SpatialDecDecodeHelperInfo()
155 numParameterBands = pSpatialSpecificConfig->freqRes; in SpatialDecDecodeHelperInfo()
159 pSpatialSpecificConfig->numOttBandsIPD = 2; in SpatialDecDecodeHelperInfo()
162 pSpatialSpecificConfig->numOttBandsIPD = 3; in SpatialDecDecodeHelperInfo()
165 pSpatialSpecificConfig->numOttBandsIPD = 5; in SpatialDecDecodeHelperInfo()
168 pSpatialSpecificConfig->numOttBandsIPD = 7; in SpatialDecDecodeHelperInfo()
172 pSpatialSpecificConfig->numOttBandsIPD = 10; in SpatialDecDecodeHelperInfo()
179 pSpatialSpecificConfig->numOttBandsIPD = 0; in SpatialDecDecodeHelperInfo()
181 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecDecodeHelperInfo()
183 pSpatialSpecificConfig->bitstreamOttBands[i] = in SpatialDecDecodeHelperInfo()
184 pSpatialSpecificConfig->freqRes; in SpatialDecDecodeHelperInfo()
187 pSpatialSpecificConfig->numOttBands[i] = in SpatialDecDecodeHelperInfo()
188 pSpatialSpecificConfig->bitstreamOttBands[i]; in SpatialDecDecodeHelperInfo()
190 !pSpatialSpecificConfig->bsOttBandsPhasePresent) { in SpatialDecDecodeHelperInfo()
191 if (pSpatialSpecificConfig->bResidualCoding && in SpatialDecDecodeHelperInfo()
192 pSpatialSpecificConfig->ResidualConfig[i].bResidualPresent && in SpatialDecDecodeHelperInfo()
193 (pSpatialSpecificConfig->numOttBandsIPD < in SpatialDecDecodeHelperInfo()
194 pSpatialSpecificConfig->ResidualConfig[i].nResidualBands)) { in SpatialDecDecodeHelperInfo()
195 pSpatialSpecificConfig->numOttBandsIPD = in SpatialDecDecodeHelperInfo()
196 pSpatialSpecificConfig->ResidualConfig[i].nResidualBands; in SpatialDecDecodeHelperInfo()
281 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, in SpatialDecParseSpecificConfigHeader() argument
296 err = SpatialDecParseSpecificConfig(bitstream, pSpatialSpecificConfig, in SpatialDecParseSpecificConfigHeader()
316 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, (UPMIXTYPE)upmixType); in SpatialDecParseSpecificConfigHeader()
323 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, int samplingRate, in SpatialDecParseMps212Config() argument
328 FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG)); in SpatialDecParseMps212Config()
330 pSpatialSpecificConfig->stereoConfigIndex = stereoConfigIndex; in SpatialDecParseMps212Config()
331 pSpatialSpecificConfig->coreSbrFrameLengthIndex = coreSbrFrameLengthIndex; in SpatialDecParseMps212Config()
332 pSpatialSpecificConfig->freqRes = in SpatialDecParseMps212Config()
334 if (pSpatialSpecificConfig->freqRes == 0) { in SpatialDecParseMps212Config()
340 pSpatialSpecificConfig->bsFixedGainDMX = in SpatialDecParseMps212Config()
343 pSpatialSpecificConfig->tempShapeConfig = in SpatialDecParseMps212Config()
345 pSpatialSpecificConfig->decorrConfig = (SPATIALDEC_DECORR_CONF)0; in SpatialDecParseMps212Config()
346 pSpatialSpecificConfig->bsDecorrType = 0; in SpatialDecParseMps212Config()
349 pSpatialSpecificConfig->bsFixedGainDMX = in SpatialDecParseMps212Config()
351 pSpatialSpecificConfig->tempShapeConfig = in SpatialDecParseMps212Config()
353 pSpatialSpecificConfig->decorrConfig = in SpatialDecParseMps212Config()
355 if (pSpatialSpecificConfig->decorrConfig > 2) { in SpatialDecParseMps212Config()
358 pSpatialSpecificConfig->bsDecorrType = 0; in SpatialDecParseMps212Config()
363 pSpatialSpecificConfig->nTimeSlots = (coreSbrFrameLengthIndex == 4) ? 64 : 32; in SpatialDecParseMps212Config()
364 pSpatialSpecificConfig->bsHighRateMode = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
367 pSpatialSpecificConfig->bsPhaseCoding = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
368 pSpatialSpecificConfig->bsOttBandsPhasePresent = in SpatialDecParseMps212Config()
370 if (pSpatialSpecificConfig->bsOttBandsPhasePresent) { in SpatialDecParseMps212Config()
371 if (MAX_PARAMETER_BANDS < (pSpatialSpecificConfig->bsOttBandsPhase = in SpatialDecParseMps212Config()
376 pSpatialSpecificConfig->bsOttBandsPhase = 0; in SpatialDecParseMps212Config()
381 pSpatialSpecificConfig->bResidualCoding = 1; in SpatialDecParseMps212Config()
382 pSpatialSpecificConfig->ResidualConfig->bResidualPresent = 1; in SpatialDecParseMps212Config()
383 if (pSpatialSpecificConfig->freqRes < in SpatialDecParseMps212Config()
384 (pSpatialSpecificConfig->ResidualConfig->nResidualBands = in SpatialDecParseMps212Config()
388 pSpatialSpecificConfig->bsOttBandsPhase = in SpatialDecParseMps212Config()
389 fMax(pSpatialSpecificConfig->bsOttBandsPhase, in SpatialDecParseMps212Config()
390 pSpatialSpecificConfig->ResidualConfig->nResidualBands); in SpatialDecParseMps212Config()
391 pSpatialSpecificConfig->bsPseudoLr = (UCHAR)FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
393 if (pSpatialSpecificConfig->bsPhaseCoding) { in SpatialDecParseMps212Config()
394 pSpatialSpecificConfig->bsPhaseCoding = 3; in SpatialDecParseMps212Config()
397 pSpatialSpecificConfig->bResidualCoding = 0; in SpatialDecParseMps212Config()
398 pSpatialSpecificConfig->ResidualConfig->bResidualPresent = 0; in SpatialDecParseMps212Config()
401 if (pSpatialSpecificConfig->tempShapeConfig == 2) { in SpatialDecParseMps212Config()
404 pSpatialSpecificConfig->envQuantMode = FDKreadBits(bitstream, 1); in SpatialDecParseMps212Config()
413 pSpatialSpecificConfig->samplingFreq = in SpatialDecParseMps212Config()
415 pSpatialSpecificConfig->treeConfig = SPATIALDEC_MODE_RSVD7; in SpatialDecParseMps212Config()
416 pSpatialSpecificConfig->nOttBoxes = in SpatialDecParseMps212Config()
417 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOttBoxes; in SpatialDecParseMps212Config()
418 pSpatialSpecificConfig->nInputChannels = in SpatialDecParseMps212Config()
419 treePropertyTable[pSpatialSpecificConfig->treeConfig].numInputChannels; in SpatialDecParseMps212Config()
420 pSpatialSpecificConfig->nOutputChannels = in SpatialDecParseMps212Config()
421 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOutputChannels; in SpatialDecParseMps212Config()
423 pSpatialSpecificConfig->bArbitraryDownmix = 0; in SpatialDecParseMps212Config()
425 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseMps212Config()
426 pSpatialSpecificConfig->OttConfig[i].nOttBands = 0; in SpatialDecParseMps212Config()
433 pSpatialSpecificConfig->coreCodec = coreCodec; in SpatialDecParseMps212Config()
436 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, UPMIXTYPE_NORMAL); in SpatialDecParseMps212Config()
443 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, int sacHeaderLen, in SpatialDecParseSpecificConfig() argument
452 FDKmemclear(pSpatialSpecificConfig, sizeof(SPATIAL_SPECIFIC_CONFIG)); in SpatialDecParseSpecificConfig()
469 pSpatialSpecificConfig->samplingFreq = FDKreadBits(bitstream, 24); in SpatialDecParseSpecificConfig()
471 pSpatialSpecificConfig->samplingFreq = in SpatialDecParseSpecificConfig()
473 if (pSpatialSpecificConfig->samplingFreq == 0) { in SpatialDecParseSpecificConfig()
479 pSpatialSpecificConfig->nTimeSlots = FDKreadBits(bitstream, 5) + 1; in SpatialDecParseSpecificConfig()
480 if ((pSpatialSpecificConfig->nTimeSlots < 1) || in SpatialDecParseSpecificConfig()
481 (pSpatialSpecificConfig->nTimeSlots > MAX_TIME_SLOTS)) { in SpatialDecParseSpecificConfig()
488 pSpatialSpecificConfig->freqRes = in SpatialDecParseSpecificConfig()
491 pSpatialSpecificConfig->treeConfig = in SpatialDecParseSpecificConfig()
494 if (pSpatialSpecificConfig->treeConfig != SPATIALDEC_MODE_RSVD7) { in SpatialDecParseSpecificConfig()
500 pSpatialSpecificConfig->nOttBoxes = in SpatialDecParseSpecificConfig()
501 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOttBoxes; in SpatialDecParseSpecificConfig()
502 pSpatialSpecificConfig->nTttBoxes = in SpatialDecParseSpecificConfig()
503 treePropertyTable[pSpatialSpecificConfig->treeConfig].numTttBoxes; in SpatialDecParseSpecificConfig()
504 pSpatialSpecificConfig->nInputChannels = in SpatialDecParseSpecificConfig()
505 treePropertyTable[pSpatialSpecificConfig->treeConfig].numInputChannels; in SpatialDecParseSpecificConfig()
506 pSpatialSpecificConfig->nOutputChannels = in SpatialDecParseSpecificConfig()
507 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOutputChannels; in SpatialDecParseSpecificConfig()
510 pSpatialSpecificConfig->quantMode = in SpatialDecParseSpecificConfig()
513 pSpatialSpecificConfig->bArbitraryDownmix = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
515 pSpatialSpecificConfig->bsFixedGainDMX = in SpatialDecParseSpecificConfig()
518 pSpatialSpecificConfig->tempShapeConfig = in SpatialDecParseSpecificConfig()
520 if (pSpatialSpecificConfig->tempShapeConfig > 2) { in SpatialDecParseSpecificConfig()
524 pSpatialSpecificConfig->decorrConfig = in SpatialDecParseSpecificConfig()
526 if (pSpatialSpecificConfig->decorrConfig > 2) { in SpatialDecParseSpecificConfig()
530 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseSpecificConfig()
531 pSpatialSpecificConfig->OttConfig[i].nOttBands = 0; in SpatialDecParseSpecificConfig()
534 for (i = 0; i < pSpatialSpecificConfig->nTttBoxes; i++) { in SpatialDecParseSpecificConfig()
543 if (pSpatialSpecificConfig->tempShapeConfig == 2) { in SpatialDecParseSpecificConfig()
544 pSpatialSpecificConfig->envQuantMode = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
584 pSpatialSpecificConfig->sacExtCnt = 0; in SpatialDecParseSpecificConfig()
585 pSpatialSpecificConfig->bResidualCoding = 0; in SpatialDecParseSpecificConfig()
588 bitstream, pSpatialSpecificConfig, pSpatialSpecificConfig->nOttBoxes, in SpatialDecParseSpecificConfig()
589 pSpatialSpecificConfig->nTttBoxes, in SpatialDecParseSpecificConfig()
590 pSpatialSpecificConfig->nOutputChannels, bitsAvailable); in SpatialDecParseSpecificConfig()
597 pSpatialSpecificConfig->coreCodec = coreCodec; in SpatialDecParseSpecificConfig()
599 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, UPMIXTYPE_NORMAL); in SpatialDecParseSpecificConfig()
614 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, in SpatialDecDefaultSpecificConfig() argument
626 pSpatialSpecificConfig->coreCodec = coreCodec; in SpatialDecDefaultSpecificConfig()
627 pSpatialSpecificConfig->samplingFreq = samplingFreq; in SpatialDecDefaultSpecificConfig()
628 pSpatialSpecificConfig->nTimeSlots = nTimeSlots; in SpatialDecDefaultSpecificConfig()
629 if ((pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_ELD) || in SpatialDecDefaultSpecificConfig()
630 (pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_LD)) in SpatialDecDefaultSpecificConfig()
631 pSpatialSpecificConfig->freqRes = SPATIALDEC_FREQ_RES_23; in SpatialDecDefaultSpecificConfig()
633 pSpatialSpecificConfig->freqRes = SPATIALDEC_FREQ_RES_28; in SpatialDecDefaultSpecificConfig()
636 pSpatialSpecificConfig->treeConfig = in SpatialDecDefaultSpecificConfig()
641 pSpatialSpecificConfig->nOttBoxes = in SpatialDecDefaultSpecificConfig()
642 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOttBoxes; in SpatialDecDefaultSpecificConfig()
643 pSpatialSpecificConfig->nInputChannels = in SpatialDecDefaultSpecificConfig()
644 treePropertyTable[pSpatialSpecificConfig->treeConfig].numInputChannels; in SpatialDecDefaultSpecificConfig()
645 pSpatialSpecificConfig->nOutputChannels = in SpatialDecDefaultSpecificConfig()
646 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOutputChannels; in SpatialDecDefaultSpecificConfig()
649 pSpatialSpecificConfig->quantMode = SPATIALDEC_QUANT_FINE_DEF; in SpatialDecDefaultSpecificConfig()
650 pSpatialSpecificConfig->bArbitraryDownmix = 0; in SpatialDecDefaultSpecificConfig()
651 pSpatialSpecificConfig->bResidualCoding = 0; in SpatialDecDefaultSpecificConfig()
652 if ((pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_ELD) || in SpatialDecDefaultSpecificConfig()
653 (pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_LD)) in SpatialDecDefaultSpecificConfig()
654 pSpatialSpecificConfig->bsFixedGainDMX = SPATIALDEC_GAIN_RSVD2; in SpatialDecDefaultSpecificConfig()
656 pSpatialSpecificConfig->bsFixedGainDMX = SPATIALDEC_GAIN_MODE0; in SpatialDecDefaultSpecificConfig()
658 pSpatialSpecificConfig->tempShapeConfig = SPATIALDEC_TS_TPNOWHITE; in SpatialDecDefaultSpecificConfig()
659 pSpatialSpecificConfig->decorrConfig = SPATIALDEC_DECORR_MODE0; in SpatialDecDefaultSpecificConfig()
661 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecDefaultSpecificConfig()
662 pSpatialSpecificConfig->OttConfig[i].nOttBands = 0; in SpatialDecDefaultSpecificConfig()
965 const SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, UPMIXTYPE upmixType, in SpatialDecParseFrameData() argument
972 treePropertyTable[pSpatialSpecificConfig->treeConfig] in SpatialDecParseFrameData()
981 syntaxFlags = pSpatialSpecificConfig->syntaxFlags; in SpatialDecParseFrameData()
984 pSpatialSpecificConfig->bsHighRateMode == 0) { in SpatialDecParseFrameData()
1004 if (pSpatialSpecificConfig->nInputChannels <= 0 || in SpatialDecParseFrameData()
1005 pSpatialSpecificConfig->nOutputChannels <= 0) { in SpatialDecParseFrameData()
1015 bitsParamSlot = nBitsParamSlot(pSpatialSpecificConfig->nTimeSlots); in SpatialDecParseFrameData()
1021 (frame->paramSlot[i] >= pSpatialSpecificConfig->nTimeSlots)) { in SpatialDecParseFrameData()
1030 frame->paramSlot[i] = ((pSpatialSpecificConfig->nTimeSlots * (i + 1)) / in SpatialDecParseFrameData()
1046 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseFrameData()
1049 pSpatialSpecificConfig->bitstreamOttBands[i], in SpatialDecParseFrameData()
1050 pSpatialSpecificConfig->ottCLDdefault[i]); in SpatialDecParseFrameData()
1057 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseFrameData()
1060 pSpatialSpecificConfig->bitstreamOttBands[i], ICCdefault); in SpatialDecParseFrameData()
1067 if ((pSpatialSpecificConfig->treeConfig == SPATIALDEC_MODE_RSVD7) && in SpatialDecParseFrameData()
1068 (pSpatialSpecificConfig->bsPhaseCoding)) { in SpatialDecParseFrameData()
1072 for (pb = 0; pb < pSpatialSpecificConfig->numOttBandsIPD; pb++) { in SpatialDecParseFrameData()
1085 pSpatialSpecificConfig->numOttBandsIPD, IPDdefault); in SpatialDecParseFrameData()
1097 if (!pSpatialSpecificConfig->bsHighRateMode && in SpatialDecParseFrameData()
1110 dataBands = (pSpatialSpecificConfig->freqRes - 1) / in SpatialDecParseFrameData()
1124 if ((pSpatialSpecificConfig->tempShapeConfig == 3) && in SpatialDecParseFrameData()
1127 TsdErr = TsdRead(bitstream, pSpatialSpecificConfig->nTimeSlots, in SpatialDecParseFrameData()
1142 if ((pSpatialSpecificConfig->tempShapeConfig == 1) || in SpatialDecParseFrameData()
1143 (pSpatialSpecificConfig->tempShapeConfig == 2)) { in SpatialDecParseFrameData()
1147 tempShapeChanTable[pSpatialSpecificConfig->tempShapeConfig - 1] in SpatialDecParseFrameData()
1148 [pSpatialSpecificConfig->treeConfig]; in SpatialDecParseFrameData()
1149 switch (pSpatialSpecificConfig->tempShapeConfig) { in SpatialDecParseFrameData()
1168 pSpatialSpecificConfig->nTimeSlots) != 0) { in SpatialDecParseFrameData()
1172 for (int ts = 0; ts < pSpatialSpecificConfig->nTimeSlots; ts++) { in SpatialDecParseFrameData()
1190 if (pSpatialSpecificConfig->bArbitraryDownmix != 0) { in SpatialDecParseFrameData()
1191 err = parseArbitraryDownmixData(self, pSpatialSpecificConfig, syntaxFlags, in SpatialDecParseFrameData()
1907 spatialDec *self, SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig) { in SpatialDecDecodeHeader() argument
1911 self->samplingFreq = pSpatialSpecificConfig->samplingFreq; in SpatialDecDecodeHeader()
1912 self->timeSlots = pSpatialSpecificConfig->nTimeSlots; in SpatialDecDecodeHeader()
1914 self->bitstreamParameterBands = pSpatialSpecificConfig->freqRes; in SpatialDecDecodeHeader()
1993 self->treeConfig = pSpatialSpecificConfig->treeConfig; in SpatialDecDecodeHeader()
1995 self->numOttBoxes = pSpatialSpecificConfig->nOttBoxes; in SpatialDecDecodeHeader()
1997 self->numInputChannels = pSpatialSpecificConfig->nInputChannels; in SpatialDecDecodeHeader()
1999 self->numOutputChannels = pSpatialSpecificConfig->nOutputChannels; in SpatialDecDecodeHeader()
2001 self->quantMode = pSpatialSpecificConfig->quantMode; in SpatialDecDecodeHeader()
2003 self->arbitraryDownmix = pSpatialSpecificConfig->bArbitraryDownmix; in SpatialDecDecodeHeader()
2013 self->residualCoding = pSpatialSpecificConfig->bResidualCoding; in SpatialDecDecodeHeader()
2017 FX_CFG2FX_DBL(clipGainTable__FDK[pSpatialSpecificConfig->bsFixedGainDMX]); in SpatialDecDecodeHeader()
2019 clipGainSFTable__FDK[pSpatialSpecificConfig->bsFixedGainDMX]; in SpatialDecDecodeHeader()
2021 self->tempShapeConfig = pSpatialSpecificConfig->tempShapeConfig; in SpatialDecDecodeHeader()
2023 self->decorrConfig = pSpatialSpecificConfig->decorrConfig; in SpatialDecDecodeHeader()
2031 self->numOttBandsIPD = pSpatialSpecificConfig->numOttBandsIPD; in SpatialDecDecodeHeader()
2032 self->phaseCoding = pSpatialSpecificConfig->bsPhaseCoding; in SpatialDecDecodeHeader()
2045 pSpatialSpecificConfig->ResidualConfig[i].bResidualPresent; in SpatialDecDecodeHeader()
2049 pSpatialSpecificConfig->ResidualConfig[i].nResidualBands; in SpatialDecDecodeHeader()
2082 self->highRateMode = pSpatialSpecificConfig->bsHighRateMode; in SpatialDecDecodeHeader()
2083 self->decorrType = pSpatialSpecificConfig->bsDecorrType; in SpatialDecDecodeHeader()
2085 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, UPMIXTYPE_NORMAL); in SpatialDecDecodeHeader()