History

Convert tabs to spaces before comments

Martin Storsjö committed 11 years ago

Commit 78e0ec61 parent 3052b7a57 files · +278 −278Browse files

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

Unified · Split

codec/decoder/core/src/decode_slice.cpp+7−7
@@ -120,7 +120,7 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 119 unmodified lines
120120 } else {
121121 ++iNextMbXyIndex;
122122 }
123− if (-1 == iNextMbXyIndex || iNextMbXyIndex >= iTotalMbTargetLayer) { // slice group boundary or end of a frame
123+ if (-1 == iNextMbXyIndex || iNextMbXyIndex >= iTotalMbTargetLayer) { // slice group boundary or end of a frame
124124 break;
125125 }
126126 pCurLayer->iMbX = iNextMbXyIndex % pCurLayer->iMbWidth;
@@ -155,8 +155,8 @@ int32_t WelsMbInterSampleConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLa · 28 unmodified lines
155155 int32_t iMbXy = pCurLayer->iMbXyIndex;
156156 int32_t i, iIndex, iOffset;
157157
158− WelsChromaDcIdct (pCurLayer->pScaledTCoeff[iMbXy] + 256); // 256 = 16*16
159− WelsChromaDcIdct (pCurLayer->pScaledTCoeff[iMbXy] + 320); // 320 = 16*16 + 16*4
158+ WelsChromaDcIdct (pCurLayer->pScaledTCoeff[iMbXy] + 256); // 256 = 16*16
159+ WelsChromaDcIdct (pCurLayer->pScaledTCoeff[iMbXy] + 320); // 320 = 16*16 + 16*4
160160
161161 if (pCurLayer->pTransformSize8x8Flag[iMbXy]) {
162162 for (i = 0; i < 4; i++) {
@@ -227,7 +227,7 @@ void WelsLumaDcDequantIdct (int16_t* pBlock, int32_t iQp, PWelsDecoderContext pC · 64 unmodified lines
227227 const int32_t kiX1 = kiOffset + kiXOffset[2];
228228 const int32_t kiX2 = STRIDE + kiOffset;
229229 const int32_t kiX3 = kiOffset + kiXOffset[3];
230− const int32_t kiI4 = i << 2; // 4*i
230+ const int32_t kiI4 = i << 2; // 4*i
231231 const int32_t kiZ0 = pBlk[kiOffset] + pBlk[kiX1];
232232 const int32_t kiZ1 = pBlk[kiOffset] - pBlk[kiX1];
233233 const int32_t kiZ2 = pBlk[kiX2] - pBlk[kiX3];
@@ -1227,7 +1227,7 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 993 unmodified lines
12271227 pCurLayer->iMbXyIndex = iNextMbXyIndex;
12281228
12291229 do {
1230− if ((-1 == iNextMbXyIndex) || (iNextMbXyIndex >= kiCountNumMb)) { // slice group boundary or end of a frame
1230+ if ((-1 == iNextMbXyIndex) || (iNextMbXyIndex >= kiCountNumMb)) { // slice group boundary or end of a frame
12311231 break;
12321232 }
12331233
@@ -1564,7 +1564,7 @@ int32_t WelsDecodeMbCavlcISlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uin · 330 unmodified lines
15641564 // check whether there is left bits to read next time in case multiple slices
15651565 iUsedBits = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits);
15661566 // sub 1, for stop bit
1567− if ((iUsedBits == (pBs->iBits - 1)) && (0 >= pCurLayer->sLayerInfo.sSliceInLayer.iMbSkipRun)) { // slice boundary
1567+ if ((iUsedBits == (pBs->iBits - 1)) && (0 >= pCurLayer->sLayerInfo.sSliceInLayer.iMbSkipRun)) { // slice boundary
15681568 uiEosFlag = 1;
15691569 }
15701570 if (iUsedBits > (pBs->iBits -
@@ -1987,7 +1987,7 @@ int32_t WelsDecodeMbCavlcPSlice (PWelsDecoderContext pCtx, PNalUnit pNalCur, uin · 416 unmodified lines
19871987 // check whether there is left bits to read next time in case multiple slices
19881988 iUsedBits = ((pBs->pCurBuf - pBs->pStartBuf) << 3) - (16 - pBs->iLeftBits);
19891989 // sub 1, for stop bit
1990− if ((iUsedBits == (pBs->iBits - 1)) && (0 >= pCurLayer->sLayerInfo.sSliceInLayer.iMbSkipRun)) { // slice boundary
1990+ if ((iUsedBits == (pBs->iBits - 1)) && (0 >= pCurLayer->sLayerInfo.sSliceInLayer.iMbSkipRun)) { // slice boundary
19911991 uiEosFlag = 1;
19921992 }
19931993 if (iUsedBits > (pBs->iBits -

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