History

Remove tabs where a simple space is just enough

Martin Storsjö committed 11 years ago

Commit ca51ee01 parent 51efa5754 files · +769 −772Browse files

Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 54 files). Show all

Unified · Split

codec/encoder/core/src/encoder.cpp+13−13
@@ -240,7 +240,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 239 unmodified lines
240240 ++pEncCtx->iFrameIndex;
241241
242242 if (pEncCtx->iPOC < (1 << pEncCtx->pSps->iLog2MaxPocLsb) - 2) // if iPOC type is no 0, this need be modification
243− pEncCtx->iPOC += 2; // for POC type 0
243+ pEncCtx->iPOC += 2; // for POC type 0
244244 else
245245 pEncCtx->iPOC = 0;
246246
@@ -248,7 +248,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 1 unmodified line
248248 if (pEncCtx->iFrameNum < (1 << pEncCtx->pSps->uiLog2MaxFrameNum) - 1)
249249 ++ pEncCtx->iFrameNum;
250250 else
251− pEncCtx->iFrameNum = 0; // if iFrameNum overflow
251+ pEncCtx->iFrameNum = 0; // if iFrameNum overflow
252252 }
253253 pEncCtx->eNalType = NAL_UNIT_CODED_SLICE;
254254 pEncCtx->eSliceType = P_SLICE;
@@ -270,7 +270,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 15 unmodified lines
270270 // rc_init_gop
271271 } else if (keFrameType == videoFrameTypeI) {
272272 if (pEncCtx->iPOC < (1 << pEncCtx->pSps->iLog2MaxPocLsb) - 2) // if iPOC type is no 0, this need be modification
273− pEncCtx->iPOC += 2; // for POC type 0
273+ pEncCtx->iPOC += 2; // for POC type 0
274274 else
275275 pEncCtx->iPOC = 0;
276276
@@ -278,7 +278,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 1 unmodified line
278278 if (pEncCtx->iFrameNum < (1 << pEncCtx->pSps->uiLog2MaxFrameNum) - 1)
279279 ++ pEncCtx->iFrameNum;
280280 else
281− pEncCtx->iFrameNum = 0; // if iFrameNum overflow
281+ pEncCtx->iFrameNum = 0; // if iFrameNum overflow
282282 }
283283
284284 pEncCtx->eNalType = NAL_UNIT_CODED_SLICE;
@@ -296,7 +296,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 11 unmodified lines
296296 }
297297
298298 EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) {
299− SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;
299+ SWelsSvcCodingParam* pSvcParam = pEncCtx->pSvcParam;
300300 EVideoFrameType iFrameType = videoFrameTypeInvalid;
301301 bool bSceneChangeFlag = false;
302302
@@ -370,7 +370,7 @@ EVideoFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum · 67 unmodified lines
370370 extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid, bool bAppend,
371371 SDqLayer* pDqLayer) {
372372 WelsFileHandle* pDumpRecFile = NULL;
373− int32_t iWrittenSize = 0;
373+ int32_t iWrittenSize = 0;
374374 const char* openMode = bAppend ? "ab" : "wb";
375375 SWelsSPS* pSpsTmp = (kiDid > BASE_DEPENDENCY_ID) ? & (pDqLayer->sLayerInfo.pSubsetSpsP->pSps) :
376376 pDqLayer->sLayerInfo.pSpsP;
@@ -384,8 +384,8 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 7 unmodified lines
384384 pDumpRecFile = WelsFopen (kpFileName, openMode);
385385 else {
386386 char sDependencyRecFileName[16] = {0};
387− WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage
388− pDumpRecFile = WelsFopen (sDependencyRecFileName, openMode);
387+ WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage
388+ pDumpRecFile = WelsFopen (sDependencyRecFileName, openMode);
389389 }
390390 if (NULL != pDumpRecFile && bAppend)
391391 WelsFseek (pDumpRecFile, 0, SEEK_END);
@@ -437,22 +437,22 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 45 unmodified lines
437437
438438 void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid, bool bAppend,
439439 SDqLayer* pDqLayer) {
440− WelsFileHandle* pDumpRecFile = NULL;
440+ WelsFileHandle* pDumpRecFile = NULL;
441441 SWelsSPS* pSpsTmp = (kiDid > BASE_DEPENDENCY_ID) ? & (pDqLayer->sLayerInfo.pSubsetSpsP->pSps) :
442442 pDqLayer->sLayerInfo.pSpsP;
443443 bool bFrameCroppingFlag = pSpsTmp->bFrameCroppingFlag;
444444 SCropOffset* pFrameCrop = &pSpsTmp->sFrameCrop;
445445
446− int32_t iWrittenSize = 0;
446+ int32_t iWrittenSize = 0;
447447 const char* openMode = bAppend ? "ab" : "wb";
448448
449449 if (NULL == pCurPicture || NULL == kpFileName)
450450 return;
451451
452− if (strlen (kpFileName) > 0) { // confirmed_safe_unsafe_usage
453− pDumpRecFile = WelsFopen (kpFileName, openMode);
452+ if (strlen (kpFileName) > 0) { // confirmed_safe_unsafe_usage
453+ pDumpRecFile = WelsFopen (kpFileName, openMode);
454454 } else {
455− pDumpRecFile = WelsFopen ("rec.yuv", openMode);
455+ pDumpRecFile = WelsFopen ("rec.yuv", openMode);
456456 }
457457 if (NULL != pDumpRecFile && bAppend)
458458 WelsFseek (pDumpRecFile, 0, SEEK_END);

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