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

Unified · Split

codec/decoder/core/src/decoder.cpp+4−4
@@ -177,11 +177,11 @@ void_t WelsDecoderDefaults (PWelsDecoderContext pCtx) { · 176 unmodified lines
177 * get size of reference picture list in target layer incoming, = (iNumRefFrames x 2)177 * get size of reference picture list in target layer incoming, = (iNumRefFrames x 2)
178 */178 */
179static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {179static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {
180 bool_t* pSubsetSpsAvail = &pCtx->bSubspsAvailFlags[0];180 bool* pSubsetSpsAvail = &pCtx->bSubspsAvailFlags[0];
181 bool_t* pSpsAvail = &pCtx->bSpsAvailFlags[0];181 bool* pSpsAvail = &pCtx->bSpsAvailFlags[0];
182 int32_t iSubsetIdx = -1;182 int32_t iSubsetIdx = -1;
183 int32_t iSpsIdx = -1;183 int32_t iSpsIdx = -1;
184 bool_t bExistSubsetSps = false;184 bool bExistSubsetSps = false;
185 int32_t bExistSps = false;185 int32_t bExistSps = false;
186 int32_t iPos = MAX_SPS_COUNT - 1;186 int32_t iPos = MAX_SPS_COUNT - 1;
187 int32_t iNumRefFrames = 0;187 int32_t iNumRefFrames = 0;
@@ -238,7 +238,7 @@ int32_t WelsRequestMem (PWelsDecoderContext pCtx, const int32_t kiMbWidth, const · 50 unmodified lines
238 238
239 int32_t iListIdx = 0; //, mb_blocks = 0;239 int32_t iListIdx = 0; //, mb_blocks = 0;
240 int32_t iPicQueueSize = 0; // adaptive size of picture queue, = (pSps->iNumRefFrames x 2)240 int32_t iPicQueueSize = 0; // adaptive size of picture queue, = (pSps->iNumRefFrames x 2)
241 bool_t bNeedChangePicQueue = true;241 bool bNeedChangePicQueue = true;
242 242
243 WELS_VERIFY_RETURN_IF (ERR_INFO_INVALID_PARAM, (NULL == pCtx || kiPicWidth <= 0 || kiPicHeight <= 0))243 WELS_VERIFY_RETURN_IF (ERR_INFO_INVALID_PARAM, (NULL == pCtx || kiPicWidth <= 0 || kiPicHeight <= 0))
244 244

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