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 (14 of 82 files). Show all
Unified · Split
| @@ -108,7 +108,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 107 unmodified lines | ||
| 108 | 108 | uint8_t* pNal = pSrcRbsp; |
| 109 | 109 | int32_t iNalSize = iSrcRbspLen; |
| 110 | 110 | PBitStringAux pBs = NULL; |
| 111 | − bool_t bExtensionFlag = false; | |
| 111 | + bool bExtensionFlag = false; | |
| 112 | 112 | int32_t iErr = ERR_NONE; |
| 113 | 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 | 366 | PSliceHeader pLastSliceHeader, PSliceHeader pCurSliceHeader) { |
| 367 | 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 | 425 | const PNalUnitHeaderExt kpLastNalHeaderExt = &kpLastNal->sNalHeaderExt; |
| 426 | 426 | const PNalUnitHeaderExt kpCurNalHeaderExt = &kpCurNal->sNalHeaderExt; |
| 427 | 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 | 562 | void_t ParseRefBasePicMarking (PBitStringAux pBs, PRefBasePicMarking pRefBasePicMarking) { |
| 563 | − const bool_t kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs); | |
| 563 | + const bool kbAdaptiveMarkingModeFlag = !!BsGetOneBit (pBs); | |
| 564 | 564 | pRefBasePicMarking->bAdaptiveRefBasePicMarkingModeFlag = kbAdaptiveMarkingModeFlag; |
| 565 | 565 | if (kbAdaptiveMarkingModeFlag) { |
| 566 | 566 | int32_t iIdx = 0; |
| @@ -670,7 +670,7 @@ static const SLevelLimits g_kSLevelLimits[17] = { · 103 unmodified lines | ||
| 670 | 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 | 674 | switch (iLevelIdx) { |
| 675 | 675 | case 10: |
| 676 | 676 | return &g_kSLevelLimits[0]; |
| @@ -737,8 +737,8 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 60 unmodified lines | ||
| 737 | 737 | ProfileIdc uiProfileIdc; |
| 738 | 738 | uint8_t uiLevelIdc; |
| 739 | 739 | 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); | |
| 742 | 742 | |
| 743 | 743 | |
| 744 | 744 | if (kbUseSubsetFlag) { // SubsetSps |
| @@ -252,8 +252,8 @@ int32_t DeblockingAvailableNoInterlayer (PDqLayer pCurDqLayer, int32_t iFilterId · 251 unmodified lines | ||
| 252 | 252 | int32_t iMbY = pCurDqLayer->iMbY; |
| 253 | 253 | int32_t iMbX = pCurDqLayer->iMbX; |
| 254 | 254 | int32_t iMbXy = pCurDqLayer->iMbXyIndex; |
| 255 | − bool_t bLeftFlag = FALSE; | |
| 256 | − bool_t bTopFlag = FALSE; | |
| 255 | + bool bLeftFlag = FALSE; | |
| 256 | + bool bTopFlag = FALSE; | |
| 257 | 257 | |
| 258 | 258 | if (2 == iFilterIdc) { |
| 259 | 259 | bLeftFlag = (iMbX > 0) && (pCurDqLayer->pSliceIdc[iMbXy] == pCurDqLayer->pSliceIdc[iMbXy - 1]); |
| @@ -234,7 +234,7 @@ void_t WelsLumaDcDequantIdct (int16_t* pBlock, int32_t iQp) { · 233 unmodified lines | ||
| 234 | 234 | #undef STRIDE |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | −int32_t WelsMbIntraPredictionConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLayer, bool_t bOutput) { | |
| 237 | +int32_t WelsMbIntraPredictionConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLayer, bool bOutput) { | |
| 238 | 238 | //seems IPCM should not enter this path |
| 239 | 239 | int32_t iMbXy = pCurLayer->iMbXyIndex; |
| 240 | 240 | |
| @@ -351,7 +351,7 @@ void_t WelsChromaDcIdct (int16_t* pBlock) { · 110 unmodified lines | ||
| 351 | 351 | pBlk[iStride1] = (iE - iB) >> 1; |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | −int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool_t bFirstSliceInLayer, PNalUnit pNalCur) { | |
| 354 | +int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNalUnit pNalCur) { | |
| 355 | 355 | PDqLayer pCurLayer = pCtx->pCurDqLayer; |
| 356 | 356 | PFmo pFmo = pCtx->pFmo; |
| 357 | 357 | int32_t i, iRet; |
| @@ -177,11 +177,11 @@ void_t WelsDecoderDefaults (PWelsDecoderContext pCtx) { · 176 unmodified lines | ||
| 177 | 177 | * get size of reference picture list in target layer incoming, = (iNumRefFrames x 2) |
| 178 | 178 | */ |
| 179 | 179 | static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { |
| 180 | − bool_t* pSubsetSpsAvail = &pCtx->bSubspsAvailFlags[0]; | |
| 181 | − bool_t* pSpsAvail = &pCtx->bSpsAvailFlags[0]; | |
| 180 | + bool* pSubsetSpsAvail = &pCtx->bSubspsAvailFlags[0]; | |
| 181 | + bool* pSpsAvail = &pCtx->bSpsAvailFlags[0]; | |
| 182 | 182 | int32_t iSubsetIdx = -1; |
| 183 | 183 | int32_t iSpsIdx = -1; |
| 184 | − bool_t bExistSubsetSps = false; | |
| 184 | + bool bExistSubsetSps = false; | |
| 185 | 185 | int32_t bExistSps = false; |
| 186 | 186 | int32_t iPos = MAX_SPS_COUNT - 1; |
| 187 | 187 | int32_t iNumRefFrames = 0; |
| @@ -238,7 +238,7 @@ int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const · 50 unmodified lines | ||
| 238 | 238 | |
| 239 | 239 | int32_t iListIdx = 0; //, mb_blocks = 0; |
| 240 | 240 | int32_t iPicQueueSize = 0; // adaptive size of picture queue, = (pSps->iNumRefFrames x 2) |
| 241 | − bool_t bNeedChangePicQueue = true; | |
| 241 | + bool bNeedChangePicQueue = true; | |
| 242 | 242 | |
| 243 | 243 | WELS_VERIFY_RETURN_IF (ERR_INFO_INVALID_PARAM, (NULL == pCtx || kiPicWidth <= 0 || kiPicHeight <= 0)) |
| 244 | 244 | |
| @@ -105,7 +105,7 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 104 unmodified lines | ||
| 105 | 105 | return 0; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | −inline bool_t CheckSliceNeedReconstruct (int16_t iCurDid, int16_t iCurQid, bool_t bStoreRefBasePicFlag, | |
| 108 | +inline bool CheckSliceNeedReconstruct (int16_t iCurDid, int16_t iCurQid, bool bStoreRefBasePicFlag, | |
| 109 | 109 | uint8_t uiDidMax, uint8_t uiLayerDqId, uint8_t uiTargetDqId) { |
| 110 | 110 | return ((iCurDid == uiDidMax) && (iCurQid == BASE_QUALITY_ID) && (bStoreRefBasePicFlag)) // store base |
| 111 | 111 | || (uiLayerDqId == uiTargetDqId); // target layer |
| @@ -201,7 +201,7 @@ int32_t ParseRefPicListReordering (PBitStringAux pBs, PSliceHeader pSh) { · 89 unmodified lines | ||
| 201 | 201 | } |
| 202 | 202 | |
| 203 | 203 | int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSliceHeader pSh, PSps pSps, |
| 204 | − const bool_t kbIdrFlag) { | |
| 204 | + const bool kbIdrFlag) { | |
| 205 | 205 | PRefPicMarking const kpRefMarking = &pSh->sRefMarking; |
| 206 | 206 | |
| 207 | 207 | if (kbIdrFlag) { |
| @@ -238,7 +238,7 @@ int32_t ParseDecRefPicMarking (PWelsDecoderContext pCtx, PBitStringAux pBs, PSli · 30 unmodified lines | ||
| 238 | 238 | return ERR_NONE; |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | −bool_t FillDefaultSliceHeaderExt (PSliceHeaderExt pShExt, PNalUnitHeaderExt pNalExt) { | |
| 241 | +bool FillDefaultSliceHeaderExt (PSliceHeaderExt pShExt, PNalUnitHeaderExt pNalExt) { | |
| 242 | 242 | if (pShExt == NULL || pNalExt == NULL) |
| 243 | 243 | return false; |
| 244 | 244 | |
| @@ -392,7 +392,7 @@ int32_t CheckPpsId (PWelsDecoderContext pCtx, PPps* ppPps, uint32_t uiPpsId) { · 147 unmodified lines | ||
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | int32_t CheckSpsId (PWelsDecoderContext pCtx, PSubsetSps* ppSubsetSps, PSps* ppSps, int32_t iSpsId, |
| 395 | − bool_t bExtensionFlag) { | |
| 395 | + bool bExtensionFlag) { | |
| 396 | 396 | PSps pSpsList = pCtx->sSpsBuffer; |
| 397 | 397 | PSubsetSps pSubspsList = pCtx->sSubsetSpsBuffer; |
| 398 | 398 | |
| @@ -455,7 +455,7 @@ int32_t CheckSpsId (PWelsDecoderContext pCtx, PSubsetSps* ppSubsetSps, PSps* ppS · 56 unmodified lines | ||
| 455 | 455 | * decode_slice_header_avc |
| 456 | 456 | * Parse slice header of bitstream in avc for storing data structure |
| 457 | 457 | */ |
| 458 | −int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool_t kbExtensionFlag) { | |
| 458 | +int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, const bool kbExtensionFlag) { | |
| 459 | 459 | PNalUnit const kpCurNal = pCtx->pAccessUnitList->pNalUnitsList[pCtx->pAccessUnitList->uiAvailUnitsNum - 1]; |
| 460 | 460 | |
| 461 | 461 | PNalUnitHeaderExt pNalHeaderExt = NULL; |
| @@ -469,8 +469,8 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 7 unmodified lines | ||
| 469 | 469 | int32_t iRet = ERR_NONE; |
| 470 | 470 | uint8_t uiSliceType = 0; |
| 471 | 471 | uint8_t uiQualityId = BASE_QUALITY_ID; |
| 472 | − bool_t bIdrFlag = false; | |
| 473 | − bool_t bSgChangeCycleInvolved = false; // involved slice group change cycle ? | |
| 472 | + bool bIdrFlag = false; | |
| 473 | + bool bSgChangeCycleInvolved = false; // involved slice group change cycle ? | |
| 474 | 474 | |
| 475 | 475 | if (kpCurNal == NULL) { |
| 476 | 476 | return ERR_INFO_OUT_OF_MEMORY; |
| @@ -484,7 +484,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 7 unmodified lines | ||
| 484 | 484 | |
| 485 | 485 | if (pSliceHeadExt) { |
| 486 | 486 | SRefBasePicMarking sBaseMarking; |
| 487 | − const bool_t kbStoreRefBaseFlag = pSliceHeadExt->bStoreRefBasePicFlag; | |
| 487 | + const bool kbStoreRefBaseFlag = pSliceHeadExt->bStoreRefBasePicFlag; | |
| 488 | 488 | memcpy (&sBaseMarking, &pSliceHeadExt->sRefBasePicMarking, sizeof (SRefBasePicMarking)); //confirmed_safe_unsafe_usage |
| 489 | 489 | memset (pSliceHeadExt, 0, sizeof (SSliceHeaderExt)); |
| 490 | 490 | pSliceHeadExt->bStoreRefBasePicFlag = kbStoreRefBaseFlag; |
| @@ -619,7 +619,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 128 unmodified lines | ||
| 619 | 619 | if (kbExtensionFlag) { |
| 620 | 620 | uiQualityId = pNalHeaderExt->uiQualityId; |
| 621 | 621 | } else if (uiSliceType == P_SLICE || uiSliceType == SP_SLICE || uiSliceType == B_SLICE) { |
| 622 | − const bool_t kbBipredFlag = (B_SLICE == uiSliceType); | |
| 622 | + const bool kbBipredFlag = (B_SLICE == uiSliceType); | |
| 623 | 623 | if (kbBipredFlag) { |
| 624 | 624 | WelsLog (pCtx, WELS_LOG_WARNING, "ParseSliceHeaderSyntaxs(): kbBipredFlag = 1 not supported.\n"); |
| 625 | 625 | return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_BIPRED); |
| @@ -820,7 +820,7 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 194 unmodified lines | ||
| 820 | 820 | * pSrc: mark as decoded prefix NAL |
| 821 | 821 | * ppDst: succeeded VCL NAL based AVC (I/P Slice) |
| 822 | 822 | */ |
| 823 | −bool_t PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kppDst, PNalUnit const kpSrc) { | |
| 823 | +bool PrefetchNalHeaderExtSyntax (PWelsDecoderContext pCtx, PNalUnit const kppDst, PNalUnit const kpSrc) { | |
| 824 | 824 | PNalUnitHeaderExt pNalHdrExtD = NULL, pNalHdrExtS = NULL; |
| 825 | 825 | PSliceHeaderExt pShExtD = NULL; |
| 826 | 826 | PPrefixNalUnit pPrefixS = NULL; |
| @@ -1297,7 +1297,7 @@ void_t RefineIdxNoInterLayerPred (PAccessUnit pCurAu, int32_t* pIdxNoInterLayerP · 470 unmodified lines | ||
| 1297 | 1297 | int32_t iCurNalDependId, iCurNalQualityId, iCurNalTId, iCurNalFrameNum, iCurNalPoc, iCurNalFirstMb, iCurIdx, |
| 1298 | 1298 | iFinalIdxNoInterLayerPred; |
| 1299 | 1299 | |
| 1300 | − bool_t bMultiSliceFind = false; | |
| 1300 | + bool bMultiSliceFind = false; | |
| 1301 | 1301 | |
| 1302 | 1302 | iFinalIdxNoInterLayerPred = 0; |
| 1303 | 1303 | iCurIdx = *pIdxNoInterLayerPred - 1; |
| @@ -1332,7 +1332,7 @@ void_t RefineIdxNoInterLayerPred (PAccessUnit pCurAu, int32_t* pIdxNoInterLayerP · 28 unmodified lines | ||
| 1332 | 1332 | } |
| 1333 | 1333 | } |
| 1334 | 1334 | |
| 1335 | −bool_t CheckPocOfCurValidNalUnits (PAccessUnit pCurAu, int32_t pIdxNoInterLayerPred) { | |
| 1335 | +bool CheckPocOfCurValidNalUnits (PAccessUnit pCurAu, int32_t pIdxNoInterLayerPred) { | |
| 1336 | 1336 | int32_t iEndIdx = pCurAu->uiEndPos; |
| 1337 | 1337 | int32_t iCurAuPoc = |
| 1338 | 1338 | pCurAu->pNalUnitsList[pIdxNoInterLayerPred]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.iPicOrderCntLsb; |
| @@ -1347,7 +1347,7 @@ bool_t CheckPocOfCurValidNalUnits (PAccessUnit pCurAu, int32_t pIdxNoInterLayerP · 8 unmodified lines | ||
| 1347 | 1347 | return true; |
| 1348 | 1348 | } |
| 1349 | 1349 | |
| 1350 | −bool_t CheckIntegrityNalUnitsList (PWelsDecoderContext pCtx) { | |
| 1350 | +bool CheckIntegrityNalUnitsList (PWelsDecoderContext pCtx) { | |
| 1351 | 1351 | PAccessUnit pCurAu = pCtx->pAccessUnitList; |
| 1352 | 1352 | const int32_t kiEndPos = pCurAu->uiEndPos; |
| 1353 | 1353 | int32_t iIdxNoInterLayerPred = 0; |
| @@ -1391,7 +1391,7 @@ bool_t CheckIntegrityNalUnitsList (PWelsDecoderContext pCtx) { · 37 unmodified lines | ||
| 1391 | 1391 | pCurAu->pNalUnitsList[pCurAu->uiEndPos]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.iMbHeight << 4; |
| 1392 | 1392 | } else { //P_SLICE |
| 1393 | 1393 | //step 1: search uiDependencyId equal to pCtx->cur_seq_interval_target_dependency_id |
| 1394 | − bool_t bGetDependId = false; | |
| 1394 | + bool bGetDependId = false; | |
| 1395 | 1395 | int32_t iIdxDependId = 0; |
| 1396 | 1396 | |
| 1397 | 1397 | iIdxDependId = kiEndPos; |
| @@ -1406,7 +1406,7 @@ bool_t CheckIntegrityNalUnitsList (PWelsDecoderContext pCtx) { · 8 unmodified lines | ||
| 1406 | 1406 | |
| 1407 | 1407 | //step 2: switch according to whether or not find the index of pNalUnit whose uiDependencyId equal to iCurSeqIntervalTargetDependId |
| 1408 | 1408 | if (bGetDependId) { //get the index of pNalUnit whose uiDependencyId equal to iCurSeqIntervalTargetDependId |
| 1409 | − bool_t bGetNoInterPredFront = false; | |
| 1409 | + bool bGetNoInterPredFront = false; | |
| 1410 | 1410 | //step 2a: search iNoInterLayerPredFlag [0....iIdxDependId] |
| 1411 | 1411 | iIdxNoInterLayerPred = iIdxDependId; |
| 1412 | 1412 | while (iIdxNoInterLayerPred >= 0) { |
| @@ -1650,7 +1650,7 @@ void_t WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps · 237 unmodified lines | ||
| 1650 | 1650 | } |
| 1651 | 1651 | } |
| 1652 | 1652 | |
| 1653 | −int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool_t kbFirstSlice, int32_t iPoc) { | |
| 1653 | +int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool kbFirstSlice, int32_t iPoc) { | |
| 1654 | 1654 | int32_t iRet = ERR_NONE; |
| 1655 | 1655 | if (kbFirstSlice) |
| 1656 | 1656 | iRet = WelsInitRefList (pCtx, iPoc); |
| @@ -1718,7 +1718,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 61 unmodified lines | ||
| 1718 | 1718 | int16_t iLastIdD = -1, iLastIdQ = -1; |
| 1719 | 1719 | int16_t iCurrIdD = 0, iCurrIdQ = 0; |
| 1720 | 1720 | uint8_t uiNalRefIdc = 0; |
| 1721 | − bool_t bFreshSliceAvailable = | |
| 1721 | + bool bFreshSliceAvailable = | |
| 1722 | 1722 | true; // Another fresh slice comingup for given dq layer, for multiple slices in case of header parts of slices sometimes loss over error-prone channels, 8/14/2008 |
| 1723 | 1723 | PPicture pStoreBasePic = NULL; |
| 1724 | 1724 | |
| @@ -1774,7 +1774,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 49 unmodified lines | ||
| 1774 | 1774 | * Loop decoding for slices (even FMO and/ multiple slices) within a dq layer |
| 1775 | 1775 | */ |
| 1776 | 1776 | while (iIdx <= iEndIdx) { |
| 1777 | − bool_t bReconstructSlice; | |
| 1777 | + bool bReconstructSlice; | |
| 1778 | 1778 | iCurrIdQ = pNalCur->sNalHeaderExt.uiQualityId; |
| 1779 | 1779 | iCurrIdD = pNalCur->sNalHeaderExt.uiDependencyId; |
| 1780 | 1780 | pSh = &pNalCur->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader; |
| @@ -1823,7 +1823,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 42 unmodified lines | ||
| 1823 | 1823 | InitDqLayerInfo (dq_cur, &pLayerInfo, pNalCur, pCtx->pDec); |
| 1824 | 1824 | |
| 1825 | 1825 | if (!dq_cur->sLayerInfo.pSps->bGapsInFrameNumValueAllowedFlag) { |
| 1826 | − const bool_t kbIdrFlag = dq_cur->sLayerInfo.sNalHeaderExt.bIdrFlag | |
| 1826 | + const bool kbIdrFlag = dq_cur->sLayerInfo.sNalHeaderExt.bIdrFlag | |
| 1827 | 1827 | || (dq_cur->sLayerInfo.sNalHeaderExt.sNalUnitHeader.eNalUnitType == NAL_UNIT_CODED_SLICE_IDR); |
| 1828 | 1828 | // Subclause 8.2.5.2 Decoding process for gaps in frame_num |
| 1829 | 1829 | if (!kbIdrFlag && |
| @@ -144,7 +144,7 @@ void_t ExpandReferencingPicture (PPicture pPic, PExpandPictureFunc pExpLuma, PEx · 143 unmodified lines | ||
| 144 | 144 | pExpLuma (pPicY, pPic->iLinesize[0], kiWidthY, kiHeightY); |
| 145 | 145 | if (kiWidthUV >= 16) { |
| 146 | 146 | // fix coding picture size as 16x16 issues 7/27/2010 |
| 147 | − const bool_t kbChrAligned = /*(kiWidthUV >= 16) && */ ((kiWidthUV & 0x0F) == 0); // chroma planes: (16+kiWidthUV) & 15 | |
| 147 | + const bool kbChrAligned = /*(kiWidthUV >= 16) && */ ((kiWidthUV & 0x0F) == 0); // chroma planes: (16+kiWidthUV) & 15 | |
| 148 | 148 | pExpChroma[kbChrAligned] (pPicCb, pPic->iLinesize[1], kiWidthUV, kiHeightUV); |
| 149 | 149 | pExpChroma[kbChrAligned] (pPicCr, pPic->iLinesize[2], kiWidthUV, kiHeightUV); |
| 150 | 150 | } else { |
| @@ -119,7 +119,7 @@ static inline int32_t FmoGenerateSliceGroup (PFmo pFmo, const PPps kpPps, const · 118 unmodified lines | ||
| 119 | 119 | const int32_t kiMbHeight) { |
| 120 | 120 | int32_t iNumMb = 0; |
| 121 | 121 | int32_t iErr = 0; |
| 122 | − bool_t bResolutionChanged = false; | |
| 122 | + bool bResolutionChanged = false; | |
| 123 | 123 | |
| 124 | 124 | // the cases we would not like |
| 125 | 125 | WELS_VERIFY_RETURN_IF (1, (NULL == pFmo || NULL == kpPps)) |
| @@ -238,7 +238,7 @@ void_t UninitFmoList (PFmo pFmo, const int32_t kiCnt, const int32_t kiAvail) { · 112 unmodified lines | ||
| 238 | 238 | * |
| 239 | 239 | * \return true - changed or not initialized yet; false - not change at all |
| 240 | 240 | */ |
| 241 | −bool_t FmoParamSetsChanged (PFmo pFmo, const int32_t kiCountNumMb, const int32_t kiSliceGroupType, | |
| 241 | +bool FmoParamSetsChanged (PFmo pFmo, const int32_t kiCountNumMb, const int32_t kiSliceGroupType, | |
| 242 | 242 | const int32_t kiSliceGroupCount) { |
| 243 | 243 | WELS_VERIFY_RETURN_IF (false, (NULL == pFmo)) |
| 244 | 244 | |
| @@ -258,7 +258,7 @@ bool_t FmoParamSetsChanged (PFmo pFmo, const int32_t kiCountNumMb, const int32_t · 13 unmodified lines | ||
| 258 | 258 | * |
| 259 | 259 | * \return true - update/insert successfully; false - failed; |
| 260 | 260 | */ |
| 261 | −bool_t FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum) { | |
| 261 | +bool FmoParamUpdate (PFmo pFmo, PSps pSps, PPps pPps, int32_t* pActiveFmoNum) { | |
| 262 | 262 | const uint32_t kuiMbWidth = pSps->iMbWidth; |
| 263 | 263 | const uint32_t kuiMbHeight = pSps->iMbHeight; |
| 264 | 264 | |
| @@ -330,4 +330,4 @@ MB_XY_T FmoNextMb (PFmo pFmo, const MB_XY_T kiMbXy) { · 65 unmodified lines | ||
| 330 | 330 | return iNextMb; |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | −} // namespace WelsDec | |
| 333 | +} // namespace WelsDec | |
| @@ -653,4 +653,4 @@ void_t WelsI16x16LumaPredDcNA_c (uint8_t* pPred, const int32_t kiStride) { · 652 unmodified lines | ||
| 653 | 653 | } while (i-- > 0); |
| 654 | 654 | } |
| 655 | 655 | |
| 656 | −} // namespace WelsDec | |
| 656 | +} // namespace WelsDec | |
| @@ -92,7 +92,7 @@ void_t WelsResetRefPic (PWelsDecoderContext pCtx) { · 91 unmodified lines | ||
| 92 | 92 | */ |
| 93 | 93 | int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) { |
| 94 | 94 | int32_t i, j, iCount = 0; |
| 95 | − const bool_t kbUseRefBasePicFlag = pCtx->pCurDqLayer->bUseRefBasePicFlag; | |
| 95 | + const bool kbUseRefBasePicFlag = pCtx->pCurDqLayer->bUseRefBasePicFlag; | |
| 96 | 96 | PPicture* ppShoreRefList = pCtx->sRefPic.pShortRefList[LIST_0]; |
| 97 | 97 | PPicture* ppLongRefList = pCtx->sRefPic.pLongRefList[LIST_0]; |
| 98 | 98 | memset (pCtx->sRefPic.pRefList[LIST_0], 0, MAX_REF_PIC_COUNT * sizeof (PPicture)); |
| @@ -215,12 +215,12 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { · 116 unmodified lines | ||
| 215 | 215 | return ERR_NONE; |
| 216 | 216 | } |
| 217 | 217 | |
| 218 | −int32_t WelsMarkAsRef (PWelsDecoderContext pCtx, const bool_t kbRefBaseMarkingFlag) { | |
| 218 | +int32_t WelsMarkAsRef (PWelsDecoderContext pCtx, const bool kbRefBaseMarkingFlag) { | |
| 219 | 219 | PRefPic pRefPic = &pCtx->sRefPic; |
| 220 | 220 | PRefPicMarking pRefPicMarking = pCtx->pCurDqLayer->pRefPicMarking; |
| 221 | 221 | PRefBasePicMarking pRefPicBaseMarking = pCtx->pCurDqLayer->pRefPicBaseMarking; |
| 222 | 222 | PAccessUnit pCurAU = pCtx->pAccessUnitList; |
| 223 | − bool_t bIsIDRAU = FALSE; | |
| 223 | + bool bIsIDRAU = FALSE; | |
| 224 | 224 | uint32_t j; |
| 225 | 225 | |
| 226 | 226 | int32_t iRet = ERR_NONE; |
| @@ -322,7 +322,7 @@ static int32_t MMCO (PWelsDecoderContext pCtx, PRefPicMarking pRefPicMarking) { · 95 unmodified lines | ||
| 322 | 322 | |
| 323 | 323 | return ERR_NONE; |
| 324 | 324 | } |
| 325 | −static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, bool_t bRefBasePic, | |
| 325 | +static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, bool bRefBasePic, | |
| 326 | 326 | int32_t iShortFrameNum, uint32_t uiLongTermPicNum , int32_t iLongTermFrameIdx, int32_t iMaxLongTermFrameIdx) { |
| 327 | 327 | PRefPic pRefPic = &pCtx->sRefPic; |
| 328 | 328 | PPicture pPic = NULL; |
| @@ -551,4 +551,4 @@ static int32_t MarkAsLongTerm (PRefPic pRefPic, int32_t iFrameNum, int32_t iLong · 222 unmodified lines | ||
| 551 | 551 | return iRet; |
| 552 | 552 | } |
| 553 | 553 | |
| 554 | −} // namespace WelsDec | |
| 554 | +} // namespace WelsDec | |
| @@ -143,4 +143,4 @@ PNalUnit MemGetNextNal (PAccessUnit* ppAu) { · 142 unmodified lines | ||
| 143 | 143 | return pNu; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | −} // namespace WelsDec | |
| 146 | +} // namespace WelsDec | |
| @@ -44,7 +44,7 @@ · 43 unmodified lines | ||
| 44 | 44 | |
| 45 | 45 | namespace WelsDec { |
| 46 | 46 | void_t PredPSkipMvFromNeighbor (PDqLayer pCurLayer, int16_t iMvp[2]) { |
| 47 | − bool_t bTopAvail, bLeftTopAvail, bRightTopAvail, bLeftAvail; | |
| 47 | + bool bTopAvail, bLeftTopAvail, bRightTopAvail, bLeftAvail; | |
| 48 | 48 | |
| 49 | 49 | int32_t iCurSliceIdc, iTopSliceIdc, iLeftTopSliceIdc, iRightTopSliceIdc, iLeftSliceIdc; |
| 50 | 50 | int32_t iLeftTopType, iRightTopType, iTopType, iLeftType; |
| @@ -369,4 +369,4 @@ void_t UpdateP8x16MotionInfo (PDqLayer pCurDqLayer, int16_t iMotionVector[LIST_A · 318 unmodified lines | ||
| 369 | 369 | } |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | −} // namespace WelsDec | |
| 372 | +} // namespace WelsDec | |
| @@ -398,7 +398,7 @@ int32_t CheckIntra16x16PredMode (uint8_t uiSampleAvail, int8_t* pMode) { · 397 unmodified lines | ||
| 398 | 398 | *pMode = I16_PRED_DC_128; |
| 399 | 399 | } |
| 400 | 400 | } else { |
| 401 | − bool_t bModeAvail = CHECK_I16_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 401 | + bool bModeAvail = CHECK_I16_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 402 | 402 | if (0 == bModeAvail) { |
| 403 | 403 | return ERR_INFO_INVALID_I16x16_PRED_MODE; |
| 404 | 404 | } |
| @@ -423,7 +423,7 @@ int32_t CheckIntraChromaPredMode (uint8_t uiSampleAvail, int8_t* pMode) { · 18 unmodified lines | ||
| 423 | 423 | *pMode = C_PRED_DC_128; |
| 424 | 424 | } |
| 425 | 425 | } else { |
| 426 | − bool_t bModeAvail = CHECK_CHROMA_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 426 | + bool bModeAvail = CHECK_CHROMA_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 427 | 427 | if (0 == bModeAvail) { |
| 428 | 428 | return ERR_INFO_INVALID_I_CHROMA_PRED_MODE; |
| 429 | 429 | } |
| @@ -455,7 +455,7 @@ int32_t CheckIntra4x4PredMode (int32_t* pSampleAvail, int8_t* pMode, int32_t iIn · 25 unmodified lines | ||
| 455 | 455 | iFinalMode = I4_PRED_DC_128; |
| 456 | 456 | } |
| 457 | 457 | } else { |
| 458 | − bool_t bModeAvail = CHECK_I4_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 458 | + bool bModeAvail = CHECK_I4_MODE (*pMode, iLeftAvail, iTopAvail, bLeftTopAvail); | |
| 459 | 459 | if (0 == bModeAvail) { |
| 460 | 460 | return ERR_INVALID_INTRA4X4_MODE; |
| 461 | 461 | } |
| @@ -486,7 +486,7 @@ void_t BsEndCavlc (PBitStringAux pBs) { · 24 unmodified lines | ||
| 486 | 486 | |
| 487 | 487 | // return: used bits |
| 488 | 488 | static int32_t CavlcGetTrailingOnesAndTotalCoeff (uint8_t& uiTotalCoeff, uint8_t& uiTrailingOnes, |
| 489 | − SReadBitsCache* pBitsCache, SVlcTable* pVlcTable, bool_t bChromaDc, int8_t nC) { | |
| 489 | + SReadBitsCache* pBitsCache, SVlcTable* pVlcTable, bool bChromaDc, int8_t nC) { | |
| 490 | 490 | const uint8_t* kpVlcTableMoreBitsCountList[3] = {g_kuiVlcTableMoreBitsCount0, g_kuiVlcTableMoreBitsCount1, g_kuiVlcTableMoreBitsCount2}; |
| 491 | 491 | int32_t iUsedBits = 0; |
| 492 | 492 | int32_t iIndexVlc, iIndexValue, iNcMapIdx; |
| @@ -587,7 +587,7 @@ static int32_t CavlcGetLevelVal (int32_t iLevel[16], SReadBitsCache* pBitsCache, · 94 unmodified lines | ||
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | static int32_t CavlcGetTotalZeros (int32_t& iZerosLeft, SReadBitsCache* pBitsCache, uint8_t uiTotalCoeff, |
| 590 | − SVlcTable* pVlcTable, bool_t bChromaDc) { | |
| 590 | + SVlcTable* pVlcTable, bool bChromaDc) { | |
| 591 | 591 | int32_t iCount, iUsedBits = 0; |
| 592 | 592 | const uint8_t* kpBitNumMap; |
| 593 | 593 | uint32_t uiValue; |
| @@ -673,7 +673,7 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 79 unmodified lines | ||
| 673 | 673 | int32_t iUsedBits = 0; |
| 674 | 674 | int32_t iCurIdx = pBs->iIndex; |
| 675 | 675 | uint8_t* pBuf = ((uint8_t*)pBs->pStartBuf) + (iCurIdx >> 3); |
| 676 | − bool_t bChromaDc = (CHROMA_DC == iResidualProperty); | |
| 676 | + bool bChromaDc = (CHROMA_DC == iResidualProperty); | |
| 677 | 677 | uint8_t bChroma = (bChromaDc || CHROMA_AC == iResidualProperty); |
| 678 | 678 | SReadBitsCache sReadBitsCache; |
| 679 | 679 | |
| @@ -149,4 +149,4 @@ PPicture PrefetchPic (PPicBuff pPicBuf) { · 148 unmodified lines | ||
| 149 | 149 | return pPic; |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | −} // namespace WelsDec | |
| 152 | +} // namespace WelsDec | |
| @@ -44,7 +44,7 @@ · 43 unmodified lines | ||
| 44 | 44 | |
| 45 | 45 | namespace WelsDec { |
| 46 | 46 | |
| 47 | −void_t WelsFillRecNeededMbInfo (PWelsDecoderContext pCtx, bool_t bOutput, PDqLayer pCurLayer) { | |
| 47 | +void_t WelsFillRecNeededMbInfo (PWelsDecoderContext pCtx, bool bOutput, PDqLayer pCurLayer) { | |
| 48 | 48 | PPicture pCurPic = pCtx->pDec; |
| 49 | 49 | int32_t iLumaStride = pCurPic->iLinesize[0]; |
| 50 | 50 | int32_t iChromaStride = pCurPic->iLinesize[1]; |
| @@ -235,7 +235,7 @@ static inline void_t BaseMC (sMCRefMember* pMCRefMem, int32_t iXOffset, int32_t · 184 unmodified lines | ||
| 235 | 235 | uint8_t* pDstY = pMCRefMem->pDstY; |
| 236 | 236 | uint8_t* pDstU = pMCRefMem->pDstU; |
| 237 | 237 | uint8_t* pDstV = pMCRefMem->pDstV; |
| 238 | − bool_t bExpand = false; | |
| 238 | + bool bExpand = false; | |
| 239 | 239 | |
| 240 | 240 | ENFORCE_STACK_ALIGN_1D (uint8_t, uiExpandBuf, (PADDING_LENGTH + 6) * (PADDING_LENGTH + 6), 16); |
| 241 | 241 | |