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
17191719
17201720 return ERR_INFO_MB_RECON_FAIL;
17211721 }
1722− int8_t pNzc[24];
1722+ memcpy (pCtx->pDec->pNzc[pCurDqLayer->iMbXyIndex], pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], 24);
17231723 if (pCtx->eSliceType != I_SLICE) {
1724− memcpy (pNzc, pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], 24);
17251724 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!
17271726 }
17281727 WelsDeblockingFilterMB (pCurDqLayer, pFilter, iFilterIdc, pDeblockMb);
1729− if (pCtx->eSliceType != I_SLICE) {
1730− memcpy (pCurDqLayer->pNzc[pCurDqLayer->iMbXyIndex], pNzc, 24);
1731− }
17321728 if (pCtx->uiNalRefIdc > 0) {
17331729 if (pCurDqLayer->iMbX == 0 || pCurDqLayer->iMbX == pCurDqLayer->iMbWidth - 1 || pCurDqLayer->iMbY == 0
17341730 || 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