Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 16 files). Show all
Unified · Split
| @@ -341,7 +341,7 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 340 unmodified lines | |||
| 341 | pCtx->eVideoType = VIDEO_BITSTREAM_DEFAULT; | 341 | pCtx->eVideoType = VIDEO_BITSTREAM_DEFAULT; |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "eVideoType: %d\n", pCtx->eVideoType); | 344 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "eVideoType: %d", pCtx->eVideoType); |
| 345 | 345 | ||
| 346 | return 0; | 346 | return 0; |
| 347 | } | 347 | } |
| @@ -596,7 +596,7 @@ int32_t DecoderSetCsp (PWelsDecoderContext pCtx, const int32_t kiColorFormat) { · 248 unmodified lines | |||
| 596 | 596 | ||
| 597 | //For now, support only videoFormatI420! | 597 | //For now, support only videoFormatI420! |
| 598 | if (kiColorFormat != (int32_t) videoFormatI420) { | 598 | if (kiColorFormat != (int32_t) videoFormatI420) { |
| 599 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "Support I420 output only for now! Change to I420...\n"); | 599 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "Support I420 output only for now! Change to I420..."); |
| 600 | pCtx->pParam->eOutputColorFormat = pCtx->eOutputColorFormat = videoFormatI420; | 600 | pCtx->pParam->eOutputColorFormat = pCtx->eOutputColorFormat = videoFormatI420; |
| 601 | } | 601 | } |
| 602 | 602 | ||
| @@ -620,7 +620,7 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 17 unmodified lines | |||
| 620 | iErr = WelsRequestMem (pCtx, kiMbWidth, kiMbHeight); // common memory used | 620 | iErr = WelsRequestMem (pCtx, kiMbWidth, kiMbHeight); // common memory used |
| 621 | if (ERR_NONE != iErr) { | 621 | if (ERR_NONE != iErr) { |
| 622 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, | 622 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, |
| 623 | "SyncPictureResolutionExt()::WelsRequestMem--buffer allocated failure.\n"); | 623 | "SyncPictureResolutionExt()::WelsRequestMem--buffer allocated failure."); |
| 624 | pCtx->iErrorCode = dsOutOfMemory; | 624 | pCtx->iErrorCode = dsOutOfMemory; |
| 625 | return iErr; | 625 | return iErr; |
| 626 | } | 626 | } |
| @@ -628,7 +628,7 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 1 unmodified line | |||
| 628 | iErr = InitialDqLayersContext (pCtx, kiPicWidth, kiPicHeight); | 628 | iErr = InitialDqLayersContext (pCtx, kiPicWidth, kiPicHeight); |
| 629 | if (ERR_NONE != iErr) { | 629 | if (ERR_NONE != iErr) { |
| 630 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, | 630 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, |
| 631 | "SyncPictureResolutionExt()::InitialDqLayersContext--buffer allocated failure.\n"); | 631 | "SyncPictureResolutionExt()::InitialDqLayersContext--buffer allocated failure."); |
| 632 | pCtx->iErrorCode = dsOutOfMemory; | 632 | pCtx->iErrorCode = dsOutOfMemory; |
| 633 | } | 633 | } |
| 634 | 634 | ||