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/decoder/core/src/manage_dec_ref.cpp (1 of 82 files). Show all

Unified · Split

codec/decoder/core/src/manage_dec_ref.cpp+5−5
@@ -92,7 +92,7 @@ void_t WelsResetRefPic (PWelsDecoderContext pCtx) { · 91 unmodified lines
92 */92 */
93int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) {93int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) {
94 int32_t i, j, iCount = 0;94 int32_t i, j, iCount = 0;
95 const bool_t kbUseRefBasePicFlag = pCtx->pCurDqLayer->bUseRefBasePicFlag;95 const bool kbUseRefBasePicFlag = pCtx->pCurDqLayer->bUseRefBasePicFlag;
96 PPicture* ppShoreRefList = pCtx->sRefPic.pShortRefList[LIST_0];96 PPicture* ppShoreRefList = pCtx->sRefPic.pShortRefList[LIST_0];
97 PPicture* ppLongRefList = pCtx->sRefPic.pLongRefList[LIST_0];97 PPicture* ppLongRefList = pCtx->sRefPic.pLongRefList[LIST_0];
98 memset (pCtx->sRefPic.pRefList[LIST_0], 0, MAX_REF_PIC_COUNT * sizeof (PPicture));98 memset (pCtx->sRefPic.pRefList[LIST_0], 0, MAX_REF_PIC_COUNT * sizeof (PPicture));
@@ -215,12 +215,12 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { · 116 unmodified lines
215 return ERR_NONE;215 return ERR_NONE;
216}216}
217 217
218int32_t WelsMarkAsRef (PWelsDecoderContext pCtx, const bool_t kbRefBaseMarkingFlag) {218int32_t WelsMarkAsRef (PWelsDecoderContext pCtx, const bool kbRefBaseMarkingFlag) {
219 PRefPic pRefPic = &pCtx->sRefPic;219 PRefPic pRefPic = &pCtx->sRefPic;
220 PRefPicMarking pRefPicMarking = pCtx->pCurDqLayer->pRefPicMarking;220 PRefPicMarking pRefPicMarking = pCtx->pCurDqLayer->pRefPicMarking;
221 PRefBasePicMarking pRefPicBaseMarking = pCtx->pCurDqLayer->pRefPicBaseMarking;221 PRefBasePicMarking pRefPicBaseMarking = pCtx->pCurDqLayer->pRefPicBaseMarking;
222 PAccessUnit pCurAU = pCtx->pAccessUnitList;222 PAccessUnit pCurAU = pCtx->pAccessUnitList;
223 bool_t bIsIDRAU = FALSE;223 bool bIsIDRAU = FALSE;
224 uint32_t j;224 uint32_t j;
225 225
226 int32_t iRet = ERR_NONE;226 int32_t iRet = ERR_NONE;
@@ -322,7 +322,7 @@ static int32_t MMCO (PWelsDecoderContext pCtx, PRefPicMarking pRefPicMarking) { · 95 unmodified lines
322 322
323 return ERR_NONE;323 return ERR_NONE;
324}324}
325static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, bool_t bRefBasePic,325static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, bool bRefBasePic,
326 int32_t iShortFrameNum, uint32_t uiLongTermPicNum , int32_t iLongTermFrameIdx, int32_t iMaxLongTermFrameIdx) {326 int32_t iShortFrameNum, uint32_t uiLongTermPicNum , int32_t iLongTermFrameIdx, int32_t iMaxLongTermFrameIdx) {
327 PRefPic pRefPic = &pCtx->sRefPic;327 PRefPic pRefPic = &pCtx->sRefPic;
328 PPicture pPic = NULL;328 PPicture pPic = NULL;
@@ -551,4 +551,4 @@ static int32_t MarkAsLongTerm (PRefPic pRefPic, int32_t iFrameNum, int32_t iLong · 222 unmodified lines
551 return iRet;551 return iRet;
552}552}
553 553
554} // namespace WelsDec554} // namespace WelsDec

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