History

Remove unnecessary tabs in the middle of lines

At 6ff4ef3b38 all the (stray, mixed) tabs had been cleaned out from the source code; remove newly added tabs and convert to spaces.

Martin Storsjö committed 11 years ago

Commit 282eda21 parent 41caf384 files · +19 −19Browse files

Unified · Split

4 files
  1. codec/encoder/core/inc/rc.h +1 −1
  2. codec/encoder/core/src/encoder_ext.cpp +9 −9
  3. codec/encoder/core/src/mv_pred.cpp +6 −6
  4. codec/encoder/core/src/ratectl.cpp +3 −3
codec/encoder/core/inc/rc.h+1−1
@@ -272,7 +272,7 @@ PWelsCheckFrameSkipBasedMaxbrFunc pfWelsCheckSkipBasedMaxbr; · 271 unmodified lines
272272 PWelsUpdateBufferWhenFrameSkippedFunc pfWelsUpdateBufferWhenSkip;
273273 PWelsUpdateMaxBrCheckWindowStatusFunc pfWelsUpdateMaxBrWindowStatus;
274274
275−PWelsRCPostFrameSkippingFunc pfWelsRcPostFrameSkipping;
275+PWelsRCPostFrameSkippingFunc pfWelsRcPostFrameSkipping;
276276 } SWelsRcFunc;
277277
278278 bool CheckFrameSkipBasedMaxbr (sWelsEncCtx* pCtx, int32_t iSpatialNum, EVideoFrameType eFrameType,
codec/encoder/core/src/encoder_ext.cpp+9−9
@@ -3670,16 +3670,16 @@ int32_t WriteSavcParaset_Listing (sWelsEncCtx* pCtx, const int32_t kiSpatialNum, · 3669 unmodified lines
36703670 void StackBackEncoderStatus (sWelsEncCtx* pEncCtx,
36713671 EVideoFrameType keFrameType) {
36723672 // for bitstream writing
3673− pEncCtx->iPosBsBuffer = 0; // reset bs pBuffer position
3674− pEncCtx->pOut->iNalIndex = 0; // reset NAL index
3673+ pEncCtx->iPosBsBuffer = 0; // reset bs pBuffer position
3674+ pEncCtx->pOut->iNalIndex = 0; // reset NAL index
36753675
36763676 InitBits (&pEncCtx->pOut->sBsWrite, pEncCtx->pOut->pBsBuffer, pEncCtx->pOut->uiSize);
36773677 if ((keFrameType == videoFrameTypeP) || (keFrameType == videoFrameTypeI)) {
36783678 pEncCtx->iFrameIndex --;
36793679 if (pEncCtx->iPOC != 0) {
3680− pEncCtx->iPOC -= 2;
3680+ pEncCtx->iPOC -= 2;
36813681 } else {
3682− pEncCtx->iPOC = (1 << pEncCtx->pSps->iLog2MaxPocLsb) - 2;
3682+ pEncCtx->iPOC = (1 << pEncCtx->pSps->iLog2MaxPocLsb) - 2;
36833683 }
36843684
36853685 if (pEncCtx->eLastNalPriority != 0) {
@@ -3690,15 +3690,15 @@ void StackBackEncoderStatus (sWelsEncCtx* pEncCtx, · 4 unmodified lines
36903690 }
36913691 }
36923692
3693− pEncCtx->eNalType = NAL_UNIT_CODED_SLICE;
3694− pEncCtx->eSliceType = P_SLICE;
3695− pEncCtx->eNalPriority = pEncCtx->eLastNalPriority;
3693+ pEncCtx->eNalType = NAL_UNIT_CODED_SLICE;
3694+ pEncCtx->eSliceType = P_SLICE;
3695+ pEncCtx->eNalPriority = pEncCtx->eLastNalPriority;
36963696 } else if (keFrameType == videoFrameTypeIDR) {
36973697 pEncCtx->uiIdrPicId --;
36983698
36993699 //set the next frame to be IDR
37003700 ForceCodingIDR (pEncCtx);
3701− } else { // B pictures are not supported now, any else?
3701+ } else { // B pictures are not supported now, any else?
37023702 assert (0);
37033703 }
37043704
@@ -3707,7 +3707,7 @@ void StackBackEncoderStatus (sWelsEncCtx* pEncCtx, · 2 unmodified lines
37073707 }
37083708
37093709 void ClearFrameBsInfo (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi) {
3710− pFbi->sLayerInfo[0].pBsBuf = pCtx->pFrameBs;
3710+ pFbi->sLayerInfo[0].pBsBuf = pCtx->pFrameBs;
37113711 pFbi->sLayerInfo[0].pNalLengthInByte = pCtx->pOut->pNalLen;
37123712
37133713 for (int i = 0; i < pFbi->iLayerNum; i++) {
codec/encoder/core/src/mv_pred.cpp+6−6
@@ -305,8 +305,8 @@ void UpdateP8x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPart · 304 unmodified lines
305305 void UpdateP4x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t kiRef,
306306 SMVUnitXY* pMv) {
307307 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents;
308− const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
309− const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
308+ const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
309+ const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
310310
311311 //mb
312312 pCurMb->sMv[kiScan4Idx] = *pMv;
@@ -318,8 +318,8 @@ void UpdateP4x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPart · 5 unmodified lines
318318 void UpdateP8x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t kiRef,
319319 SMVUnitXY* pMv) {
320320 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents;
321− const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
322− const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
321+ const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
322+ const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
323323
324324 //mb
325325 pCurMb->sMv[ kiScan4Idx] = *pMv;
@@ -334,8 +334,8 @@ void UpdateP8x4MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPart · 8 unmodified lines
334334 void UpdateP4x8MotionInfo (SMbCache* pMbCache, SMB* pCurMb, const int32_t kiPartIdx, const int8_t kiRef,
335335 SMVUnitXY* pMv) {
336336 SMVComponentUnit* pMvComp = &pMbCache->sMvComponents;
337− const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
338− const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
337+ const int16_t kiScan4Idx = g_kuiMbCountScan4Idx[kiPartIdx];
338+ const int16_t kiCacheIdx = g_kuiCache30ScanIdx[kiPartIdx];
339339
340340 //mb
341341 pCurMb->sMv[ kiScan4Idx] = *pMv;
codec/encoder/core/src/ratectl.cpp+3−3
@@ -1127,9 +1127,9 @@ void WelsRcPictureInfoUpdateDisable (sWelsEncCtx* pEncCtx, int32_t iLayerSize) · 1126 unmodified lines
11271127 }
11281128
11291129 void WelsRcMbInitDisable (sWelsEncCtx* pEncCtx, SMB* pCurMb, SSlice* pSlice) {
1130− int32_t iLumaQp = pEncCtx->iGlobalQp;
1130+ int32_t iLumaQp = pEncCtx->iGlobalQp;
11311131 SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId];
1132− SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
1132+ SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
11331133
11341134 const uint8_t kuiChromaQpIndexOffset = pCurLayer->sLayerInfo.pPpsP->uiChromaQpIndexOffset;
11351135
@@ -1149,7 +1149,7 @@ void WelsRcMbInfoUpdateDisable (sWelsEncCtx* pEncCtx, SMB* pCurMb, int32_t iCos · 13 unmodified lines
11491149
11501150 void WelRcPictureInitBufferBasedQp (sWelsEncCtx* pEncCtx, long long uiTimeStamp) {
11511151
1152− SVAAFrameInfo* pVaa = static_cast<SVAAFrameInfo*> (pEncCtx->pVaa);
1152+ SVAAFrameInfo* pVaa = static_cast<SVAAFrameInfo*> (pEncCtx->pVaa);
11531153 SWelsSvcRc* pWelsSvcRc = &pEncCtx->pWelsSvcRc[pEncCtx->uiDependencyId];
11541154
11551155 int32_t iMinQp = MIN_SCREEN_QP;

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