| 208 | } |
| 209 | |
| 210 | int CWelsH264SVCEncoder::InitializeExt (const SEncParamExt* argv) { |
| 211 | if (m_pWelsTrace == NULL) { |
| 212 | return cmMallocMemeError; |
| 213 | } |
| 214 | |
| 215 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s", |
| 216 | VERSION_NUMBER); |
| 217 | |
| 218 | if (NULL == argv) { |
| 219 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsH264SVCEncoder::InitializeExt(), invalid argv= 0x%p", |
| 220 | argv); |
| 221 | return cmInitParaError; |
| 222 | } |
| 223 | |
| 224 | SWelsSvcCodingParam sConfig; |
| 225 | // Convert SEncParamExt into WelsSVCParamConfig here.. |
| 226 | if (sConfig.ParamTranscode (*argv)) { |
| 227 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, |
| 228 | "CWelsH264SVCEncoder::InitializeExt(), parameter_translation failed."); |
| 229 | TraceParamInfo (&sConfig); |
| 230 | Uninitialize(); |
| 231 | return cmInitParaError; |
| 232 | } |
| 233 | |
| 234 | return InitializeInternal (&sConfig); |
| 235 | } |
| 236 | |
| 237 | int CWelsH264SVCEncoder::InitializeInternal (SWelsSvcCodingParam* pCfg) { |
| 238 | if (NULL == pCfg) { |
no test coverage detected