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.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 22 files). Show all
Unified · Split
| @@ -3359,7 +3359,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 3358 unmodified lines | ||
| 3359 | 3359 | pCtx->iActiveThreadsNum = iSliceCount; |
| 3360 | 3360 | // to fire slice coding threads |
| 3361 | 3361 | err = FiredSliceThreads (&pCtx->pSliceThreading->pThreadPEncCtx[0], &pCtx->pSliceThreading->pReadySliceCodingEvent[0], |
| 3362 | − pLayerBsInfo, iSliceCount, pCtx->pCurDqLayer->pSliceEncCtx, FALSE); | |
| 3362 | + pLayerBsInfo, iSliceCount, pCtx->pCurDqLayer->pSliceEncCtx, false); | |
| 3363 | 3363 | if (err) { |
| 3364 | 3364 | WelsLog (pCtx, WELS_LOG_ERROR, |
| 3365 | 3365 | "[MT] WelsEncoderEncodeExt(), FiredSliceThreads return(%d) failed and exit encoding frame, iCountThreadsNum= %d, iSliceCount= %d, uiSliceMode= %d, iMultipleThreadIdc= %d!!\n", |
| @@ -3418,7 +3418,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 52 unmodified lines | ||
| 3418 | 3418 | iNumThreadsRunning = iNumThreadsScheduled; |
| 3419 | 3419 | // to fire slice coding threads |
| 3420 | 3420 | err = FiredSliceThreads (&pCtx->pSliceThreading->pThreadPEncCtx[0], &pCtx->pSliceThreading->pReadySliceCodingEvent[0], |
| 3421 | − pLayerBsInfo, iNumThreadsRunning, pCtx->pCurDqLayer->pSliceEncCtx, FALSE); | |
| 3421 | + pLayerBsInfo, iNumThreadsRunning, pCtx->pCurDqLayer->pSliceEncCtx, false); | |
| 3422 | 3422 | if (err) { |
| 3423 | 3423 | WelsLog (pCtx, WELS_LOG_ERROR, |
| 3424 | 3424 | "[MT] WelsEncoderEncodeExt(), FiredSliceThreads return(%d) failed and exit encoding frame, iCountThreadsNum= %d, iSliceCount= %d, uiSliceMode= %d, iMultipleThreadIdc= %d!!\n", |
| @@ -3510,7 +3510,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 85 unmodified lines | ||
| 3510 | 3510 | |
| 3511 | 3511 | // to fire slice coding threads |
| 3512 | 3512 | err = FiredSliceThreads (&pCtx->pSliceThreading->pThreadPEncCtx[0], &pCtx->pSliceThreading->pReadySliceCodingEvent[0], |
| 3513 | − pLayerBsInfo, kiPartitionCnt, pCtx->pCurDqLayer->pSliceEncCtx, TRUE); | |
| 3513 | + pLayerBsInfo, kiPartitionCnt, pCtx->pCurDqLayer->pSliceEncCtx, true); | |
| 3514 | 3514 | if (err) { |
| 3515 | 3515 | WelsLog (pCtx, WELS_LOG_ERROR, |
| 3516 | 3516 | "[MT] WelsEncoderEncodeExt(), FiredSliceThreads return(%d) failed and exit encoding frame, iCountThreadsNum= %d, iSliceCount= %d, uiSliceMode= %d, iMultipleThreadIdc= %d!!\n", |