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
52#include "svc_base_layer_md.h"52#include "svc_base_layer_md.h"
53#include "svc_mode_decision.h"53#include "svc_mode_decision.h"
54#include "set_mb_syn_cavlc.h"54#include "set_mb_syn_cavlc.h"
55#include "crt_util_safe_x.h" // Safe CRT routines like utils for cross_platforms55#include "crt_util_safe_x.h" // Safe CRT routines like utils for cross_platforms
56#include "slice_multi_threading.h"56#include "slice_multi_threading.h"
57 57
58// global function pointers definition58// 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
131 pSrcPic->iColorFormat = kiColorspace | videoFormatVFlip;131 pSrcPic->iColorFormat = kiColorspace | videoFormatVFlip;
132 break;132 break;
133 default:133 default:
134 return 2; // any else?134 return 2; // any else?
135 }135 }
136 136
137 return 0;137 return 0;
@@ -286,7 +286,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 148 unmodified lines
286 pEncCtx->eNalPriority = NRI_PRI_HIGHEST;286 pEncCtx->eNalPriority = NRI_PRI_HIGHEST;
287 287
288 // rc_init_gop288 // rc_init_gop
289 } else { // B pictures are not supported now, any else?289 } else { // B pictures are not supported now, any else?
290 assert (0);290 assert (0);
291 }291 }
292 292
@@ -380,7 +380,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 87 unmodified lines
380 if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER)380 if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER)
381 return;381 return;
382 382
383 if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage383 if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage
384 pDumpRecFile = WelsFopen (kpFileName, openMode);384 pDumpRecFile = WelsFopen (kpFileName, openMode);
385 else {385 else {
386 char sDependencyRecFileName[16] = {0};386 char sDependencyRecFileName[16] = {0};
@@ -407,7 +407,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 20 unmodified lines
407 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);407 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);
408 assert (iWrittenSize == kiLumaWidth);408 assert (iWrittenSize == kiLumaWidth);
409 if (iWrittenSize < kiLumaWidth) {409 if (iWrittenSize < kiLumaWidth) {
410 assert (0); // make no sense for us if writing failed410 assert (0); // make no sense for us if writing failed
411 WelsFclose (pDumpRecFile);411 WelsFclose (pDumpRecFile);
412 return;412 return;
413 }413 }
@@ -420,7 +420,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 6 unmodified lines
420 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);420 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);
421 assert (iWrittenSize == kiChromaWidth);421 assert (iWrittenSize == kiChromaWidth);
422 if (iWrittenSize < kiChromaWidth) {422 if (iWrittenSize < kiChromaWidth) {
423 assert (0); // make no sense for us if writing failed423 assert (0); // make no sense for us if writing failed
424 WelsFclose (pDumpRecFile);424 WelsFclose (pDumpRecFile);
425 return;425 return;
426 }426 }
@@ -474,7 +474,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 47 unmodified lines
474 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);474 iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile);
475 assert (iWrittenSize == kiLumaWidth);475 assert (iWrittenSize == kiLumaWidth);
476 if (iWrittenSize < kiLumaWidth) {476 if (iWrittenSize < kiLumaWidth) {
477 assert (0); // make no sense for us if writing failed477 assert (0); // make no sense for us if writing failed
478 WelsFclose (pDumpRecFile);478 WelsFclose (pDumpRecFile);
479 return;479 return;
480 }480 }
@@ -487,7 +487,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 6 unmodified lines
487 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);487 iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile);
488 assert (iWrittenSize == kiChromaWidth);488 assert (iWrittenSize == kiChromaWidth);
489 if (iWrittenSize < kiChromaWidth) {489 if (iWrittenSize < kiChromaWidth) {
490 assert (0); // make no sense for us if writing failed490 assert (0); // make no sense for us if writing failed
491 WelsFclose (pDumpRecFile);491 WelsFclose (pDumpRecFile);
492 return;492 return;
493 }493 }
@@ -501,7 +501,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 7 unmodified lines
501 501
502 502
503/***********************************************************************************/503/***********************************************************************************/
504void WelsSetMemZero_c (void* pDst, int32_t iSize) { // confirmed_safe_unsafe_usage504void WelsSetMemZero_c (void* pDst, int32_t iSize) { // confirmed_safe_unsafe_usage
505 memset (pDst, 0, iSize);505 memset (pDst, 0, iSize);
506}506}
507}507}

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