History

astyle all files

huili2 committed 12 years ago

Commit 5ed24f21 parent 0c24686120 files · +3967 −3886Browse files

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

Unified · Split

codec/decoder/core/src/pic_queue.cpp+11−11
@@ -81,17 +81,17 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 80 unmodified lines
81 81
82 iLumaSize = iPicWidth * iPicHeight;82 iLumaSize = iPicWidth * iPicHeight;
83 iChromaSize = iPicChromaWidth * iPicChromaHeight;83 iChromaSize = iPicChromaWidth * iPicChromaHeight;
84 pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMalloc (iLumaSize /* luma */84 pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMalloc (iLumaSize /* luma */
85 + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]"));85 + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]"));
86 86
87 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic));87 WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic));
88 pPic->iLinesize[0] = iPicWidth;88 pPic->iLinesize[0] = iPicWidth;
89 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth;89 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth;
90 pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;90 pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;
91 pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;91 pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;
92 pPic->pData[0] = pPic->pBuffer[0] + (1 + pPic->iLinesize[0]) * PADDING_LENGTH;92 pPic->pData[0] = pPic->pBuffer[0] + (1 + pPic->iLinesize[0]) * PADDING_LENGTH;
93 pPic->pData[1] = pPic->pBuffer[1] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[1]) * PADDING_LENGTH) >> 1);93 pPic->pData[1] = pPic->pBuffer[1] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[1]) * PADDING_LENGTH) >> 1);
94 pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);94 pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);
95 95
96 96
97 97

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