History

astyle all cpp files

huili2 committed 12 years ago

Commit adb0fa41 parent 0dbdbfb14 files · +138 −121Browse 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+15−9
@@ -90,7 +90,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 89 unmodified lines
9090 }
9191
9292 if (WelsTargetMbConstruction (pCtx)) {
93− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n",
93+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
94+ "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d\n",
9495 pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType);
9596
9697 return -1;
@@ -103,7 +104,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 6 unmodified lines
103104 }
104105
105106 if (pCtx->iTotalNumMbRec > iTotalMbTargetLayer) {
106− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetSliceConstruction():::pCtx->iTotalNumMbRec:%d, iTotalMbTargetLayer:%d\n",
107+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
108+ "WelsTargetSliceConstruction():::pCtx->iTotalNumMbRec:%d, iTotalMbTargetLayer:%d\n",
107109 pCtx->iTotalNumMbRec, iTotalMbTargetLayer);
108110
109111 return -1;
@@ -285,7 +287,7 @@ int32_t WelsTargetMbConstruction (PWelsDecoderContext pCtx) { · 175 unmodified lines
285287 WelsMbInterConstruction (pCtx, pCurLayer);
286288 }
287289 } else {
288− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetMbConstruction():::::Unknown MB type: %d\n",
290+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "WelsTargetMbConstruction():::::Unknown MB type: %d\n",
289291 pCurLayer->pMbType[pCurLayer->iMbXyIndex]);
290292 return -1;
291293 }
@@ -416,7 +418,7 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 124 unmodified lines
416418 break;
417419 }
418420 if (iUsedBits > pBs->iBits) { //When BS incomplete, as long as find it, SHOULD stop decoding to avoid mosaic or crash.
419− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING,
421+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
420422 "WelsDecodeSlice()::::pBs incomplete, iUsedBits:%"PRId64" > pBs->iBits:%d, MUST stop decoding.\n",
421423 (int64_t) iUsedBits, pBs->iBits);
422424 return -1;
@@ -584,7 +586,8 @@ int32_t WelsActualDecodeMbCavlcISlice (PWelsDecoderContext pCtx) { · 161 unmodified lines
584586 return ERR_INFO_INVALID_QP;
585587 }
586588 pSlice->iLastMbQp = pCurLayer->pLumaQp[iMbXy];
587− pCurLayer->pChromaQp[iMbXy] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp + pSliceHeader->pPps->iChromaQpIndexOffset, 0,
589+ pCurLayer->pChromaQp[iMbXy] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp +
590+ pSliceHeader->pPps->iChromaQpIndexOffset, 0,
588591 51)];
589592
590593
@@ -687,7 +690,8 @@ int32_t WelsDecodeMbCavlcISlice (PWelsDecoderContext pCtx, PNalUnit pNalCur) { · 96 unmodified lines
687690 if (!iBaseModeFlag) {
688691 iRet = WelsActualDecodeMbCavlcISlice (pCtx);
689692 } else {
690− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
693+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n",
694+ iBaseModeFlag);
691695 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_ILP);
692696 }
693697 if (iRet) { //occur error when parsing, MUST STOP decoding
@@ -743,7 +747,7 @@ int32_t WelsActualDecodeMbCavlcPSlice (PWelsDecoderContext pCtx) { · 49 unmodified lines
743747 if (pCurLayer->pResidualPredFlag[iMbXy] == 0) {
744748 pCurLayer->pInterPredictionDoneFlag[iMbXy] = 0;
745749 } else {
746− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "residual_pred_flag = 1 not supported.\n");
750+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "residual_pred_flag = 1 not supported.\n");
747751 return -1;
748752 }
749753 } else { //intra MB type
@@ -887,7 +891,8 @@ int32_t WelsActualDecodeMbCavlcPSlice (PWelsDecoderContext pCtx) { · 137 unmodified lines
887891 return ERR_INFO_INVALID_QP;
888892 }
889893 pSlice->iLastMbQp = pCurLayer->pLumaQp[iMbXy];
890− pCurLayer->pChromaQp[iMbXy] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp + pSliceHeader->pPps->iChromaQpIndexOffset, 0,
894+ pCurLayer->pChromaQp[iMbXy] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp +
895+ pSliceHeader->pPps->iChromaQpIndexOffset, 0,
891896 51)];
892897
893898 BsStartCavlc (pBs);
@@ -1039,7 +1044,8 @@ int32_t WelsDecodeMbCavlcPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur) { · 145 unmodified lines
10391044 if (!iBaseModeFlag) {
10401045 iRet = WelsActualDecodeMbCavlcPSlice (pCtx);
10411046 } else {
1042− WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n", iBaseModeFlag);
1047+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "iBaseModeFlag (%d) != 0, inter-layer prediction not supported.\n",
1048+ iBaseModeFlag);
10431049 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_ILP);
10441050 }
10451051 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