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
262int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaSetOffset* sPSOVector) {262int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaSetOffset* sPSOVector) {
263 SBitStringAux* pLocalBitStringAux = pBitStringAux;263 SBitStringAux* pLocalBitStringAux = pBitStringAux;
264 264
265 bool_t bUsedSubset = sPSOVector->bPpsIdMappingIntoSubsetsps[pPps->iPpsId];265 bool bUsedSubset = sPSOVector->bPpsIdMappingIntoSubsetsps[pPps->iPpsId];
266 int32_t iParameterSetType = (bUsedSubset ? PARA_SET_TYPE_SUBSETSPS : PARA_SET_TYPE_AVCSPS);266 int32_t iParameterSetType = (bUsedSubset ? PARA_SET_TYPE_SUBSETSPS : PARA_SET_TYPE_AVCSPS);
267 267
268 BsWriteUE (pLocalBitStringAux, pPps->iPpsId +268 BsWriteUE (pLocalBitStringAux, pPps->iPpsId +
@@ -348,7 +348,7 @@ int32_t WelsWritePpsSyntax (SWelsPPS* pPps, SBitStringAux* pBitStringAux, SParaS · 79 unmodified lines
348 return 0;348 return 0;
349}349}
350 350
351static inline bool_t WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActualHeight, int32_t iWidth,351static inline bool WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActualHeight, int32_t iWidth,
352 int32_t iHeight, SCropOffset& pOffset) {352 int32_t iHeight, SCropOffset& pOffset) {
353 if ((iWidth < iActualWidth) || (iHeight < iActualHeight))353 if ((iWidth < iActualWidth) || (iHeight < iActualHeight))
354 return false;354 return false;
@@ -367,7 +367,7 @@ static inline bool_t WelsGetPaddingOffset (int32_t iActualWidth, int32_t iActual · 12 unmodified lines
367 367
368int32_t WelsInitSps (SWelsSPS* pSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,368int32_t WelsInitSps (SWelsSPS* pSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,
369 const int32_t kiNumRefFrame,369 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) {
371 memset (pSps, 0, sizeof (SWelsSPS));371 memset (pSps, 0, sizeof (SWelsSPS));
372 372
373 pSps->uiSpsId = kuiSpsId;373 pSps->uiSpsId = kuiSpsId;
@@ -409,7 +409,7 @@ int32_t WelsInitSps (SWelsSPS* pSps, SDLayerParam* pLayerParam, const uint32_t k · 35 unmodified lines
409 409
410int32_t WelsInitSubsetSps (SSubsetSps* pSubsetSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,410int32_t WelsInitSubsetSps (SSubsetSps* pSubsetSps, SDLayerParam* pLayerParam, const uint32_t kuiIntraPeriod,
411 const int32_t kiNumRefFrame,411 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) {
413 SWelsSPS* pSps = &pSubsetSps->pSps;413 SWelsSPS* pSps = &pSubsetSps->pSps;
414 414
415 memset (pSubsetSps, 0, sizeof (SSubsetSps));415 memset (pSubsetSps, 0, sizeof (SSubsetSps));
@@ -431,8 +431,8 @@ int32_t WelsInitPps (SWelsPPS* pPps, · 15 unmodified lines
431 SWelsSPS* pSps,431 SWelsSPS* pSps,
432 SSubsetSps* pSubsetSps,432 SSubsetSps* pSubsetSps,
433 const uint32_t kuiPpsId,433 const uint32_t kuiPpsId,
434 const bool_t kbDeblockingFilterPresentFlag,434 const bool kbDeblockingFilterPresentFlag,
435 const bool_t kbUsingSubsetSps) {435 const bool kbUsingSubsetSps) {
436 SWelsSPS* pUsedSps = NULL;436 SWelsSPS* pUsedSps = NULL;
437 if (pPps == NULL || (pSps == NULL && pSubsetSps == NULL))437 if (pPps == NULL || (pSps == NULL && pSubsetSps == NULL))
438 return 1;438 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