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/encoder/core/src/svc_encode_slice.cpp (1 of 82 files). Show all

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+15−15
@@ -598,7 +598,7 @@ void WelsISliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice) { //pMd + enc · 597 unmodified lines
598598 //encapsulate two kinds of reconstruction:
599599 // first. store base or highest Dependency Layer with only one quality (without CS RS reconstruction)
600600 // second. lower than highest Dependency Layer, and for every Dependency Layer with one quality layer(single layer)
601−void WelsPSliceMdEnc (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool_t kbIsHighestDlayerFlag) { //pMd + encoding
601+void WelsPSliceMdEnc (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool kbIsHighestDlayerFlag) { //pMd + encoding
602602 const SSliceHeaderExt* kpShExt = &pSlice->sSliceHeaderExt;
603603 const SSliceHeader* kpSh = &kpShExt->sSliceHeader;
604604 const int32_t kiSliceFirstMbXY = kpSh->iFirstMbInSlice;
@@ -613,7 +613,7 @@ void WelsPSliceMdEnc (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool_t kbIsHi · 8 unmodified lines
613613 WelsMdInterMbLoop (pEncCtx, pSlice, &sMd, kiSliceFirstMbXY);
614614 }
615615
616−void WelsPSliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool_t kbIsHighestDlayerFlag) {
616+void WelsPSliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool kbIsHighestDlayerFlag) {
617617 const SSliceHeaderExt* kpShExt = &pSlice->sSliceHeaderExt;
618618 const SSliceHeader* kpSh = &kpShExt->sSliceHeader;
619619 const int32_t kiSliceFirstMbXY = kpSh->iFirstMbInSlice;
@@ -631,8 +631,8 @@ void WelsPSliceMdEncDynamic (sWelsEncCtx* pEncCtx, SSlice* pSlice, const bool_t · 11 unmodified lines
631631 void WelsCodePSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
632632 //pSlice-level init should be outside and before this function
633633 SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
634− const bool_t kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
635− const bool_t kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
634+ const bool kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
635+ const bool kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
636636 (pCurLayer->sLayerInfo.sNalHeaderExt.uiDependencyId + 1);
637637
638638 //MD switch
@@ -649,8 +649,8 @@ void WelsCodePSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) { · 10 unmodified lines
649649 void WelsCodePOverDynamicSlice (sWelsEncCtx* pEncCtx, SSlice* pSlice) {
650650 //pSlice-level init should be outside and before this function
651651 SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
652− const bool_t kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
653− const bool_t kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
652+ const bool kbBaseAvail = pCurLayer->bBaseLayerAvailableFlag;
653+ const bool kbHighestSpatial = pEncCtx->pSvcParam->iNumDependencyLayer ==
654654 (pCurLayer->sLayerInfo.sNalHeaderExt.uiDependencyId + 1);
655655
656656 //MD switch
@@ -738,10 +738,10 @@ void UpdateMbNeighbourInfoForNextSlice (SSliceCtx* pSliceCtx, · 81 unmodified lines
738738 const int32_t kiMbXY = pMb->iMbXY;
739739 const int32_t kiMbX = pMb->iMbX;
740740 const int32_t kiMbY = pMb->iMbY;
741− bool_t bLeft;
742− bool_t bTop;
743− bool_t bLeftTop;
744− bool_t bRightTop;
741+ bool bLeft;
742+ bool bTop;
743+ bool bLeftTop;
744+ bool bRightTop;
745745 int32_t iLeftXY, iTopXY, iLeftTopXY, iRightTopXY;
746746 const uint8_t kuiSliceIdc = WelsMbToSliceIdc (pSliceCtx, kiMbXY);
747747
@@ -819,7 +819,7 @@ void AddSliceBoundary (sWelsEncCtx* pEncCtx, SSlice* pCurSlice, SSliceCtx* pSlic · 71 unmodified lines
819819 UpdateMbNeighbourInfoForNextSlice (pSliceCtx, pMbList, iFirstMbIdxOfNextSlice, kiLastMbIdxInPartition);
820820 }
821821
822−bool_t DynSlcJudgeSliceBoundaryStepBack (void* pCtx, void* pSlice, SSliceCtx* pSliceCtx, SMB* pCurMb,
822+bool DynSlcJudgeSliceBoundaryStepBack (void* pCtx, void* pSlice, SSliceCtx* pSliceCtx, SMB* pCurMb,
823823 SDynamicSlicingStack* pDss) {
824824 sWelsEncCtx* pEncCtx = (sWelsEncCtx*)pCtx;
825825 SSlice* pCurSlice = (SSlice*)pSlice;
@@ -830,12 +830,12 @@ bool_t DynSlcJudgeSliceBoundaryStepBack (void* pCtx, void* pSlice, SSliceCtx* pS · 4 unmodified lines
830830 const int32_t kiPartitaionId = pCurSlice->uiSliceIdx % kiActiveThreadsNum;
831831 const int32_t kiLastMbIdxInPartition = pEncCtx->pCurDqLayer->pLastMbIdxOfPartition[kiPartitaionId];
832832
833− const bool_t kbCurMbNotFirstMbOfCurSlice = (pSliceCtx->pOverallMbMap[iCurMbIdx] ==
833+ const bool kbCurMbNotFirstMbOfCurSlice = (pSliceCtx->pOverallMbMap[iCurMbIdx] ==
834834 pSliceCtx->pOverallMbMap[iCurMbIdx - 1]);
835− const bool_t kbCurMbNotLastMbOfCurPartition = iCurMbIdx < kiLastMbIdxInPartition;
836− const bool_t kbSliceNumNotExceedConstraint = pSliceCtx->iSliceNumInFrame <
835+ const bool kbCurMbNotLastMbOfCurPartition = iCurMbIdx < kiLastMbIdxInPartition;
836+ const bool kbSliceNumNotExceedConstraint = pSliceCtx->iSliceNumInFrame <
837837 pSliceCtx->iMaxSliceNumConstraint; /*tmp choice to avoid complex memory operation, 100520, to be modify*/
838− const bool_t kbSliceNumReachConstraint = (pSliceCtx->iSliceNumInFrame ==
838+ const bool kbSliceNumReachConstraint = (pSliceCtx->iSliceNumInFrame ==
839839 pSliceCtx->iMaxSliceNumConstraint);
840840
841841 if (pCurSlice->bDynamicSlicingSliceSizeCtrlFlag)

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