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/pic_queue.cpp (1 of 6 files). Show all

Unified · Split

codec/decoder/core/src/pic_queue.cpp+6−1
@@ -113,7 +113,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 112 unmodified lines
113113 uint32_t uiMbCount = uiMbWidth * uiMbHeight;
114114
115115 pPic->pMbCorrectlyDecodedFlag = (bool*)pMa->WelsMallocz (uiMbCount * sizeof (bool), "pPic->pMbCorrectlyDecodedFlag");
116−
116+ pPic->pNzc = GetThreadCount (pCtx) > 1 ? (int8_t (*)[24])pMa->WelsMallocz (uiMbCount * 24, "pPic->pNzc") : NULL;
117117 pPic->pMbType = (uint32_t*)pMa->WelsMallocz (uiMbCount * sizeof (uint32_t), "pPic->pMbType");
118118 pPic->pMv[LIST_0] = (int16_t (*)[16][2])pMa->WelsMallocz (uiMbCount * sizeof (
119119 int16_t) * MV_A * MB_BLOCK4x4_NUM, "pPic->pMv[]");
@@ -147,6 +147,11 @@ void FreePicture (PPicture pPic, CMemoryAlign* pMa) { · 27 unmodified lines
147147 pPic->pMbCorrectlyDecodedFlag = NULL;
148148 }
149149
150+ if (pPic->pNzc) {
151+ pMa->WelsFree (pPic->pNzc, "pPic->pNzc");
152+ pPic->pNzc = NULL;
153+ }
154+
150155 if (pPic->pMbType) {
151156 pMa->WelsFree (pPic->pMbType, "pPic->pMbType");
152157 pPic->pMbType = NULL;

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