Free slice's MB cache buffer
| 795 | |
| 796 | // Free slice's MB cache buffer |
| 797 | void FreeMbCache (SMbCache* pMbCache, CMemoryAlign* pMa) { |
| 798 | if (NULL != pMbCache->pCoeffLevel) { |
| 799 | pMa->WelsFree (pMbCache->pCoeffLevel, "pMbCache->pCoeffLevel"); |
| 800 | pMbCache->pCoeffLevel = NULL; |
| 801 | } |
| 802 | if (NULL != pMbCache->pMemPredMb) { |
| 803 | pMa->WelsFree (pMbCache->pMemPredMb, "pMbCache->pMemPredMb"); |
| 804 | pMbCache->pMemPredMb = NULL; |
| 805 | } |
| 806 | if (NULL != pMbCache->pSkipMb) { |
| 807 | pMa->WelsFree (pMbCache->pSkipMb, "pMbCache->pSkipMb"); |
| 808 | pMbCache->pSkipMb = NULL; |
| 809 | } |
| 810 | if (NULL != pMbCache->pMemPredBlk4) { |
| 811 | pMa->WelsFree (pMbCache->pMemPredBlk4, "pMbCache->pMemPredBlk4"); |
| 812 | pMbCache->pMemPredBlk4 = NULL; |
| 813 | } |
| 814 | if (NULL != pMbCache->pBufferInterPredMe) { |
| 815 | pMa->WelsFree (pMbCache->pBufferInterPredMe, "pMbCache->pBufferInterPredMe"); |
| 816 | pMbCache->pBufferInterPredMe = NULL; |
| 817 | } |
| 818 | if (NULL != pMbCache->pPrevIntra4x4PredModeFlag) { |
| 819 | pMa->WelsFree (pMbCache->pPrevIntra4x4PredModeFlag, "pMbCache->pPrevIntra4x4PredModeFlag"); |
| 820 | pMbCache->pPrevIntra4x4PredModeFlag = NULL; |
| 821 | } |
| 822 | if (NULL != pMbCache->pRemIntra4x4PredModeFlag) { |
| 823 | pMa->WelsFree (pMbCache->pRemIntra4x4PredModeFlag, "pMbCache->pRemIntra4x4PredModeFlag"); |
| 824 | pMbCache->pRemIntra4x4PredModeFlag = NULL; |
| 825 | } |
| 826 | if (NULL != pMbCache->pDct) { |
| 827 | pMa->WelsFree (pMbCache->pDct, "pMbCache->pDct"); |
| 828 | pMbCache->pDct = NULL; |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | //Initialize slice's boundary info) |
| 833 | int32_t InitSliceBoundaryInfo (SDqLayer* pCurLayer, |
no test coverage detected