Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 57 files). Show all
Unified · Split
| @@ -52,7 +52,7 @@ · 51 unmodified lines | ||
| 52 | 52 | #include "svc_base_layer_md.h" |
| 53 | 53 | #include "svc_mode_decision.h" |
| 54 | 54 | #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 | |
| 56 | 56 | #include "slice_multi_threading.h" |
| 57 | 57 | |
| 58 | 58 | // 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 | 131 | pSrcPic->iColorFormat = kiColorspace | videoFormatVFlip; |
| 132 | 132 | break; |
| 133 | 133 | default: |
| 134 | − return 2; // any else? | |
| 134 | + return 2; // any else? | |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | return 0; |
| @@ -286,7 +286,7 @@ void InitFrameCoding (sWelsEncCtx* pEncCtx, const EVideoFrameType keFrameType) { · 148 unmodified lines | ||
| 286 | 286 | pEncCtx->eNalPriority = NRI_PRI_HIGHEST; |
| 287 | 287 | |
| 288 | 288 | // rc_init_gop |
| 289 | − } else { // B pictures are not supported now, any else? | |
| 289 | + } else { // B pictures are not supported now, any else? | |
| 290 | 290 | assert (0); |
| 291 | 291 | } |
| 292 | 292 | |
| @@ -380,7 +380,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 87 unmodified lines | ||
| 380 | 380 | if (NULL == pCurPicture || NULL == kpFileName || kiDid >= MAX_DEPENDENCY_LAYER) |
| 381 | 381 | return; |
| 382 | 382 | |
| 383 | − if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage | |
| 383 | + if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage | |
| 384 | 384 | pDumpRecFile = WelsFopen (kpFileName, openMode); |
| 385 | 385 | else { |
| 386 | 386 | char sDependencyRecFileName[16] = {0}; |
| @@ -407,7 +407,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 20 unmodified lines | ||
| 407 | 407 | iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile); |
| 408 | 408 | assert (iWrittenSize == kiLumaWidth); |
| 409 | 409 | 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 | |
| 411 | 411 | WelsFclose (pDumpRecFile); |
| 412 | 412 | return; |
| 413 | 413 | } |
| @@ -420,7 +420,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName · 6 unmodified lines | ||
| 420 | 420 | iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile); |
| 421 | 421 | assert (iWrittenSize == kiChromaWidth); |
| 422 | 422 | 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 | |
| 424 | 424 | WelsFclose (pDumpRecFile); |
| 425 | 425 | return; |
| 426 | 426 | } |
| @@ -474,7 +474,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 47 unmodified lines | ||
| 474 | 474 | iWrittenSize = WelsFwrite (pSrc + j * kiStrideY, 1, kiLumaWidth, pDumpRecFile); |
| 475 | 475 | assert (iWrittenSize == kiLumaWidth); |
| 476 | 476 | 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 | |
| 478 | 478 | WelsFclose (pDumpRecFile); |
| 479 | 479 | return; |
| 480 | 480 | } |
| @@ -487,7 +487,7 @@ void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName, const int8_t k · 6 unmodified lines | ||
| 487 | 487 | iWrittenSize = WelsFwrite (pSrc + j * kiStrideUV, 1, kiChromaWidth, pDumpRecFile); |
| 488 | 488 | assert (iWrittenSize == kiChromaWidth); |
| 489 | 489 | 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 | |
| 491 | 491 | WelsFclose (pDumpRecFile); |
| 492 | 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 | /***********************************************************************************/ |
| 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 | |
| 505 | 505 | memset (pDst, 0, iSize); |
| 506 | 506 | } |
| 507 | 507 | } |