modify version info in enc/dec
Unified · Split
| @@ -227,7 +227,8 @@ void CWelsDecoder::UninitDecoder (void) { · 226 unmodified lines | |||
| 227 | // the return value of this function is not suitable, it need report failure info to upper layer. | 227 | // the return value of this function is not suitable, it need report failure info to upper layer. |
| 228 | void CWelsDecoder::InitDecoder (void) { | 228 | void CWelsDecoder::InitDecoder (void) { |
| 229 | 229 | ||
| 230 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::init_decoder().."); | 230 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::init_decoder(), openh264 codec version = %s", |
| 231 | VERSION_NUMBER); | ||
| 231 | 232 | ||
| 232 | m_pDecContext = (PWelsDecoderContext)WelsMalloc (sizeof (SWelsDecoderContext), "m_pDecContext"); | 233 | m_pDecContext = (PWelsDecoderContext)WelsMalloc (sizeof (SWelsDecoderContext), "m_pDecContext"); |
| 233 | 234 | ||
| @@ -278,6 +279,8 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 44 unmodified lines | |||
| 278 | if (m_pWelsTrace) { | 279 | if (m_pWelsTrace) { |
| 279 | WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); | 280 | WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); |
| 280 | m_pWelsTrace->SetTraceCallback (callback); | 281 | m_pWelsTrace->SetTraceCallback (callback); |
| 282 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::SetOption(), openh264 codec version = %s.", | ||
| 283 | VERSION_NUMBER); | ||
| 281 | } | 284 | } |
| 282 | return cmResultSuccess; | 285 | return cmResultSuccess; |
| 283 | } else if (eOptID == DECODER_OPTION_TRACE_CALLBACK_CONTEXT) { | 286 | } else if (eOptID == DECODER_OPTION_TRACE_CALLBACK_CONTEXT) { |
| @@ -480,7 +483,7 @@ using namespace WelsDec; · 196 unmodified lines | |||
| 480 | * WelsGetDecoderCapability | 483 | * WelsGetDecoderCapability |
| 481 | * @return: DecCapability information | 484 | * @return: DecCapability information |
| 482 | */ | 485 | */ |
| 483 | int WelsGetDecoderCapability(SDecoderCapability* pDecCapability) { | 486 | int WelsGetDecoderCapability (SDecoderCapability* pDecCapability) { |
| 484 | memset (pDecCapability, 0, sizeof (SDecoderCapability)); | 487 | memset (pDecCapability, 0, sizeof (SDecoderCapability)); |
| 485 | pDecCapability->iProfileIdc = 66; //Baseline | 488 | pDecCapability->iProfileIdc = 66; //Baseline |
| 486 | pDecCapability->iProfileIop = 0xE0; //11100000b | 489 | pDecCapability->iProfileIop = 0xE0; //11100000b |
| @@ -363,7 +363,8 @@ int32_t CWelsH264SVCEncoder::Uninitialize() { · 362 unmodified lines | |||
| 363 | return 0; | 363 | return 0; |
| 364 | } | 364 | } |
| 365 | 365 | ||
| 366 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::Uninitialize().."); | 366 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::Uninitialize(), openh264 codec version = %s.", |
| 367 | VERSION_NUMBER); | ||
| 367 | 368 | ||
| 368 | #ifdef REC_FRAME_COUNT | 369 | #ifdef REC_FRAME_COUNT |
| 369 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | 370 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, |
| @@ -861,6 +862,8 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 491 unmodified lines | |||
| 861 | if (m_pWelsTrace) { | 862 | if (m_pWelsTrace) { |
| 862 | WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); | 863 | WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); |
| 863 | m_pWelsTrace->SetTraceCallback (callback); | 864 | m_pWelsTrace->SetTraceCallback (callback); |
| 865 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::SetOption(), openh264 codec version = %s.", | ||
| 866 | VERSION_NUMBER); | ||
| 864 | } | 867 | } |
| 865 | } | 868 | } |
| 866 | break; | 869 | break; |