MCPcopy Create free account
hub / github.com/cisco/openh264 / Initialize

Method Initialize

codec/decoder/plus/src/welsDecoderExt.cpp:260–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260long 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
279long CWelsDecoder::Uninitialize() {
280 UninitDecoder();

Callers

nothing calls this directly

Calls 2

WelsLogFunction · 0.85
InitDecoderFunction · 0.85

Tested by

no test coverage detected