History

Use the C++ constants true/false instead of defining our own

TRUE/FALSE has intentionally been left in use for the few platform specific APIs that define these constants themselves and expect them to be used, for consistency.

Martin Storsjö committed 12 years ago

Commit 80862ee1 parent f2bd22a22 files · +123 −136Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 22 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+9−9
@@ -68,7 +68,7 @@ CWelsH264SVCEncoder::CWelsH264SVCEncoder() · 67 unmodified lines
6868 m_iMaxPicWidth (0),
6969 m_iMaxPicHeight (0),
7070 m_iCspInternal (0),
71− m_bInitialFlag (FALSE) {
71+ m_bInitialFlag (false) {
7272 #ifdef REC_FRAME_COUNT
7373 int32_t m_uiCountFrameNum = 0;
7474 #endif//REC_FRAME_COUNT
@@ -135,7 +135,7 @@ CWelsH264SVCEncoder::CWelsH264SVCEncoder() · 60 unmodified lines
135135 m_pFileBs = WelsFopen (strStreamFileName, "wb");
136136 m_pFileBsSize = WelsFopen (strLenFileName, "wb");
137137
138− m_bSwitch = FALSE;
138+ m_bSwitch = false;
139139 m_iSwitchTimes = 0;
140140 #endif//OUTPUT_BIT_STREAM
141141
@@ -171,7 +171,7 @@ CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { · 29 unmodified lines
171171 WelsFclose (m_pFileBsSize);
172172 m_pFileBsSize = NULL;
173173 }
174− m_bSwitch = FALSE;
174+ m_bSwitch = false;
175175 m_iSwitchTimes = 0;
176176 #endif//OUTPUT_BIT_STREAM
177177
@@ -414,7 +414,7 @@ int CWelsH264SVCEncoder::Initialize2 (void* argv, const INIT_TYPE iInitType) { · 236 unmodified lines
414414 }
415415
416416 m_iCspInternal = iColorspace;
417− m_bInitialFlag = TRUE;
417+ m_bInitialFlag = true;
418418
419419 return cmResultSuccess;
420420 }
@@ -458,7 +458,7 @@ int32_t CWelsH264SVCEncoder::Uninitialize() { · 37 unmodified lines
458458 m_pEncContext = NULL;
459459 }
460460
461− m_bInitialFlag = FALSE;
461+ m_bInitialFlag = false;
462462
463463 return 0;
464464 }
@@ -587,7 +587,7 @@ int CWelsH264SVCEncoder::EncodeFrame2 (const SSourcePicture** pSrcPicList, int · 122 unmodified lines
587587 m_pFileBsSize = WelsFopen (strStreamFileName, "wb");
588588
589589
590− m_bSwitch = FALSE;
590+ m_bSwitch = false;
591591 }
592592
593593 for (i = 0; i < pBsInfo->iLayerNum; i++) {
@@ -665,7 +665,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 71 unmodified lines
665665 return cmInitParaError;
666666 }
667667
668− if (NULL == m_pEncContext || FALSE == m_bInitialFlag) {
668+ if (NULL == m_pEncContext || false == m_bInitialFlag) {
669669 return cmInitExpected;
670670 }
671671
@@ -783,7 +783,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 111 unmodified lines
783783 if (sEncodingParam.sSpatialLayers[sEncodingParam.iSpatialLayerNum - 1].iVideoWidth !=
784784 m_pEncContext->pSvcParam->sDependencyLayers[m_pEncContext->pSvcParam->iNumDependencyLayer - 1].iFrameWidth) {
785785 ++ m_iSwitchTimes;
786− m_bSwitch = TRUE;
786+ m_bSwitch = true;
787787 }
788788 #endif//OUTPUT_BIT_STREAM
789789 if (sEncodingParam.iSpatialLayerNum < 1
@@ -926,7 +926,7 @@ int CWelsH264SVCEncoder::GetOption (ENCODER_OPTION eOptionId, void* pOption) { · 136 unmodified lines
926926 if (NULL == pOption) {
927927 return cmInitParaError;
928928 }
929− if (NULL == m_pEncContext || FALSE == m_bInitialFlag) {
929+ if (NULL == m_pEncContext || false == m_bInitialFlag) {
930930 return cmInitExpected;
931931 }
932932

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