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

Unified · Split

codec/encoder/core/src/au_set.cpp+6−6
@@ -262,7 +262,7 @@ int32_t WelsWriteSubsetSpsSyntax (SSubsetSps* pSubsetSps, SBitStringAux* pBitStr · 261 unmodified lines
262262 int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaSetOffset* sPSOVector) {
263263 SBitStringAux* pLocalBitStringAux = pBitStringAux;
264264
265− bool_t bUsedSubset = sPSOVector->bPpsIdMappingIntoSubsetsps[pPps->iPpsId];
265+ bool bUsedSubset = sPSOVector->bPpsIdMappingIntoSubsetsps[pPps->iPpsId];
266266 int32_t iParameterSetType = (bUsedSubset ? PARA_SET_TYPE_SUBSETSPS : PARA_SET_TYPE_AVCSPS);
267267
268268 BsWriteUE (pLocalBitStringAux, pPps->iPpsId +
@@ -348,7 +348,7 @@ int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaS · 79 unmodified lines
348348 return 0;
349349 }
350350
351−static inline bool_t WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActualHeight, int32_t iWidth,
351+static inline bool WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActualHeight, int32_t iWidth,
352352 int32_t iHeight, SCropOffset& pOffset) {
353353 if ((iWidth < iActualWidth) || (iHeight < iActualHeight))
354354 return false;
@@ -367,7 +367,7 @@ static inline bool_t WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActual · 12 unmodified lines
367367
368368 int32_t WelsInitSps (SWelsSPS* pSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,
369369 const int32_t kiNumRefFrame,
370− const uint32_t kuiSpsId, const bool_t kbEnableFrameCropping, bool_t bEnableRc) {
370+ const uint32_t kuiSpsId, const bool kbEnableFrameCropping, bool bEnableRc) {
371371 memset (pSps, 0, sizeof (SWelsSPS));
372372
373373 pSps->uiSpsId = kuiSpsId;
@@ -409,7 +409,7 @@ int32_t WelsInitSps (SWelsSPS* pSps, SDLayerParam* pLayerParam, const uint32_t k · 35 unmodified lines
409409
410410 int32_t WelsInitSubsetSps (SSubsetSps* pSubsetSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,
411411 const int32_t kiNumRefFrame,
412− const uint32_t kuiSpsId, const bool_t kbEnableFrameCropping, bool_t bEnableRc) {
412+ const uint32_t kuiSpsId, const bool kbEnableFrameCropping, bool bEnableRc) {
413413 SWelsSPS* pSps = &pSubsetSps->pSps;
414414
415415 memset (pSubsetSps, 0, sizeof (SSubsetSps));
@@ -431,8 +431,8 @@ int32_t WelsInitPps (SWelsPPS* pPps, · 15 unmodified lines
431431 SWelsSPS* pSps,
432432 SSubsetSps* pSubsetSps,
433433 const uint32_t kuiPpsId,
434− const bool_t kbDeblockingFilterPresentFlag,
435− const bool_t kbUsingSubsetSps) {
434+ const bool kbDeblockingFilterPresentFlag,
435+ const bool kbUsingSubsetSps) {
436436 SWelsSPS* pUsedSps = NULL;
437437 if (pPps == NULL || (pSps == NULL && pSubsetSps == NULL))
438438 return 1;

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