Lines Matching refs:pMpegSurroundDecoder
355 CMpegSurroundDecoder *pMpegSurroundDecoder, int initFlags, in updateMpegSurroundDecoderStatus() argument
357 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in updateMpegSurroundDecoderStatus()
359 if ((pMpegSurroundDecoder->mpegSurroundSscIsGlobalCfg != 0) && in updateMpegSurroundDecoderStatus()
360 (pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] >= in updateMpegSurroundDecoderStatus()
363 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in updateMpegSurroundDecoderStatus()
366 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in updateMpegSurroundDecoderStatus()
369 pMpegSurroundDecoder->ancStartStopPrev = ancStartStopPrev; in updateMpegSurroundDecoderStatus()
373 CMpegSurroundDecoder **pMpegSurroundDecoder, int stereoConfigIndex,
378 CMpegSurroundDecoder *pMpegSurroundDecoder) { in mpegSurroundDecoder_IsFullMpegSurroundDecoderInstanceAvailable() argument
381 if (pMpegSurroundDecoder->pSpatialDec != NULL) { in mpegSurroundDecoder_IsFullMpegSurroundDecoderInstanceAvailable()
389 CMpegSurroundDecoder **pMpegSurroundDecoder, int stereoConfigIndex, in mpegSurroundDecoder_Open() argument
393 error = mpegSurroundDecoder_Create(pMpegSurroundDecoder, stereoConfigIndex, in mpegSurroundDecoder_Open()
511 CMpegSurroundDecoder *pMpegSurroundDecoder) { in initMpegSurroundDecoder() argument
514 int upmixTypeCurr = pMpegSurroundDecoder->upmixType; in initMpegSurroundDecoder()
516 FDK_ASSERT(pMpegSurroundDecoder != NULL); in initMpegSurroundDecoder()
519 &pMpegSurroundDecoder->spatialSpecificConfigBackup; in initMpegSurroundDecoder()
521 &pMpegSurroundDecoder in initMpegSurroundDecoder()
522 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameDecode]; in initMpegSurroundDecoder()
524 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode]; in initMpegSurroundDecoder()
535 &pMpegSurroundDecoder->mpegSurroundUserParams, in initMpegSurroundDecoder()
536 &pMpegSurroundDecoder->decConfig, pSSCinput, in initMpegSurroundDecoder()
537 &pMpegSurroundDecoder->upmixType); in initMpegSurroundDecoder()
561 pMpegSurroundDecoder->upmixType), /* upmixType changed */ in initMpegSurroundDecoder()
573 pMpegSurroundDecoder->pSpatialDec, in initMpegSurroundDecoder()
574 &pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameDecode], in initMpegSurroundDecoder()
575 pSSCtarget, nrOfQmfBands, pMpegSurroundDecoder->upmixType, in initMpegSurroundDecoder()
576 &pMpegSurroundDecoder->mpegSurroundUserParams, initFlags); in initMpegSurroundDecoder()
584 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in initMpegSurroundDecoder()
591 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] = in initMpegSurroundDecoder()
600 CMpegSurroundDecoder *pMpegSurroundDecoder) { in mpegSurroundDecoder_Init() argument
603 if (pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode]) { in mpegSurroundDecoder_Init()
604 err = initMpegSurroundDecoder(pMpegSurroundDecoder); in mpegSurroundDecoder_Init()
613 CMpegSurroundDecoder **pMpegSurroundDecoder, int stereoConfigIndex, in mpegSurroundDecoder_Create() argument
623 if (*pMpegSurroundDecoder == NULL) { in mpegSurroundDecoder_Create()
624 FDK_ALLOCATE_MEMORY_1D(*pMpegSurroundDecoder, 1, CMpegSurroundDecoder) in mpegSurroundDecoder_Create()
627 err = SpatialDecCreateBsFrame(&(*pMpegSurroundDecoder)->bsFrames[i], in mpegSurroundDecoder_Create()
628 &(*pMpegSurroundDecoder)->llState); in mpegSurroundDecoder_Create()
630 sacDec = *pMpegSurroundDecoder; in mpegSurroundDecoder_Create()
634 (*pMpegSurroundDecoder)->pQmfDomain = pQmfDomain; in mpegSurroundDecoder_Create()
636 (*pMpegSurroundDecoder)->bsFrameDelay = 1; in mpegSurroundDecoder_Create()
637 (*pMpegSurroundDecoder)->bsFrameParse = 0; in mpegSurroundDecoder_Create()
638 (*pMpegSurroundDecoder)->bsFrameDecode = 0; in mpegSurroundDecoder_Create()
642 sacDec = *pMpegSurroundDecoder; in mpegSurroundDecoder_Create()
678 *pMpegSurroundDecoder = sacDec; in mpegSurroundDecoder_Create()
689 *pMpegSurroundDecoder = NULL; in mpegSurroundDecoder_Create()
701 CMpegSurroundDecoder *pMpegSurroundDecoder, HANDLE_FDK_BITSTREAM hBs, in mpegSurroundDecoder_Config() argument
708 &pMpegSurroundDecoder->spatialSpecificConfigBackup; in mpegSurroundDecoder_Config()
722 hBs, &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Config()
737 hBs, &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Config()
762 err = mpegSurroundDecoder_Open(&pMpegSurroundDecoder, stereoConfigIndex, in mpegSurroundDecoder_Config()
772 &pMpegSurroundDecoder in mpegSurroundDecoder_Config()
773 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameParse]; in mpegSurroundDecoder_Config()
776 &pMpegSurroundDecoder->spatialSpecificConfigBackup, sscParse)) { in mpegSurroundDecoder_Config()
777 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameParse] |= in mpegSurroundDecoder_Config()
780 if (pMpegSurroundDecoder->pSpatialDec == NULL) { in mpegSurroundDecoder_Config()
784 SpatialDecInitParserContext(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Config()
785 pMpegSurroundDecoder->pSpatialDec->pConfigCurrent = in mpegSurroundDecoder_Config()
786 &pMpegSurroundDecoder in mpegSurroundDecoder_Config()
787 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameDecode]; in mpegSurroundDecoder_Config()
793 pMpegSurroundDecoder->mpegSurroundSscIsGlobalCfg = 1; in mpegSurroundDecoder_Config()
804 CMpegSurroundDecoder *pMpegSurroundDecoder, int mpsDataBits) { in mpegSurroundOperationMode() argument
809 (pMpegSurroundDecoder->mpegSurroundUserParams.blindEnable == 0)) { in mpegSurroundOperationMode()
813 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundOperationMode()
1036 CMpegSurroundDecoder *pMpegSurroundDecoder, in mpegSurroundDecoder_ConfigureQmfDomain() argument
1042 if (pMpegSurroundDecoder == NULL) { in mpegSurroundDecoder_ConfigureQmfDomain()
1046 FDK_ASSERT(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_ConfigureQmfDomain()
1048 pGC = &pMpegSurroundDecoder->pQmfDomain->globalConf; in mpegSurroundDecoder_ConfigureQmfDomain()
1049 if (pMpegSurroundDecoder->mpegSurroundSscIsGlobalCfg) { in mpegSurroundDecoder_ConfigureQmfDomain()
1051 &pMpegSurroundDecoder->spatialSpecificConfigBackup; in mpegSurroundDecoder_ConfigureQmfDomain()
1071 pMpegSurroundDecoder->pSpatialDec->createParams.maxNumInputChannels; in mpegSurroundDecoder_ConfigureQmfDomain()
1074 pMpegSurroundDecoder->pSpatialDec->createParams.maxNumOutputChannels; in mpegSurroundDecoder_ConfigureQmfDomain()
1079 pMpegSurroundDecoder->pSpatialDec->createParams.maxNumInputChannels); in mpegSurroundDecoder_ConfigureQmfDomain()
1170 CMpegSurroundDecoder *pMpegSurroundDecoder, HANDLE_FDK_BITSTREAM hBs, in mpegSurroundDecoder_ParseNoHeader() argument
1176 if (pMpegSurroundDecoder == NULL || hBs == NULL) { in mpegSurroundDecoder_ParseNoHeader()
1180 sscParse = &pMpegSurroundDecoder in mpegSurroundDecoder_ParseNoHeader()
1181 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameParse]; in mpegSurroundDecoder_ParseNoHeader()
1188 if (pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameParse]) { in mpegSurroundDecoder_ParseNoHeader()
1189 FDKmemcpy(sscParse, &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_ParseNoHeader()
1191 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameParse] = in mpegSurroundDecoder_ParseNoHeader()
1199 pMpegSurroundDecoder->pSpatialDec, in mpegSurroundDecoder_ParseNoHeader()
1200 &pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameParse], in mpegSurroundDecoder_ParseNoHeader()
1201 hBs, sscParse, (UPMIXTYPE)pMpegSurroundDecoder->upmixType, in mpegSurroundDecoder_ParseNoHeader()
1204 pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameParse] in mpegSurroundDecoder_ParseNoHeader()
1212 pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameParse] in mpegSurroundDecoder_ParseNoHeader()
1225 static int isValidAncType(CMpegSurroundDecoder *pMpegSurroundDecoder, in isValidAncType() argument
1235 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in isValidAncType()
1246 static int isValidAncStartStop(CMpegSurroundDecoder *pMpegSurroundDecoder, in isValidAncStartStop() argument
1253 if ((pMpegSurroundDecoder->ancStartStopPrev == MPEGS_START) || in isValidAncStartStop()
1254 (pMpegSurroundDecoder->ancStartStopPrev == MPEGS_CONTINUE)) { in isValidAncStartStop()
1263 if ((pMpegSurroundDecoder->ancStartStopPrev == MPEGS_STOP) || in isValidAncStartStop()
1264 (pMpegSurroundDecoder->ancStartStopPrev == MPEGS_START_STOP)) { in isValidAncStartStop()
1276 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in isValidAncStartStop()
1280 pMpegSurroundDecoder->ancStartStopPrev = (MPEGS_ANCSTARTSTOP)ancStartStop; in isValidAncStartStop()
1286 int mpegSurroundDecoder_Parse(CMpegSurroundDecoder *pMpegSurroundDecoder, in mpegSurroundDecoder_Parse() argument
1300 if (pMpegSurroundDecoder == NULL) { in mpegSurroundDecoder_Parse()
1304 FDK_ASSERT(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Parse()
1308 sscParse = &pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1309 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameParse]; in mpegSurroundDecoder_Parse()
1310 bsFrame = &pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameParse]; in mpegSurroundDecoder_Parse()
1326 if (isValidAncType(pMpegSurroundDecoder, ancType)) { in mpegSurroundDecoder_Parse()
1328 if (isValidAncStartStop(pMpegSurroundDecoder, ancStartStop)) { in mpegSurroundDecoder_Parse()
1338 pMpegSurroundDecoder->mpsData[i] = FDKreadBits(hBs, 8); in mpegSurroundDecoder_Parse()
1340 pMpegSurroundDecoder->mpsDataBits = mpsDataBits; in mpegSurroundDecoder_Parse()
1347 if ((pMpegSurroundDecoder->mpsDataBits + mpsDataBits) > in mpegSurroundDecoder_Parse()
1353 pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1354 ->mpsData[(pMpegSurroundDecoder->mpsDataBits / 8) + i] = in mpegSurroundDecoder_Parse()
1357 pMpegSurroundDecoder->mpsDataBits += mpsDataBits; in mpegSurroundDecoder_Parse()
1358 FDKinitBitStream(&mpsBsData, pMpegSurroundDecoder->mpsData, in mpegSurroundDecoder_Parse()
1360 pMpegSurroundDecoder->mpsDataBits, BS_READER); in mpegSurroundDecoder_Parse()
1365 pMpegSurroundDecoder->mpsDataBits = mpsDataBits; in mpegSurroundDecoder_Parse()
1379 pMpegSurroundDecoder->spatialSpecificConfigBackup; in mpegSurroundDecoder_Parse()
1386 &pMpegSurroundDecoder->spatialSpecificConfigBackup, coreCodec, in mpegSurroundDecoder_Parse()
1387 pMpegSurroundDecoder->upmixType); in mpegSurroundDecoder_Parse()
1399 &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Parse()
1403 pMpegSurroundDecoder->spatialSpecificConfigBackup = in mpegSurroundDecoder_Parse()
1408 pMpegSurroundDecoder->mpsDataBits -= parseResult; in mpegSurroundDecoder_Parse()
1412 &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Parse()
1414 pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1415 ->initFlags[pMpegSurroundDecoder->bsFrameParse] |= in mpegSurroundDecoder_Parse()
1417 SpatialDecInitParserContext(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Parse()
1420 pMpegSurroundDecoder->mpegSurroundSscIsGlobalCfg = 0; in mpegSurroundDecoder_Parse()
1426 if (pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1427 ->initFlags[pMpegSurroundDecoder->bsFrameParse] & in mpegSurroundDecoder_Parse()
1436 if (pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1437 ->initFlags[pMpegSurroundDecoder->bsFrameParse]) { in mpegSurroundDecoder_Parse()
1439 &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Parse()
1441 pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1442 ->fOnSync[pMpegSurroundDecoder->bsFrameParse] = in mpegSurroundDecoder_Parse()
1446 if (pMpegSurroundDecoder in mpegSurroundDecoder_Parse()
1447 ->fOnSync[pMpegSurroundDecoder->bsFrameParse] >= in mpegSurroundDecoder_Parse()
1461 pMpegSurroundDecoder->pSpatialDec, bsFrame, hMpsBsData, in mpegSurroundDecoder_Parse()
1462 sscParse, (UPMIXTYPE)pMpegSurroundDecoder->upmixType, in mpegSurroundDecoder_Parse()
1472 (nbits > pMpegSurroundDecoder->mpsDataBits) || in mpegSurroundDecoder_Parse()
1473 (pMpegSurroundDecoder->mpsDataBits > nbits + 7 && in mpegSurroundDecoder_Parse()
1479 pMpegSurroundDecoder->mpsDataBits -= nbits; in mpegSurroundDecoder_Parse()
1489 pMpegSurroundDecoder->ancStartStopPrev = ancStartStop; in mpegSurroundDecoder_Parse()
1491 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundDecoder_Parse()
1494 pMpegSurroundDecoder->mpsDataBits = 0; in mpegSurroundDecoder_Parse()
1509 int mpegSurroundDecoder_Apply(CMpegSurroundDecoder *pMpegSurroundDecoder, in mpegSurroundDecoder_Apply() argument
1523 if (pMpegSurroundDecoder == NULL) { in mpegSurroundDecoder_Apply()
1527 FDK_ASSERT(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Apply()
1537 pMpegSurroundDecoder->pSpatialDec->pConfigCurrent = in mpegSurroundDecoder_Apply()
1538 &pMpegSurroundDecoder in mpegSurroundDecoder_Apply()
1539 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameDecode]; in mpegSurroundDecoder_Apply()
1540 newData = pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameParse] in mpegSurroundDecoder_Apply()
1543 switch (mpegSurroundOperationMode(pMpegSurroundDecoder, 1000)) { in mpegSurroundDecoder_Apply()
1545 if (pMpegSurroundDecoder in mpegSurroundDecoder_Apply()
1546 ->initFlags[pMpegSurroundDecoder->bsFrameDecode]) { in mpegSurroundDecoder_Apply()
1547 err = initMpegSurroundDecoder(pMpegSurroundDecoder); in mpegSurroundDecoder_Apply()
1551 if ((pMpegSurroundDecoder in mpegSurroundDecoder_Apply()
1552 ->fOnSync[pMpegSurroundDecoder->bsFrameDecode] != in mpegSurroundDecoder_Apply()
1554 (pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameDecode] in mpegSurroundDecoder_Apply()
1558 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in mpegSurroundDecoder_Apply()
1565 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in mpegSurroundDecoder_Apply()
1576 if (pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] != in mpegSurroundDecoder_Apply()
1598 if (pMpegSurroundDecoder->mpegSurroundUserParams.bypassMode) { in mpegSurroundDecoder_Apply()
1602 if (pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode]) { in mpegSurroundDecoder_Apply()
1608 if (pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] & in mpegSurroundDecoder_Apply()
1612 &pMpegSurroundDecoder->spatialSpecificConfigBackup, coreCodec, in mpegSurroundDecoder_Apply()
1616 pMpegSurroundDecoder->mpegSurroundDecoderLevel, in mpegSurroundDecoder_Apply()
1617 pMpegSurroundDecoder->mpegSurroundUserParams.blindEnable)) { in mpegSurroundDecoder_Apply()
1624 &pMpegSurroundDecoder->spatialSpecificConfigBackup, in mpegSurroundDecoder_Apply()
1625 &pMpegSurroundDecoder->spatialSpecificConfig in mpegSurroundDecoder_Apply()
1626 [pMpegSurroundDecoder->bsFrameDecode]) == MPS_UNEQUAL_SSC) { in mpegSurroundDecoder_Apply()
1627 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_Apply()
1629 SpatialDecInitParserContext(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Apply()
1638 err = initMpegSurroundDecoder(pMpegSurroundDecoder); in mpegSurroundDecoder_Apply()
1643 pMpegSurroundDecoder->fOnSync[pMpegSurroundDecoder->bsFrameDecode] = in mpegSurroundDecoder_Apply()
1661 if (pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsAnalysis == 0) { in mpegSurroundDecoder_Apply()
1667 pMpegSurroundDecoder->pSpatialDec->numOutputChannelsAT * in mpegSurroundDecoder_Apply()
1668 pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsSynthesis) / in mpegSurroundDecoder_Apply()
1669 pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsAnalysis; in mpegSurroundDecoder_Apply()
1675 if ((pMpegSurroundDecoder->pSpatialDec->pConfigCurrent->syntaxFlags & in mpegSurroundDecoder_Apply()
1677 (pMpegSurroundDecoder->pSpatialDec->stereoConfigIndex > 1)) { in mpegSurroundDecoder_Apply()
1683 pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsSynthesis) / in mpegSurroundDecoder_Apply()
1684 pMpegSurroundDecoder->pQmfDomain->globalConf.nBandsAnalysis; in mpegSurroundDecoder_Apply()
1685 pMpegSurroundDecoder->pQmfDomain->globalConf.TDinput = in mpegSurroundDecoder_Apply()
1695 if (pMpegSurroundDecoder->mpegSurroundUseTimeInterface) { in mpegSurroundDecoder_Apply()
1698 pMpegSurroundDecoder->pQmfDomain->globalConf.TDinput = input; in mpegSurroundDecoder_Apply()
1706 pMpegSurroundDecoder->pSpatialDec, in mpegSurroundDecoder_Apply()
1707 &pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameDecode], in mpegSurroundDecoder_Apply()
1708 pMpegSurroundDecoder->mpegSurroundUseTimeInterface ? INPUTMODE_TIME in mpegSurroundDecoder_Apply()
1710 pMpegSurroundDecoder->pQmfDomain->globalConf.TDinput, NULL, NULL, in mpegSurroundDecoder_Apply()
1712 *nChannels = pMpegSurroundDecoder->pSpatialDec->numOutputChannelsAT; in mpegSurroundDecoder_Apply()
1716 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundDecoder_Apply()
1724 (pMpegSurroundDecoder->pSpatialDec->errInt != in mpegSurroundDecoder_Apply()
1727 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundDecoder_Apply()
1734 !(pMpegSurroundDecoder->upmixType == UPMIX_TYPE_BYPASS)) { in mpegSurroundDecoder_Apply()
1735 SpatialDecChannelProperties(pMpegSurroundDecoder->pSpatialDec, channelType, in mpegSurroundDecoder_Apply()
1744 pMpegSurroundDecoder->pSpatialDec->numParameterSetsPrev = in mpegSurroundDecoder_Apply()
1745 pMpegSurroundDecoder->bsFrames[pMpegSurroundDecoder->bsFrameDecode] in mpegSurroundDecoder_Apply()
1756 CMpegSurroundDecoder *pMpegSurroundDecoder) { in mpegSurroundDecoder_FreeMem() argument
1759 if (pMpegSurroundDecoder != NULL) { in mpegSurroundDecoder_FreeMem()
1760 FDK_SpatialDecClose(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_FreeMem()
1761 pMpegSurroundDecoder->pSpatialDec = NULL; in mpegSurroundDecoder_FreeMem()
1770 void mpegSurroundDecoder_Close(CMpegSurroundDecoder *pMpegSurroundDecoder) { in mpegSurroundDecoder_Close() argument
1771 if (pMpegSurroundDecoder != NULL) { in mpegSurroundDecoder_Close()
1772 FDK_SpatialDecClose(pMpegSurroundDecoder->pSpatialDec); in mpegSurroundDecoder_Close()
1773 pMpegSurroundDecoder->pSpatialDec = NULL; in mpegSurroundDecoder_Close()
1776 SpatialDecCloseBsFrame(&pMpegSurroundDecoder->bsFrames[i]); in mpegSurroundDecoder_Close()
1779 FDK_FREE_MEMORY_1D(pMpegSurroundDecoder); in mpegSurroundDecoder_Close()
1820 CMpegSurroundDecoder *pMpegSurroundDecoder, const SACDEC_PARAM param, in mpegSurroundDecoder_SetParam() argument
1826 if (pMpegSurroundDecoder != NULL) { in mpegSurroundDecoder_SetParam()
1828 pUserParams = &pMpegSurroundDecoder->mpegSurroundUserParams; in mpegSurroundDecoder_SetParam()
1849 pMpegSurroundDecoder in mpegSurroundDecoder_SetParam()
1850 ->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1863 if (pMpegSurroundDecoder->mpegSurroundUseTimeInterface != (UCHAR)value) { in mpegSurroundDecoder_SetParam()
1864 pMpegSurroundDecoder->mpegSurroundUseTimeInterface = (UCHAR)value; in mpegSurroundDecoder_SetParam()
1865 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1872 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundDecoder_SetParam()
1881 updateMpegSurroundDecoderStatus(pMpegSurroundDecoder, in mpegSurroundDecoder_SetParam()
1896 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1910 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1924 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1938 pMpegSurroundDecoder->initFlags[pMpegSurroundDecoder->bsFrameDecode] |= in mpegSurroundDecoder_SetParam()
1953 CMpegSurroundDecoder *pMpegSurroundDecoder, int *bsPseudoLr) { in mpegSurroundDecoder_IsPseudoLR() argument
1954 if (pMpegSurroundDecoder != NULL) { in mpegSurroundDecoder_IsPseudoLR()
1956 &pMpegSurroundDecoder in mpegSurroundDecoder_IsPseudoLR()
1957 ->spatialSpecificConfig[pMpegSurroundDecoder->bsFrameDecode]; in mpegSurroundDecoder_IsPseudoLR()