History

Use bool instead of bool_t

bool is one of the built in, standard types in C++, there's no need for a typedef for it.

Martin Storsjö committed 12 years ago

Commit 2b77fe71 parent 17d7b5d82 files · +468 −471Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 82 files). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+7−7
@@ -108,7 +108,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 107 unmodified lines
108108 uint8_t* pNal = pSrcRbsp;
109109 int32_t iNalSize = iSrcRbspLen;
110110 PBitStringAux pBs = NULL;
111− bool_t bExtensionFlag = false;
111+ bool bExtensionFlag = false;
112112 int32_t iErr = ERR_NONE;
113113 int32_t iBitSize = 0;
114114
@@ -362,7 +362,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 247 unmodified lines
362362 }
363363
364364
365−bool_t CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHeaderExt pCurNalHeaderExt,
365+bool CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHeaderExt pCurNalHeaderExt,
366366 PSliceHeader pLastSliceHeader, PSliceHeader pCurSliceHeader) {
367367 const PSps kpSps = pCurSliceHeader->pSps;
368368
@@ -421,7 +421,7 @@ bool_t CheckAccessUnitBoundaryExt (PNalUnitHeaderExt pLastNalHdrExt, PNalUnitHea · 52 unmodified lines
421421 }
422422
423423
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) {
425425 const PNalUnitHeaderExt kpLastNalHeaderExt = &kpLastNal->sNalHeaderExt;
426426 const PNalUnitHeaderExt kpCurNalHeaderExt = &kpCurNal->sNalHeaderExt;
427427 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
560560 }
561561
562562 void_t ParseRefBasePicMarking (PBitStringAux pBs, PRefBasePicMarking pRefBasePicMarking) {
563− const bool_t kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs);
563+ const bool kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs);
564564 pRefBasePicMarking->bAdaptiveRefBasePicMarkingModeFlag = kbAdaptiveMarkingModeFlag;
565565 if (kbAdaptiveMarkingModeFlag) {
566566 int32_t iIdx = 0;
@@ -670,7 +670,7 @@ static const SLevelLimits g_kSLevelLimits[17] = { · 103 unmodified lines
670670 {2073600, 36864, 184320, 240000, 240000, -2048, 2047, 2, 16} /* level 5.2 */
671671 };
672672
673−const SLevelLimits *GetLevelLimits(int32_t iLevelIdx, bool_t bConstraint3) {
673+const SLevelLimits *GetLevelLimits(int32_t iLevelIdx, bool bConstraint3) {
674674 switch (iLevelIdx) {
675675 case 10:
676676 return &g_kSLevelLimits[0];
@@ -737,8 +737,8 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 60 unmodified lines
737737 ProfileIdc uiProfileIdc;
738738 uint8_t uiLevelIdc;
739739 int32_t iSpsId;
740− bool_t bConstraintSetFlags[6] = { false };
741− const bool_t kbUseSubsetFlag = IS_SUBSET_SPS_NAL (pNalHead->eNalUnitType);
740+ bool bConstraintSetFlags[6] = { false };
741+ const bool kbUseSubsetFlag = IS_SUBSET_SPS_NAL (pNalHead->eNalUnitType);
742742
743743
744744 if (kbUseSubsetFlag) { // SubsetSps

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