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
6464 int32_t iPicWidth = 0;
6565 int32_t iPicHeight = 0;
6666
67− int32_t iPicChromaWidth = 0;
68− int32_t iPicChromaHeight = 0;
69− int32_t iLumaSize = 0;
70− int32_t iChromaSize = 0;
67+ int32_t iPicChromaWidth = 0;
68+ int32_t iPicChromaHeight = 0;
69+ int32_t iLumaSize = 0;
70+ int32_t iChromaSize = 0;
7171
7272 pPic = (PPicture) WelsMallocz (sizeof (SPicture), "PPicture");
7373 WELS_VERIFY_RETURN_IF (NULL, NULL == pPic);
@@ -76,11 +76,11 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 2 unmodified lines
7676
7777 iPicWidth = WELS_ALIGN (kiPicWidth + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);
7878 iPicHeight = WELS_ALIGN (kiPicHeight + (PADDING_LENGTH << 1), PICTURE_RESOLUTION_ALIGNMENT);
79− iPicChromaWidth = iPicWidth >> 1;
80− iPicChromaHeight = iPicHeight >> 1;
79+ iPicChromaWidth = iPicWidth >> 1;
80+ iPicChromaHeight = iPicHeight >> 1;
8181
82− iLumaSize = iPicWidth * iPicHeight;
83− iChromaSize = iPicChromaWidth * iPicChromaHeight;
82+ iLumaSize = iPicWidth * iPicHeight;
83+ iChromaSize = iPicChromaWidth * iPicChromaHeight;
8484
8585 if (pCtx->bParseOnly) {
8686 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
9595 memset (pPic->pBuffer[0], 128, (iLumaSize + (iChromaSize << 1)));
9696 pPic->iLinesize[0] = iPicWidth;
9797 pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth;
98− pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;
99− pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;
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);
102− pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);
98+ pPic->pBuffer[1] = pPic->pBuffer[0] + iLumaSize;
99+ pPic->pBuffer[2] = pPic->pBuffer[1] + iChromaSize;
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);
102+ pPic->pData[2] = pPic->pBuffer[2] + /*WELS_ALIGN*/ (((1 + pPic->iLinesize[2]) * PADDING_LENGTH) >> 1);
103103 }
104− pPic->iPlanes = 3; // yv12 in default
105− pPic->iWidthInPixel = kiPicWidth;
104+ pPic->iPlanes = 3; // yv12 in default
105+ pPic->iWidthInPixel = kiPicWidth;
106106 pPic->iHeightInPixel = kiPicHeight;
107− pPic->iFrameNum = -1;
107+ pPic->iFrameNum = -1;
108108 pPic->bAvailableFlag = true;
109109
110110 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