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
135}135}
136 136
137 137
138void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool_t kbEnableBackgroundDetection) {138void WelsInitBGDFunc (SWelsFuncPtrList* pFuncList, const bool kbEnableBackgroundDetection) {
139 if (kbEnableBackgroundDetection) {139 if (kbEnableBackgroundDetection) {
140 pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip;140 pFuncList->pfInterMdBackgroundDecision = WelsMdInterJudgeBGDPskip;
141 pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo;141 pFuncList->pfInterMdBackgroundInfoUpdate = WelsMdInterUpdateBGDInfo;
@@ -283,7 +283,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EFrameType keFrameType) { · 141 unmodified lines
283EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) {283EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) {
284 SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;284 SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;
285 EFrameType iFrameType = WELS_FRAME_TYPE_AUTO;285 EFrameType iFrameType = WELS_FRAME_TYPE_AUTO;
286 bool_t bSceneChangeFlag = false;286 bool bSceneChangeFlag = false;
287 287
288 // perform scene change detection288 // perform scene change detection
289 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||289 if ((!pSvcParam->bEnableSceneChangeDetect) || pEncCtx->pVaa->bIdrPeriodFlag ||
@@ -316,7 +316,7 @@ EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) { · 26 unmodified lines
316 316
317extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileName, const int8_t kiDid) {317extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileName, const int8_t kiDid) {
318 WelsFileHandle* pDumpRecFile = NULL;318 WelsFileHandle* pDumpRecFile = NULL;
319 static bool_t bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0};319 static bool bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0};
320 int32_t iWrittenSize = 0;320 int32_t iWrittenSize = 0;
321 321
322 if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER)322 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
384 384
385void DumpRecFrame (SPicture* pCurPicture, const str_t* kpFileName) {385void DumpRecFrame (SPicture* pCurPicture, const str_t* kpFileName) {
386 WelsFileHandle* pDumpRecFile = NULL;386 WelsFileHandle* pDumpRecFile = NULL;
387 static bool_t bRecFlag = false;387 static bool bRecFlag = false;
388 int32_t iWrittenSize = 0;388 int32_t iWrittenSize = 0;
389 389
390 if (NULL == pCurPicture || NULL == kpFileName)390 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