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()
496 pSpatialSpecificConfig->treeConfig = (SPATIALDEC_TREE_CONFIG)treeConfig; in SpatialDecParseSpecificConfig()
505 pSpatialSpecificConfig->nOttBoxes = in SpatialDecParseSpecificConfig()
506 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOttBoxes; in SpatialDecParseSpecificConfig()
507 pSpatialSpecificConfig->nTttBoxes = in SpatialDecParseSpecificConfig()
508 treePropertyTable[pSpatialSpecificConfig->treeConfig].numTttBoxes; in SpatialDecParseSpecificConfig()
509 pSpatialSpecificConfig->nInputChannels = in SpatialDecParseSpecificConfig()
510 treePropertyTable[pSpatialSpecificConfig->treeConfig].numInputChannels; in SpatialDecParseSpecificConfig()
511 pSpatialSpecificConfig->nOutputChannels = in SpatialDecParseSpecificConfig()
512 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOutputChannels; in SpatialDecParseSpecificConfig()
515 pSpatialSpecificConfig->quantMode = in SpatialDecParseSpecificConfig()
518 pSpatialSpecificConfig->bArbitraryDownmix = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
520 pSpatialSpecificConfig->bsFixedGainDMX = in SpatialDecParseSpecificConfig()
523 pSpatialSpecificConfig->tempShapeConfig = in SpatialDecParseSpecificConfig()
525 if (pSpatialSpecificConfig->tempShapeConfig > 2) { in SpatialDecParseSpecificConfig()
529 pSpatialSpecificConfig->decorrConfig = in SpatialDecParseSpecificConfig()
531 if (pSpatialSpecificConfig->decorrConfig > 2) { in SpatialDecParseSpecificConfig()
535 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseSpecificConfig()
536 pSpatialSpecificConfig->OttConfig[i].nOttBands = 0; in SpatialDecParseSpecificConfig()
539 for (i = 0; i < pSpatialSpecificConfig->nTttBoxes; i++) { in SpatialDecParseSpecificConfig()
548 if (pSpatialSpecificConfig->tempShapeConfig == 2) { in SpatialDecParseSpecificConfig()
549 pSpatialSpecificConfig->envQuantMode = FDKreadBits(bitstream, 1); in SpatialDecParseSpecificConfig()
589 pSpatialSpecificConfig->sacExtCnt = 0; in SpatialDecParseSpecificConfig()
590 pSpatialSpecificConfig->bResidualCoding = 0; in SpatialDecParseSpecificConfig()
593 bitstream, pSpatialSpecificConfig, pSpatialSpecificConfig->nOttBoxes, in SpatialDecParseSpecificConfig()
594 pSpatialSpecificConfig->nTttBoxes, in SpatialDecParseSpecificConfig()
595 pSpatialSpecificConfig->nOutputChannels, bitsAvailable); in SpatialDecParseSpecificConfig()
602 pSpatialSpecificConfig->coreCodec = coreCodec; in SpatialDecParseSpecificConfig()
604 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, UPMIXTYPE_NORMAL); in SpatialDecParseSpecificConfig()
619 SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, in SpatialDecDefaultSpecificConfig() argument
631 pSpatialSpecificConfig->coreCodec = coreCodec; in SpatialDecDefaultSpecificConfig()
632 pSpatialSpecificConfig->samplingFreq = samplingFreq; in SpatialDecDefaultSpecificConfig()
633 pSpatialSpecificConfig->nTimeSlots = nTimeSlots; in SpatialDecDefaultSpecificConfig()
634 if ((pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_ELD) || in SpatialDecDefaultSpecificConfig()
635 (pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_LD)) in SpatialDecDefaultSpecificConfig()
636 pSpatialSpecificConfig->freqRes = SPATIALDEC_FREQ_RES_23; in SpatialDecDefaultSpecificConfig()
638 pSpatialSpecificConfig->freqRes = SPATIALDEC_FREQ_RES_28; in SpatialDecDefaultSpecificConfig()
641 pSpatialSpecificConfig->treeConfig = in SpatialDecDefaultSpecificConfig()
646 pSpatialSpecificConfig->nOttBoxes = in SpatialDecDefaultSpecificConfig()
647 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOttBoxes; in SpatialDecDefaultSpecificConfig()
648 pSpatialSpecificConfig->nInputChannels = in SpatialDecDefaultSpecificConfig()
649 treePropertyTable[pSpatialSpecificConfig->treeConfig].numInputChannels; in SpatialDecDefaultSpecificConfig()
650 pSpatialSpecificConfig->nOutputChannels = in SpatialDecDefaultSpecificConfig()
651 treePropertyTable[pSpatialSpecificConfig->treeConfig].numOutputChannels; in SpatialDecDefaultSpecificConfig()
654 pSpatialSpecificConfig->quantMode = SPATIALDEC_QUANT_FINE_DEF; in SpatialDecDefaultSpecificConfig()
655 pSpatialSpecificConfig->bArbitraryDownmix = 0; in SpatialDecDefaultSpecificConfig()
656 pSpatialSpecificConfig->bResidualCoding = 0; in SpatialDecDefaultSpecificConfig()
657 if ((pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_ELD) || in SpatialDecDefaultSpecificConfig()
658 (pSpatialSpecificConfig->coreCodec == AOT_ER_AAC_LD)) in SpatialDecDefaultSpecificConfig()
659 pSpatialSpecificConfig->bsFixedGainDMX = SPATIALDEC_GAIN_RSVD2; in SpatialDecDefaultSpecificConfig()
661 pSpatialSpecificConfig->bsFixedGainDMX = SPATIALDEC_GAIN_MODE0; in SpatialDecDefaultSpecificConfig()
663 pSpatialSpecificConfig->tempShapeConfig = SPATIALDEC_TS_TPNOWHITE; in SpatialDecDefaultSpecificConfig()
664 pSpatialSpecificConfig->decorrConfig = SPATIALDEC_DECORR_MODE0; in SpatialDecDefaultSpecificConfig()
666 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecDefaultSpecificConfig()
667 pSpatialSpecificConfig->OttConfig[i].nOttBands = 0; in SpatialDecDefaultSpecificConfig()
970 const SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig, UPMIXTYPE upmixType, in SpatialDecParseFrameData() argument
977 treePropertyTable[pSpatialSpecificConfig->treeConfig] in SpatialDecParseFrameData()
986 syntaxFlags = pSpatialSpecificConfig->syntaxFlags; in SpatialDecParseFrameData()
989 pSpatialSpecificConfig->bsHighRateMode == 0) { in SpatialDecParseFrameData()
1009 if (pSpatialSpecificConfig->nInputChannels <= 0 || in SpatialDecParseFrameData()
1010 pSpatialSpecificConfig->nOutputChannels <= 0) { in SpatialDecParseFrameData()
1020 bitsParamSlot = nBitsParamSlot(pSpatialSpecificConfig->nTimeSlots); in SpatialDecParseFrameData()
1026 (frame->paramSlot[i] >= pSpatialSpecificConfig->nTimeSlots)) { in SpatialDecParseFrameData()
1035 frame->paramSlot[i] = ((pSpatialSpecificConfig->nTimeSlots * (i + 1)) / in SpatialDecParseFrameData()
1051 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseFrameData()
1054 pSpatialSpecificConfig->bitstreamOttBands[i], in SpatialDecParseFrameData()
1055 pSpatialSpecificConfig->ottCLDdefault[i]); in SpatialDecParseFrameData()
1062 for (i = 0; i < pSpatialSpecificConfig->nOttBoxes; i++) { in SpatialDecParseFrameData()
1065 pSpatialSpecificConfig->bitstreamOttBands[i], ICCdefault); in SpatialDecParseFrameData()
1072 if ((pSpatialSpecificConfig->treeConfig == SPATIALDEC_MODE_RSVD7) && in SpatialDecParseFrameData()
1073 (pSpatialSpecificConfig->bsPhaseCoding)) { in SpatialDecParseFrameData()
1077 for (pb = 0; pb < pSpatialSpecificConfig->numOttBandsIPD; pb++) { in SpatialDecParseFrameData()
1090 pSpatialSpecificConfig->numOttBandsIPD, IPDdefault); in SpatialDecParseFrameData()
1102 if (!pSpatialSpecificConfig->bsHighRateMode && in SpatialDecParseFrameData()
1115 dataBands = (pSpatialSpecificConfig->freqRes - 1) / in SpatialDecParseFrameData()
1129 if ((pSpatialSpecificConfig->tempShapeConfig == 3) && in SpatialDecParseFrameData()
1132 TsdErr = TsdRead(bitstream, pSpatialSpecificConfig->nTimeSlots, in SpatialDecParseFrameData()
1147 if ((pSpatialSpecificConfig->tempShapeConfig == 1) || in SpatialDecParseFrameData()
1148 (pSpatialSpecificConfig->tempShapeConfig == 2)) { in SpatialDecParseFrameData()
1152 tempShapeChanTable[pSpatialSpecificConfig->tempShapeConfig - 1] in SpatialDecParseFrameData()
1153 [pSpatialSpecificConfig->treeConfig]; in SpatialDecParseFrameData()
1154 switch (pSpatialSpecificConfig->tempShapeConfig) { in SpatialDecParseFrameData()
1173 pSpatialSpecificConfig->nTimeSlots) != 0) { in SpatialDecParseFrameData()
1177 for (int ts = 0; ts < pSpatialSpecificConfig->nTimeSlots; ts++) { in SpatialDecParseFrameData()
1195 if (pSpatialSpecificConfig->bArbitraryDownmix != 0) { in SpatialDecParseFrameData()
1196 err = parseArbitraryDownmixData(self, pSpatialSpecificConfig, syntaxFlags, in SpatialDecParseFrameData()
1914 spatialDec *self, SPATIAL_SPECIFIC_CONFIG *pSpatialSpecificConfig) { in SpatialDecDecodeHeader() argument
1918 self->samplingFreq = pSpatialSpecificConfig->samplingFreq; in SpatialDecDecodeHeader()
1919 self->timeSlots = pSpatialSpecificConfig->nTimeSlots; in SpatialDecDecodeHeader()
1921 self->bitstreamParameterBands = pSpatialSpecificConfig->freqRes; in SpatialDecDecodeHeader()
2000 self->treeConfig = pSpatialSpecificConfig->treeConfig; in SpatialDecDecodeHeader()
2002 self->numOttBoxes = pSpatialSpecificConfig->nOttBoxes; in SpatialDecDecodeHeader()
2004 self->numInputChannels = pSpatialSpecificConfig->nInputChannels; in SpatialDecDecodeHeader()
2006 self->numOutputChannels = pSpatialSpecificConfig->nOutputChannels; in SpatialDecDecodeHeader()
2008 self->quantMode = pSpatialSpecificConfig->quantMode; in SpatialDecDecodeHeader()
2010 self->arbitraryDownmix = pSpatialSpecificConfig->bArbitraryDownmix; in SpatialDecDecodeHeader()
2020 self->residualCoding = pSpatialSpecificConfig->bResidualCoding; in SpatialDecDecodeHeader()
2024 FX_CFG2FX_DBL(clipGainTable__FDK[pSpatialSpecificConfig->bsFixedGainDMX]); in SpatialDecDecodeHeader()
2026 clipGainSFTable__FDK[pSpatialSpecificConfig->bsFixedGainDMX]; in SpatialDecDecodeHeader()
2028 self->tempShapeConfig = pSpatialSpecificConfig->tempShapeConfig; in SpatialDecDecodeHeader()
2030 self->decorrConfig = pSpatialSpecificConfig->decorrConfig; in SpatialDecDecodeHeader()
2038 self->numOttBandsIPD = pSpatialSpecificConfig->numOttBandsIPD; in SpatialDecDecodeHeader()
2039 self->phaseCoding = pSpatialSpecificConfig->bsPhaseCoding; in SpatialDecDecodeHeader()
2052 pSpatialSpecificConfig->ResidualConfig[i].bResidualPresent; in SpatialDecDecodeHeader()
2056 pSpatialSpecificConfig->ResidualConfig[i].nResidualBands; in SpatialDecDecodeHeader()
2089 self->highRateMode = pSpatialSpecificConfig->bsHighRateMode; in SpatialDecDecodeHeader()
2090 self->decorrType = pSpatialSpecificConfig->bsDecorrType; in SpatialDecDecodeHeader()
2092 SpatialDecDecodeHelperInfo(pSpatialSpecificConfig, UPMIXTYPE_NORMAL); in SpatialDecDecodeHeader()