History

add EC MV copy

dong zhang committed 11 years ago

Commit 9425c2a1 parent 48e79d515 files · +321 −28Browse files

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

Unified · Split

codec/decoder/core/src/pic_queue.cpp+1−2
@@ -81,6 +81,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 80 unmodified lines
8181
8282 iLumaSize = iPicWidth * iPicHeight;
8383 iChromaSize = iPicChromaWidth * iPicChromaHeight;
84+
8485 pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMalloc (iLumaSize /* luma */
8586 + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]"));
8687 memset (pPic->pBuffer[0], 128, (iLumaSize + (iChromaSize << 1)));
@@ -94,8 +95,6 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 7 unmodified lines
9495 pPic->pData[1] = pPic->pBuffer[1] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[1]) * PADDING_LENGTH) >> 1);
9596 pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);
9697
97−
98−
9998 pPic->iPlanes = 3; // yv12 in default
10099 pPic->iWidthInPixel = kiPicWidth;
101100 pPic->iHeightInPixel = kiPicHeight;

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