History

Fixed warnings found by clang. Removed some trailing whitespace.

Ethan Hugg committed 12 years ago

Commit bcf102d1 parent 616dc872 files · +10 −10Browse files

Unified · Split

2 files
  1. codec/encoder/core/src/encoder_ext.cpp +7 −7
  2. codec/encoder/core/src/utils.cpp +3 −3
codec/encoder/core/src/encoder_ext.cpp+7−7
@@ -1772,7 +1772,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 1771 unmodified lines
1772 1772
1773#if defined(MEMORY_MONITOR)1773#if defined(MEMORY_MONITOR)
1774 assert (pMa->WelsGetMemoryUsage() == 0); // ensure all memory free well1774 assert (pMa->WelsGetMemoryUsage() == 0); // ensure all memory free well
1775#endif//MEMORY_MONITOR 1775#endif//MEMORY_MONITOR
1776 1776
1777 if ((*ppCtx)->pMemAlign != NULL) {1777 if ((*ppCtx)->pMemAlign != NULL) {
1778 WelsLog (NULL, WELS_LOG_INFO, "FreeMemorySvc(), verify memory usage (%d bytes) after free..\n",1778 WelsLog (NULL, WELS_LOG_INFO, "FreeMemorySvc(), verify memory usage (%d bytes) after free..\n",
@@ -2030,7 +2030,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 251 unmodified lines
2030 2030
2031 uiCpuCores = pCodingParam->iMultipleThreadIdc; // assigned uiCpuCores from iMultipleThreadIdc from SGE testing2031 uiCpuCores = pCodingParam->iMultipleThreadIdc; // assigned uiCpuCores from iMultipleThreadIdc from SGE testing
2032 2032
2033#endif//WELS_TESTBED 2033#endif//WELS_TESTBED
2034 2034
2035 uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM);2035 uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM);
2036 2036
@@ -2123,9 +2123,9 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 86 unmodified lines
2123 }2123 }
2124 2124
2125#if defined(MEMORY_MONITOR)2125#if defined(MEMORY_MONITOR)
2126 WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %lu bytes\n",2126 WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %u bytes\n",
2127 sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */2127 (unsigned int) (sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */
2128 + pCtx->pMemAlign->WelsGetMemoryUsage() /* requested size from CMemoryAlign::WelsMalloc() */2128 + pCtx->pMemAlign->WelsGetMemoryUsage()) /* requested size from CMemoryAlign::WelsMalloc() */
2129 );2129 );
2130#endif//MEMORY_MONITOR2130#endif//MEMORY_MONITOR
2131 2131
@@ -3522,7 +3522,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 1390 unmodified lines
3522 (pCtx->eSliceType == P_SLICE ? 'P' : 'I'),3522 (pCtx->eSliceType == P_SLICE ? 'P' : 'I'),
3523 eNalRefIdc,3523 eNalRefIdc,
3524 iSliceSize);3524 iSliceSize);
3525#endif//SLICE_INFO_OUTPUT 3525#endif//SLICE_INFO_OUTPUT
3526 ++ iNalIdxInLayer;3526 ++ iNalIdxInLayer;
3527 ++ iSliceIdx;3527 ++ iSliceIdx;
3528 }3528 }
@@ -3758,7 +3758,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 229 unmodified lines
3758 3758
3759#if defined(X86_ASM)3759#if defined(X86_ASM)
3760 WelsEmms();3760 WelsEmms();
3761#endif //X86_ASM 3761#endif //X86_ASM
3762 3762
3763 return eFrameType;3763 return eFrameType;
3764}3764}
codec/encoder/core/src/utils.cpp+3−3
@@ -157,7 +157,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 156 unmodified lines
157#endif//_MSC_VER157#endif//_MSC_VER
158#else//__GNUC__158#else//__GNUC__
159 struct tm* t_now;159 struct tm* t_now;
160#endif//WIN32 160#endif//WIN32
161 161
162#if defined( WIN32 )162#if defined( WIN32 )
163 struct _timeb tb;163 struct _timeb tb;
@@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines
172 return;172 return;
173 }173 }
174#endif//_MSC_VER >= 1500174#endif//_MSC_VER >= 1500
175#endif//_MSC_VER 175#endif//_MSC_VER
176 FTIME (&tb);176 FTIME (&tb);
177#elif defined( __GNUC__ )177#elif defined( __GNUC__ )
178 struct timeval tv;178 struct timeval tv;
@@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines
252#endif//_MSC_VER >= 1500252#endif//_MSC_VER >= 1500
253#endif//_MSC_VER253#endif//_MSC_VER
254#elif defined (__GNUC__)254#elif defined (__GNUC__)
255 iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage255 iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage
256#endif//WIN32256#endif//WIN32
257 if (iCurUsed >= 0) {257 if (iCurUsed >= 0) {
258 iBufUsed += iCurUsed;258 iBufUsed += iCurUsed;

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