bool is one of the built in, standard types in C++, there's no need for a typedef for it.
Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 82 files). Show all
Unified · Split
| @@ -108,7 +108,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 107 unmodified lines | |||
| 108 | uint8_t* pNal = pSrcRbsp; | 108 | uint8_t* pNal = pSrcRbsp; |
| 109 | int32_t iNalSize = iSrcRbspLen; | 109 | int32_t iNalSize = iSrcRbspLen; |
| 110 | PBitStringAux pBs = NULL; | 110 | PBitStringAux pBs = NULL; |
| 111 | bool_t bExtensionFlag = false; | 111 | bool bExtensionFlag = false; |
| 112 | int32_t iErr = ERR_NONE; | 112 | int32_t iErr = ERR_NONE; |
| 113 | int32_t iBitSize = 0; | 113 | int32_t iBitSize = 0; |
| 114 | 114 | ||
| @@ -362,7 +362,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 247 unmodified lines | |||
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | 364 | ||
| 365 | bool_t CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHeaderExt pCurNalHeaderExt, | 365 | bool CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHeaderExt pCurNalHeaderExt, |
| 366 | PSliceHeader pLastSliceHeader, PSliceHeader pCurSliceHeader) { | 366 | PSliceHeader pLastSliceHeader, PSliceHeader pCurSliceHeader) { |
| 367 | const PSps kpSps = pCurSliceHeader->pSps; | 367 | const PSps kpSps = pCurSliceHeader->pSps; |
| 368 | 368 | ||
| @@ -421,7 +421,7 @@ bool_t CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHea · 52 unmodified lines | |||
| 421 | } | 421 | } |
| 422 | 422 | ||
| 423 | 423 | ||
| 424 | bool_t CheckAccessUnitBoundary (const PNalUnit kpCurNal, const PNalUnit kpLastNal, const PSps kpSps) { | 424 | bool CheckAccessUnitBoundary (const PNalUnit kpCurNal, const PNalUnit kpLastNal, const PSps kpSps) { |
| 425 | const PNalUnitHeaderExt kpLastNalHeaderExt = &kpLastNal->sNalHeaderExt; | 425 | const PNalUnitHeaderExt kpLastNalHeaderExt = &kpLastNal->sNalHeaderExt; |
| 426 | const PNalUnitHeaderExt kpCurNalHeaderExt = &kpCurNal->sNalHeaderExt; | 426 | const PNalUnitHeaderExt kpCurNalHeaderExt = &kpCurNal->sNalHeaderExt; |
| 427 | const SSliceHeader* kpLastSliceHeader = &kpLastNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader; | 427 | const SSliceHeader* kpLastSliceHeader = &kpLastNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader; |
| @@ -560,7 +560,7 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t · 132 unmodified lines | |||
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | void_t ParseRefBasePicMarking (PBitStringAux pBs, PRefBasePicMarking pRefBasePicMarking) { | 562 | void_t ParseRefBasePicMarking (PBitStringAux pBs, PRefBasePicMarking pRefBasePicMarking) { |
| 563 | const bool_t kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs); | 563 | const bool kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs); |
| 564 | pRefBasePicMarking->bAdaptiveRefBasePicMarkingModeFlag = kbAdaptiveMarkingModeFlag; | 564 | pRefBasePicMarking->bAdaptiveRefBasePicMarkingModeFlag = kbAdaptiveMarkingModeFlag; |
| 565 | if (kbAdaptiveMarkingModeFlag) { | 565 | if (kbAdaptiveMarkingModeFlag) { |
| 566 | int32_t iIdx = 0; | 566 | int32_t iIdx = 0; |
| @@ -670,7 +670,7 @@ static const SLevelLimits g_kSLevelLimits[17] = { · 103 unmodified lines | |||
| 670 | {2073600, 36864, 184320, 240000, 240000, -2048, 2047, 2, 16} /* level 5.2 */ | 670 | {2073600, 36864, 184320, 240000, 240000, -2048, 2047, 2, 16} /* level 5.2 */ |
| 671 | }; | 671 | }; |
| 672 | 672 | ||
| 673 | const SLevelLimits *GetLevelLimits(int32_t iLevelIdx, bool_t bConstraint3) { | 673 | const SLevelLimits *GetLevelLimits(int32_t iLevelIdx, bool bConstraint3) { |
| 674 | switch (iLevelIdx) { | 674 | switch (iLevelIdx) { |
| 675 | case 10: | 675 | case 10: |
| 676 | return &g_kSLevelLimits[0]; | 676 | return &g_kSLevelLimits[0]; |
| @@ -737,8 +737,8 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 60 unmodified lines | |||
| 737 | ProfileIdc uiProfileIdc; | 737 | ProfileIdc uiProfileIdc; |
| 738 | uint8_t uiLevelIdc; | 738 | uint8_t uiLevelIdc; |
| 739 | int32_t iSpsId; | 739 | int32_t iSpsId; |
| 740 | bool_t bConstraintSetFlags[6] = { false }; | 740 | bool bConstraintSetFlags[6] = { false }; |
| 741 | const bool_t kbUseSubsetFlag = IS_SUBSET_SPS_NAL (pNalHead->eNalUnitType); | 741 | const bool kbUseSubsetFlag = IS_SUBSET_SPS_NAL (pNalHead->eNalUnitType); |
| 742 | 742 | ||
| 743 | 743 | ||
| 744 | if (kbUseSubsetFlag) { // SubsetSps | 744 | if (kbUseSubsetFlag) { // SubsetSps |