| 258 | } |
| 259 | |
| 260 | long CWelsDecoder::Initialize (const SDecodingParam* pParam) { |
| 261 | int iRet = ERR_NONE; |
| 262 | if (m_pWelsTrace == NULL) { |
| 263 | return cmMallocMemeError; |
| 264 | } |
| 265 | |
| 266 | if (pParam == NULL) { |
| 267 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_ERROR, "CWelsDecoder::Initialize(), invalid input argument."); |
| 268 | return cmInitParaError; |
| 269 | } |
| 270 | |
| 271 | // H.264 decoder initialization,including memory allocation,then open it ready to decode |
| 272 | iRet = InitDecoder (pParam); |
| 273 | if (iRet) |
| 274 | return iRet; |
| 275 | |
| 276 | return cmResultSuccess; |
| 277 | } |
| 278 | |
| 279 | long CWelsDecoder::Uninitialize() { |
| 280 | UninitDecoder(); |
nothing calls this directly
no test coverage detected