History

remove CS and RS syntaxs for issue 373

Licai Guo committed 12 years ago

Commit 4260a9b1 parent 8beb3c85 files · +10 −103Browse files

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

Unified · Split

codec/decoder/core/src/decode_slice.cpp+7−31
@@ -285,31 +285,7 @@ void WelsMbCopy (uint8_t* pDst, int32_t iStrideDst, uint8_t* pSrc, int32_t iStri · 284 unmodified lines
285285 int32_t WelsTargetMbConstruction (PWelsDecoderContext pCtx) {
286286 PDqLayer pCurLayer = pCtx->pCurDqLayer;
287287 if (MB_TYPE_INTRA_PCM == pCurLayer->pMbType[pCurLayer->iMbXyIndex]) {
288− //copy cs into fdec
289− int32_t iCsStrideL = pCurLayer->iCsStride[0];
290− int32_t iCsStrideC = pCurLayer->iCsStride[1];
291−
292− int32_t iDecStrideL = pCurLayer->pDec->iLinesize[0];
293− int32_t iDecStrideC = pCurLayer->pDec->iLinesize[1];
294−
295− int32_t iCsOffsetL = (pCurLayer->iMbX + pCurLayer->iMbY * iCsStrideL) << 4;
296− int32_t iCsOffsetC = (pCurLayer->iMbX + pCurLayer->iMbY * iCsStrideC) << 3;
297−
298− int32_t iDecOffsetL = (pCurLayer->iMbX + pCurLayer->iMbY * iDecStrideL) << 4;
299− int32_t iDecOffsetC = (pCurLayer->iMbX + pCurLayer->iMbY * iDecStrideC) << 3;
300−
301− uint8_t* pSrcY = pCurLayer->pCsData[0] + iCsOffsetL;
302− uint8_t* pSrcU = pCurLayer->pCsData[1] + iCsOffsetC;
303− uint8_t* pSrcV = pCurLayer->pCsData[2] + iCsOffsetC;
304−
305− uint8_t* pDecY = pCurLayer->pDec->pData[0] + iDecOffsetL;
306− uint8_t* pDecU = pCurLayer->pDec->pData[1] + iDecOffsetC;
307− uint8_t* pDecV = pCurLayer->pDec->pData[2] + iDecOffsetC;
308−
309− WelsMbCopy (pDecY, iDecStrideL, pSrcY, iCsStrideL, 16, 16);
310− WelsMbCopy (pDecU, iDecStrideC, pSrcU, iCsStrideC, 8, 8);
311− WelsMbCopy (pDecV, iDecStrideC, pSrcV, iCsStrideC, 8, 8);
312−
288+ //already decoded and reconstructed when parsing
313289 return 0;
314290 } else if (IS_INTRA (pCurLayer->pMbType[pCurLayer->iMbXyIndex])) {
315291 WelsMbIntraPredictionConstruction (pCtx, pCurLayer, 1);
@@ -512,9 +488,9 @@ int32_t WelsActualDecodeMbCavlcISlice (PWelsDecoderContext pCtx) { · 196 unmodified lines
512488 int32_t iOffsetL = (iMbX + iMbY * iDecStrideL) << 4;
513489 int32_t iOffsetC = (iMbX + iMbY * iDecStrideC) << 3;
514490
515− uint8_t* pDecY = pCurLayer->pCsData[0] + iOffsetL;
516− uint8_t* pDecU = pCurLayer->pCsData[1] + iOffsetC;
517− uint8_t* pDecV = pCurLayer->pCsData[2] + iOffsetC;
491+ uint8_t* pDecY = pCurLayer->pDec->pData[0] + iOffsetL;
492+ uint8_t* pDecU = pCurLayer->pDec->pData[1] + iOffsetC;
493+ uint8_t* pDecV = pCurLayer->pDec->pData[2] + iOffsetC;
518494
519495 uint8_t* pTmpBsBuf;
520496
@@ -821,9 +797,9 @@ int32_t WelsActualDecodeMbCavlcPSlice (PWelsDecoderContext pCtx) { · 300 unmodified lines
821797 int32_t iOffsetL = (iMbX + iMbY * iDecStrideL) << 4;
822798 int32_t iOffsetC = (iMbX + iMbY * iDecStrideC) << 3;
823799
824− uint8_t* pDecY = pCurLayer->pCsData[0] + iOffsetL;
825− uint8_t* pDecU = pCurLayer->pCsData[1] + iOffsetC;
826− uint8_t* pDecV = pCurLayer->pCsData[2] + iOffsetC;
800+ uint8_t* pDecY = pCurLayer->pDec->pData[0] + iOffsetL;
801+ uint8_t* pDecU = pCurLayer->pDec->pData[1] + iOffsetC;
802+ uint8_t* pDecV = pCurLayer->pDec->pData[2] + iOffsetC;
827803
828804 uint8_t* pTmpBsBuf;
829805

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