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

Unified · Split

codec/encoder/core/src/encoder.cpp+4−4
@@ -135,7 +135,7 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki · 134 unmodified lines
135135 }
136136
137137
138−void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool_t kbEnableBackgroundDetection) {
138+void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool kbEnableBackgroundDetection) {
139139 if (kbEnableBackgroundDetection) {
140140 pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip;
141141 pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo;
@@ -283,7 +283,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EFrameType keFrameType) { · 141 unmodified lines
283283 EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) {
284284 SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;
285285 EFrameType iFrameType = WELS_FRAME_TYPE_AUTO;
286− bool_t bSceneChangeFlag = false;
286+ bool bSceneChangeFlag = false;
287287
288288 // perform scene change detection
289289 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||
@@ -316,7 +316,7 @@ EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) { · 26 unmodified lines
316316
317317 extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileName, const int8_t kiDid) {
318318 WelsFileHandle* pDumpRecFile = NULL;
319− static bool_t bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0};
319+ static bool bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0};
320320 int32_t iWrittenSize = 0;
321321
322322 if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER)
@@ -384,7 +384,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 61 unmodified lines
384384
385385 void DumpRecFrame (SPicture* pCurPicture, const str_t* kpFileName) {
386386 WelsFileHandle* pDumpRecFile = NULL;
387− static bool_t bRecFlag = false;
387+ static bool bRecFlag = false;
388388 int32_t iWrittenSize = 0;
389389
390390 if (NULL == pCurPicture || NULL == kpFileName)

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