History

add support for NAL with duplicated MBs in threaded decoding mode.

xiaotiansf committed 7 years ago

Commit ec09d671 parent b0f95c44 files · +11 −3Browse files

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

Unified · Split

codec/decoder/core/src/pic_queue.cpp+7−2
@@ -111,8 +111,8 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 110 unmodified lines
111111 uint32_t uiMbWidth = (kiPicWidth + 15) >> 4;
112112 uint32_t uiMbHeight = (kiPicHeight + 15) >> 4;
113113 uint32_t uiMbCount = uiMbWidth * uiMbHeight;
114− pPic->pMbType = (uint32_t*)pMa->WelsMallocz (uiMbCount * sizeof (uint32_t),
115− "pPic->pMbType");
114+ pPic->pMbCorrectlyDecodedFlag = (bool*)pMa->WelsMallocz (uiMbCount * sizeof (bool), "pPic->pMbCorrectlyDecodedFlag");
115+ pPic->pMbType = (uint32_t*)pMa->WelsMallocz (uiMbCount * sizeof (uint32_t), "pPic->pMbType");
116116 pPic->pMv[LIST_0] = (int16_t (*)[16][2])pMa->WelsMallocz (uiMbCount * sizeof (
117117 int16_t) * MV_A * MB_BLOCK4x4_NUM, "pPic->pMv[]");
118118 pPic->pMv[LIST_1] = (int16_t (*)[16][2])pMa->WelsMallocz (uiMbCount * sizeof (
@@ -140,6 +140,11 @@ void FreePicture (PPicture pPic, CMemoryAlign* pMa) { · 21 unmodified lines
140140 pPic->pBuffer[0] = NULL;
141141 }
142142
143+ if (pPic->pMbCorrectlyDecodedFlag) {
144+ pMa->WelsFree (pPic->pMbCorrectlyDecodedFlag, "pPic->pMbCorrectlyDecodedFlag");
145+ pPic->pMbCorrectlyDecodedFlag = NULL;
146+ }
147+
143148 if (pPic->pMbType) {
144149 pMa->WelsFree (pPic->pMbType, "pPic->pMbType");
145150 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