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

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+9−9
@@ -738,10 +738,10 @@ void UpdateMbNeighbourInfoForNextSlice (SSliceCtx* pSliceCtx, · 737 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_t bLeft;
742+ bool_t bTop;
743+ bool_t bLeftTop;
744+ bool_t 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_t 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_t 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_t kbCurMbNotLastMbOfCurPartition = iCurMbIdx < kiLastMbIdxInPartition;
836+ const bool_t 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_t 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