Lines Matching refs:pSsc
241 static sscCheckOutOfBand(const SPATIAL_SPECIFIC_CONFIG *pSsc,
245 static SACDEC_ERROR sscParseCheck(const SPATIAL_SPECIFIC_CONFIG *pSsc);
251 const SPATIAL_SPECIFIC_CONFIG *pSsc, UINT sampleRate) { in mpegSurroundDecoder_GetNrOfQmfBands() argument
255 if (pSsc != NULL) { in mpegSurroundDecoder_GetNrOfQmfBands()
256 switch (pSsc->coreCodec) { in mpegSurroundDecoder_GetNrOfQmfBands()
258 if ((pSsc->stereoConfigIndex == 3)) { in mpegSurroundDecoder_GetNrOfQmfBands()
260 FDK_ASSERT((pSsc->coreSbrFrameLengthIndex >= 2) && in mpegSurroundDecoder_GetNrOfQmfBands()
261 (pSsc->coreSbrFrameLengthIndex <= 4)); in mpegSurroundDecoder_GetNrOfQmfBands()
262 qmfBands = mapIdx2QmfBands[pSsc->coreSbrFrameLengthIndex - 2]; in mpegSurroundDecoder_GetNrOfQmfBands()
266 samplingFrequency = pSsc->samplingFreq; in mpegSurroundDecoder_GetNrOfQmfBands()
417 const SPATIAL_SPECIFIC_CONFIG *pSsc, SPATIAL_DEC_UPMIX_TYPE *pUpmixType) { in check_UParam_Build_DecConfig() argument
425 switch (pSsc->treeConfig) { in check_UParam_Build_DecConfig()
708 SPATIAL_SPECIFIC_CONFIG *pSsc = in mpegSurroundDecoder_Config() local
721 pSsc = &spatialSpecificConfig; in mpegSurroundDecoder_Config()
742 pSsc = &spatialSpecificConfig; in mpegSurroundDecoder_Config()
765 err = sscCheckOutOfBand(pSsc, coreCodec, samplingRate, frameSize); in mpegSurroundDecoder_Config()
848 static SACDEC_ERROR sscParseCheck(const SPATIAL_SPECIFIC_CONFIG *pSsc) { in sscParseCheck() argument
849 if (pSsc->samplingFreq > 96000) return MPS_PARSE_ERROR; in sscParseCheck()
850 if (pSsc->samplingFreq < 8000) return MPS_PARSE_ERROR; in sscParseCheck()
852 if ((pSsc->treeConfig < 0) || (pSsc->treeConfig > 7)) { in sscParseCheck()
856 if ((pSsc->quantMode < 0) || (pSsc->quantMode > 2)) { in sscParseCheck()
1023 static SACDEC_ERROR sscCheckInBand(SPATIAL_SPECIFIC_CONFIG *pSsc, in sscCheckInBand() argument
1028 FDK_ASSERT(pSsc != NULL); in sscCheckInBand()
1031 if (sscParseCheck(pSsc) != MPS_OK) { in sscCheckInBand()
1036 if (pSsc->samplingFreq != sampleRate) { in sscCheckInBand()
1040 qmfBands = mpegSurroundDecoder_GetNrOfQmfBands(pSsc, pSsc->samplingFreq); in sscCheckInBand()
1042 if (checkTimeSlots(frameLength, qmfBands, pSsc->nTimeSlots) != MPS_OK) { in sscCheckInBand()
1114 sscCheckOutOfBand(const SPATIAL_SPECIFIC_CONFIG *pSsc, const INT coreCodec, in sscCheckOutOfBand() argument
1116 FDK_ASSERT(pSsc != NULL); in sscCheckOutOfBand()
1120 if (sscParseCheck(pSsc) != MPS_OK) { in sscCheckOutOfBand()
1129 if (pSsc->samplingFreq >= 55426) { in sscCheckOutOfBand()
1136 if (pSsc->samplingFreq != sampleRate) { in sscCheckOutOfBand()
1142 if (pSsc->samplingFreq > 48000) { in sscCheckOutOfBand()
1146 qmfBands = mpegSurroundDecoder_GetNrOfQmfBands(pSsc, pSsc->samplingFreq); in sscCheckOutOfBand()
1149 if (!((qmfBands == 32) && (pSsc->nTimeSlots == 15))) { in sscCheckOutOfBand()
1154 if (!((qmfBands == 64) && (pSsc->nTimeSlots == 15))) { in sscCheckOutOfBand()
1159 if (!(((qmfBands == 32) && (pSsc->nTimeSlots == 16)) || in sscCheckOutOfBand()
1160 ((qmfBands == 64) && (pSsc->nTimeSlots == 8)))) { in sscCheckOutOfBand()
1165 if (!((qmfBands == 64) && (pSsc->nTimeSlots == 16))) { in sscCheckOutOfBand()