One bool typedef is already more than enough, two is too many.
Showing the changes to codec/decoder (2 of 24 files). Show all
Unified · Split
| @@ -252,8 +252,8 @@ int32_t DeblockingAvailableNoInterlayer (PDqLayer pCurDqLayer, int32_t iFilterId · 251 unmodified lines | |||
| 252 | int32_t iMbY = pCurDqLayer->iMbY; | 252 | int32_t iMbY = pCurDqLayer->iMbY; |
| 253 | int32_t iMbX = pCurDqLayer->iMbX; | 253 | int32_t iMbX = pCurDqLayer->iMbX; |
| 254 | int32_t iMbXy = pCurDqLayer->iMbXyIndex; | 254 | int32_t iMbXy = pCurDqLayer->iMbXyIndex; |
| 255 | BOOL_T bLeftFlag = FALSE; | 255 | bool_t bLeftFlag = FALSE; |
| 256 | BOOL_T bTopFlag = FALSE; | 256 | bool_t bTopFlag = FALSE; |
| 257 | 257 | ||
| 258 | if (2 == iFilterIdc) { | 258 | if (2 == iFilterIdc) { |
| 259 | bLeftFlag = (iMbX > 0) && (pCurDqLayer->pSliceIdc[iMbXy] == pCurDqLayer->pSliceIdc[iMbXy - 1]); | 259 | bLeftFlag = (iMbX > 0) && (pCurDqLayer->pSliceIdc[iMbXy] == pCurDqLayer->pSliceIdc[iMbXy - 1]); |
| @@ -105,7 +105,7 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 104 unmodified lines | |||
| 105 | return 0; | 105 | return 0; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | inline BOOL_T CheckSliceNeedReconstruct (int16_t iCurDid, int16_t iCurQid, bool_t bStoreRefBasePicFlag, | 108 | inline bool_t CheckSliceNeedReconstruct (int16_t iCurDid, int16_t iCurQid, bool_t bStoreRefBasePicFlag, |
| 109 | uint8_t uiDidMax, uint8_t uiLayerDqId, uint8_t uiTargetDqId) { | 109 | uint8_t uiDidMax, uint8_t uiLayerDqId, uint8_t uiTargetDqId) { |
| 110 | return ((iCurDid == uiDidMax) && (iCurQid == BASE_QUALITY_ID) && (bStoreRefBasePicFlag)) // store base | 110 | return ((iCurDid == uiDidMax) && (iCurQid == BASE_QUALITY_ID) && (bStoreRefBasePicFlag)) // store base |
| 111 | || (uiLayerDqId == uiTargetDqId); // target layer | 111 | || (uiLayerDqId == uiTargetDqId); // target layer |
| @@ -1774,7 +1774,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1662 unmodified lines | |||
| 1774 | * Loop decoding for slices (even FMO and/ multiple slices) within a dq layer | 1774 | * Loop decoding for slices (even FMO and/ multiple slices) within a dq layer |
| 1775 | */ | 1775 | */ |
| 1776 | while (iIdx <= iEndIdx) { | 1776 | while (iIdx <= iEndIdx) { |
| 1777 | BOOL_T bReconstructSlice; | 1777 | bool_t bReconstructSlice; |
| 1778 | iCurrIdQ = pNalCur->sNalHeaderExt.uiQualityId; | 1778 | iCurrIdQ = pNalCur->sNalHeaderExt.uiQualityId; |
| 1779 | iCurrIdD = pNalCur->sNalHeaderExt.uiDependencyId; | 1779 | iCurrIdD = pNalCur->sNalHeaderExt.uiDependencyId; |
| 1780 | pSh = &pNalCur->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader; | 1780 | pSh = &pNalCur->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader; |