History

trace fix

ruil2 committed 12 years ago

Commit fa138e81 parent 0f4499114 files · +202 −200Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 14 files). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+6−6
@@ -102,7 +102,7 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 101 unmodified lines
102102 break;
103103 }
104104 if (pCtx->iTotalNumMbRec > iTotalMbTargetLayer) {
105− WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetSliceConstruction():::pCtx->iTotalNumMbRec:%d, iTotalMbTargetLayer:%d\n",
105+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetSliceConstruction():::pCtx->iTotalNumMbRec:%d, iTotalMbTargetLayer:%d\n",
106106 pCtx->iTotalNumMbRec, iTotalMbTargetLayer);
107107
108108 return -1;
@@ -284,7 +284,7 @@ int32_t WelsTargetMbConstruction (PWelsDecoderContext pCtx) { · 175 unmodified lines
284284 WelsMbInterConstruction (pCtx, pCurLayer);
285285 }
286286 } else {
287− WelsLog (pCtx, WELS_LOG_WARNING, "WelsTargetMbConstruction():::::Unknown MB type: %d\n",
287+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetMbConstruction():::::Unknown MB type: %d\n",
288288 pCurLayer->pMbType[pCurLayer->iMbXyIndex]);
289289 return -1;
290290 }
@@ -414,7 +414,7 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 123 unmodified lines
414414 break;
415415 }
416416 if (iUsedBits > pBs->iBits) { //When BS incomplete, as long as find it, SHOULD stop decoding to avoid mosaic or crash.
417− WelsLog (pCtx, WELS_LOG_WARNING,
417+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING,
418418 "WelsDecodeSlice()::::pBs incomplete, iUsedBits:%"PRId64" > pBs->iBits:%d, MUST stop decoding.\n",
419419 (int64_t) iUsedBits, pBs->iBits);
420420 return -1;
@@ -685,7 +685,7 @@ int32_t WelsDecodeMbCavlcISlice (PWelsDecoderContext pCtx, PNalUnit pNalCur) { · 264 unmodified lines
685685 if (!iBaseModeFlag) {
686686 iRet = WelsActualDecodeMbCavlcISlice (pCtx);
687687 } else {
688− WelsLog (pCtx, WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
688+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
689689 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_ILP);
690690 }
691691 if (iRet) { //occur error when parsing, MUST STOP decoding
@@ -741,7 +741,7 @@ int32_t WelsActualDecodeMbCavlcPSlice (PWelsDecoderContext pCtx) { · 49 unmodified lines
741741 if (pCurLayer->pResidualPredFlag[iMbXy] == 0) {
742742 pCurLayer->pInterPredictionDoneFlag[iMbXy] = 0;
743743 } else {
744− WelsLog (pCtx, WELS_LOG_WARNING, "residual_pred_flag = 1 not supported.\n");
744+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "residual_pred_flag = 1 not supported.\n");
745745 return -1;
746746 }
747747 } else { //intra MB type
@@ -1037,7 +1037,7 @@ int32_t WelsDecodeMbCavlcPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur) { · 289 unmodified lines
10371037 if (!iBaseModeFlag) {
10381038 iRet = WelsActualDecodeMbCavlcPSlice (pCtx);
10391039 } else {
1040− WelsLog (pCtx, WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
1040+ WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
10411041 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_ILP);
10421042 }
10431043 if (iRet) { //occur error when parsing, MUST STOP decoding

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