History

Convert tabs to spaces in vertically aligned code

Martin Storsjö committed 11 years ago

Commit 51efa571 parent 723044864 files · +2746 −2751Browse files

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

Unified · Split

codec/decoder/core/src/pic_queue.cpp+16−16
@@ -64,10 +64,10 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 63 unmodified lines
64 int32_t iPicWidth = 0;64 int32_t iPicWidth = 0;
65 int32_t iPicHeight = 0;65 int32_t iPicHeight = 0;
66 66
67 int32_t iPicChromaWidth = 0;67 int32_t iPicChromaWidth = 0;
68 int32_t iPicChromaHeight = 0;68 int32_t iPicChromaHeight = 0;
69 int32_t iLumaSize = 0;69 int32_t iLumaSize = 0;
70 int32_t iChromaSize = 0;70 int32_t iChromaSize = 0;
71 71
72 pPic = (PPicture) WelsMallocz (sizeof (SPicture), "PPicture");72 pPic = (PPicture) WelsMallocz (sizeof (SPicture), "PPicture");
73 WELS_VERIFY_RETURN_IF (NULL, NULL == pPic);73 WELS_VERIFY_RETURN_IF (NULL, NULL == pPic);
@@ -76,11 +76,11 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 2 unmodified lines
76 76
77 iPicWidth = WELS_ALIGN (kiPicWidth + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);77 iPicWidth = WELS_ALIGN (kiPicWidth + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);
78 iPicHeight = WELS_ALIGN (kiPicHeight + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);78 iPicHeight = WELS_ALIGN (kiPicHeight + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);
79 iPicChromaWidth = iPicWidth >> 1;79 iPicChromaWidth = iPicWidth >> 1;
80 iPicChromaHeight = iPicHeight >> 1;80 iPicChromaHeight = iPicHeight >> 1;
81 81
82 iLumaSize = iPicWidth * iPicHeight;82 iLumaSize = iPicWidth * iPicHeight;
83 iChromaSize = iPicChromaWidth * iPicChromaHeight;83 iChromaSize = iPicChromaWidth * iPicChromaHeight;
84 84
85 if (pCtx->bParseOnly) {85 if (pCtx->bParseOnly) {
86 pPic->pBuffer[0] = pPic->pBuffer[1] = pPic->pBuffer[2] = NULL;86 pPic->pBuffer[0] = pPic->pBuffer[1] = pPic->pBuffer[2] = NULL;
@@ -95,16 +95,16 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 8 unmodified lines
95 memset (pPic->pBuffer[0], 128, (iLumaSize + (iChromaSize << 1)));95 memset (pPic->pBuffer[0], 128, (iLumaSize + (iChromaSize << 1)));
96 pPic->iLinesize[0] = iPicWidth;96 pPic->iLinesize[0] = iPicWidth;
97 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth;97 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth;
98 pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;98 pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;
99 pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;99 pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;
100 pPic->pData[0] = pPic->pBuffer[0] + (1 + pPic->iLinesize[0]) * PADDING_LENGTH;100 pPic->pData[0] = pPic->pBuffer[0] + (1 + pPic->iLinesize[0]) * PADDING_LENGTH;
101 pPic->pData[1] = pPic->pBuffer[1] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[1]) * PADDING_LENGTH) >> 1);101 pPic->pData[1] = pPic->pBuffer[1] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[1]) * PADDING_LENGTH) >> 1);
102 pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);102 pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);
103 }103 }
104 pPic->iPlanes = 3; // yv12 in default104 pPic->iPlanes = 3; // yv12 in default
105 pPic->iWidthInPixel = kiPicWidth;105 pPic->iWidthInPixel = kiPicWidth;
106 pPic->iHeightInPixel = kiPicHeight;106 pPic->iHeightInPixel = kiPicHeight;
107 pPic->iFrameNum = -1;107 pPic->iFrameNum = -1;
108 pPic->bAvailableFlag = true;108 pPic->bAvailableFlag = true;
109 109
110 return pPic;110 return pPic;

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