One bool typedef is already more than enough, two is too many.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 24 files). Show all
Unified · Split
| @@ -636,10 +636,10 @@ static void InitMbInfo (sWelsEncCtx* pEnc, SMB* pList, SDqLayer* pLayer, con · 635 unmodified lines | ||
| 636 | 636 | &pEnc->pRefIndexBlock4x4[MB_BLOCK8x8_NUM * kiOffset]); |
| 637 | 637 | |
| 638 | 638 | for (iIdx = 0; iIdx < iMbNum; iIdx++) { |
| 639 | − BOOL_T bLeft; | |
| 640 | − BOOL_T bTop; | |
| 641 | − BOOL_T bLeftTop; | |
| 642 | − BOOL_T bRightTop; | |
| 639 | + bool_t bLeft; | |
| 640 | + bool_t bTop; | |
| 641 | + bool_t bLeftTop; | |
| 642 | + bool_t bRightTop; | |
| 643 | 643 | int32_t iLeftXY, iTopXY, iLeftTopXY, iRightTopXY; |
| 644 | 644 | uint8_t uiSliceIdc; |
| 645 | 645 | |
| @@ -1667,7 +1667,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 1021 unmodified lines | ||
| 1667 | 1667 | while (ilayer < pParam->iNumDependencyLayer) { |
| 1668 | 1668 | SDqLayer* pDq = pCtx->ppDqLayerList[ilayer]; |
| 1669 | 1669 | SDLayerParam* pDlp = &pCtx->pSvcParam->sDependencyLayers[ilayer]; |
| 1670 | − const BOOL_T kbIsDynamicSlicing = (SM_DYN_SLICE == pDlp->sMso.uiSliceMode); | |
| 1670 | + const bool_t kbIsDynamicSlicing = (SM_DYN_SLICE == pDlp->sMso.uiSliceMode); | |
| 1671 | 1671 | |
| 1672 | 1672 | // pDq layers |
| 1673 | 1673 | if (NULL != pDq) { |
| @@ -2312,10 +2312,10 @@ void DynslcUpdateMbNeighbourInfoListForAllSlices (SSliceCtx* pSliceCtx, SMB* pMb · 638 unmodified lines | ||
| 2312 | 2312 | const int32_t kiMbXY = pMb->iMbXY; |
| 2313 | 2313 | const int32_t kiMbX = pMb->iMbX; |
| 2314 | 2314 | const int32_t kiMbY = pMb->iMbY; |
| 2315 | − BOOL_T bLeft; | |
| 2316 | − BOOL_T bTop; | |
| 2317 | − BOOL_T bLeftTop; | |
| 2318 | − BOOL_T bRightTop; | |
| 2315 | + bool_t bLeft; | |
| 2316 | + bool_t bTop; | |
| 2317 | + bool_t bLeftTop; | |
| 2318 | + bool_t bRightTop; | |
| 2319 | 2319 | int32_t uiSliceIdc; |
| 2320 | 2320 | int32_t iLeftXY, iTopXY, iLeftTopXY, iRightTopXY; |
| 2321 | 2321 | |