History

Convert tabs to spaces before comments

Martin Storsjö committed 11 years ago

Commit 78e0ec61 parent 3052b7a57 files · +278 −278Browse files

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

Unified · Split

codec/encoder/core/src/encoder.cpp+9−9
@@ -52,7 +52,7 @@ · 51 unmodified lines
5252 #include "svc_base_layer_md.h"
5353 #include "svc_mode_decision.h"
5454 #include "set_mb_syn_cavlc.h"
55−#include "crt_util_safe_x.h" // Safe CRT routines like utils for cross_platforms
55+#include "crt_util_safe_x.h" // Safe CRT routines like utils for cross_platforms
5656 #include "slice_multi_threading.h"
5757
5858 // global function pointers definition
@@ -131,7 +131,7 @@ int32_t InitPic (const void* kpSrc, const int32_t kiColorspace, const int32_t ki · 72 unmodified lines
131131 pSrcPic->iColorFormat = kiColorspace | videoFormatVFlip;
132132 break;
133133 default:
134− return 2; // any else?
134+ return 2; // any else?
135135 }
136136
137137 return 0;
@@ -286,7 +286,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 148 unmodified lines
286286 pEncCtx->eNalPriority = NRI_PRI_HIGHEST;
287287
288288 // rc_init_gop
289− } else { // B pictures are not supported now, any else?
289+ } else { // B pictures are not supported now, any else?
290290 assert (0);
291291 }
292292
@@ -380,7 +380,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 87 unmodified lines
380380 if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER)
381381 return;
382382
383− if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage
383+ if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage
384384 pDumpRecFile = WelsFopen (kpFileName, openMode);
385385 else {
386386 char sDependencyRecFileName[16] = {0};
@@ -407,7 +407,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 20 unmodified lines
407407 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);
408408 assert (iWrittenSize == kiLumaWidth);
409409 if (iWrittenSize < kiLumaWidth) {
410− assert (0); // make no sense for us if writing failed
410+ assert (0); // make no sense for us if writing failed
411411 WelsFclose (pDumpRecFile);
412412 return;
413413 }
@@ -420,7 +420,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 6 unmodified lines
420420 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);
421421 assert (iWrittenSize == kiChromaWidth);
422422 if (iWrittenSize < kiChromaWidth) {
423− assert (0); // make no sense for us if writing failed
423+ assert (0); // make no sense for us if writing failed
424424 WelsFclose (pDumpRecFile);
425425 return;
426426 }
@@ -474,7 +474,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 47 unmodified lines
474474 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);
475475 assert (iWrittenSize == kiLumaWidth);
476476 if (iWrittenSize < kiLumaWidth) {
477− assert (0); // make no sense for us if writing failed
477+ assert (0); // make no sense for us if writing failed
478478 WelsFclose (pDumpRecFile);
479479 return;
480480 }
@@ -487,7 +487,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 6 unmodified lines
487487 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);
488488 assert (iWrittenSize == kiChromaWidth);
489489 if (iWrittenSize < kiChromaWidth) {
490− assert (0); // make no sense for us if writing failed
490+ assert (0); // make no sense for us if writing failed
491491 WelsFclose (pDumpRecFile);
492492 return;
493493 }
@@ -501,7 +501,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 7 unmodified lines
501501
502502
503503 /***********************************************************************************/
504−void WelsSetMemZero_c (void* pDst, int32_t iSize) { // confirmed_safe_unsafe_usage
504+void WelsSetMemZero_c (void* pDst, int32_t iSize) { // confirmed_safe_unsafe_usage
505505 memset (pDst, 0, iSize);
506506 }
507507 }

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