History

Use bool_t instead of BOOL_T

One bool typedef is already more than enough, two is too many.

Martin Storsjö committed 12 years ago

Commit 17d7b5d1 parent 0f7a95824 files · +82 −83Browse files

Showing the changes to codec/decoder/core (2 of 24 files). Show all

Unified · Split

2 files
  1. codec/decoder/core/src/deblocking.cpp +2 −2
  2. codec/decoder/core/src/decoder_core.cpp +2 −2
codec/decoder/core/src/deblocking.cpp+2−2
@@ -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]);
codec/decoder/core/src/decoder_core.cpp+2−2
@@ -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
108inline BOOL_T CheckSliceNeedReconstruct (int16_t iCurDid, int16_t iCurQid, bool_t bStoreRefBasePicFlag,108inline 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 base110 return ((iCurDid == uiDidMax) && (iCurQid == BASE_QUALITY_ID) && (bStoreRefBasePicFlag)) // store base
111 || (uiLayerDqId == uiTargetDqId); // target layer111 || (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 layer1774 * 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t