History

Thread decoding deblocking update by setting pNzc array for neighboring MBs.

xiaotiansf committed 6 years ago

Commit 49ca1f71 parent 3f286436 files · +43 −34Browse files

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

Unified · Split

codec/decoder/core/src/decode_slice.cpp+2−6
@@ -1719,16 +1719,12 @@ int32_t WelsDecodeAndConstructSlice (PWelsDecoderContext pCtx) { · 1718 unmodified lines
1719 1719
1720 return ERR_INFO_MB_RECON_FAIL;1720 return ERR_INFO_MB_RECON_FAIL;
1721 }1721 }
1722 int8_t pNzc[24];1722 memcpy (pCtx->pDec->pNzc[pCurDqLayer->iMbXyIndex], pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], 24);
1723 if (pCtx->eSliceType != I_SLICE) {1723 if (pCtx->eSliceType != I_SLICE) {
1724 memcpy (pNzc, pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], 24);
1725 pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (1724 pCtx->sBlockFunc.pWelsSetNonZeroCountFunc (
1726 pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti!1725 pCtx->pDec->pNzc[pCurDqLayer->iMbXyIndex]); // set all none-zero nzc to 1; dbk can be opti!
1727 }1726 }
1728 WelsDeblockingFilterMB (pCurDqLayer, pFilter, iFilterIdc, pDeblockMb);1727 WelsDeblockingFilterMB (pCurDqLayer, pFilter, iFilterIdc, pDeblockMb);
1729 if (pCtx->eSliceType != I_SLICE) {
1730 memcpy (pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], pNzc, 24);
1731 }
1732 if (pCtx->uiNalRefIdc > 0) {1728 if (pCtx->uiNalRefIdc > 0) {
1733 if (pCurDqLayer->iMbX == 0 || pCurDqLayer->iMbX == pCurDqLayer->iMbWidth - 1 || pCurDqLayer->iMbY == 01729 if (pCurDqLayer->iMbX == 0 || pCurDqLayer->iMbX == pCurDqLayer->iMbWidth - 1 || pCurDqLayer->iMbY == 0
1734 || pCurDqLayer->iMbY == pCurDqLayer->iMbHeight - 1) {1730 || pCurDqLayer->iMbY == pCurDqLayer->iMbHeight - 1) {

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