Showing the changes to codec/encoder/core/src/encoder.cpp (1 of 34 files). Show all
Unified · Split
| @@ -314,7 +314,7 @@ EFrameType DecideFrameType (sWelsEncCtx* pEncCtx, const int8_t kiSpatialNum) { · 313 unmodified lines | ||
| 314 | 314 | * \brief Dump reconstruction for dependency layer |
| 315 | 315 | */ |
| 316 | 316 | |
| 317 | −extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileName, const int8_t kiDid) { | |
| 317 | +extern "C" void DumpDependencyRec (SPicture* pCurPicture, const char* kpFileName, const int8_t kiDid) { | |
| 318 | 318 | WelsFileHandle* pDumpRecFile = NULL; |
| 319 | 319 | static bool bDependencyRecFlag[MAX_DEPENDENCY_LAYER] = {0}; |
| 320 | 320 | int32_t iWrittenSize = 0; |
| @@ -326,7 +326,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 5 unmodified lines | ||
| 326 | 326 | if (strlen (kpFileName) > 0) // confirmed_safe_unsafe_usage |
| 327 | 327 | pDumpRecFile = WelsFopen (kpFileName, "ab"); |
| 328 | 328 | else { |
| 329 | − str_t sDependencyRecFileName[16] = {0}; | |
| 329 | + char sDependencyRecFileName[16] = {0}; | |
| 330 | 330 | WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage |
| 331 | 331 | pDumpRecFile = WelsFopen (sDependencyRecFileName, "ab"); |
| 332 | 332 | } |
| @@ -336,7 +336,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 3 unmodified lines | ||
| 336 | 336 | if (strlen (kpFileName) > 0) { // confirmed_safe_unsafe_usage |
| 337 | 337 | pDumpRecFile = WelsFopen (kpFileName, "wb"); |
| 338 | 338 | } else { |
| 339 | − str_t sDependencyRecFileName[16] = {0}; | |
| 339 | + char sDependencyRecFileName[16] = {0}; | |
| 340 | 340 | WelsSnprintf (sDependencyRecFileName, 16, "rec%d.yuv", kiDid); // confirmed_safe_unsafe_usage |
| 341 | 341 | pDumpRecFile = WelsFopen (sDependencyRecFileName, "wb"); |
| 342 | 342 | } |
| @@ -382,7 +382,7 @@ extern "C" void DumpDependencyRec (SPicture* pCurPicture, const str_t* kpFileNam · 39 unmodified lines | ||
| 382 | 382 | * \brief Dump the reconstruction pictures |
| 383 | 383 | */ |
| 384 | 384 | |
| 385 | −void DumpRecFrame (SPicture* pCurPicture, const str_t* kpFileName) { | |
| 385 | +void DumpRecFrame (SPicture* pCurPicture, const char* kpFileName) { | |
| 386 | 386 | WelsFileHandle* pDumpRecFile = NULL; |
| 387 | 387 | static bool bRecFlag = false; |
| 388 | 388 | int32_t iWrittenSize = 0; |