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

Method Init

codec/processing/src/common/WelsFrameWork.cpp:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113EResult CVpFrameWork::Init (int32_t iType, void* pCfg) {
114 EResult eReturn = RET_SUCCESS;
115 int32_t iCurIdx = WelsStaticCast (int32_t, WelsVpGetValidMethod (iType)) - 1;
116
117 Uninit (iType);
118
119 WelsMutexLock (&m_mutes);
120
121 IStrategy* pStrategy = m_pStgChain[iCurIdx];
122 if (pStrategy)
123 eReturn = pStrategy->Init (0, pCfg);
124
125 WelsMutexUnlock (&m_mutes);
126
127 return eReturn;
128}
129
130EResult CVpFrameWork::Uninit (int32_t iType) {
131 EResult eReturn = RET_SUCCESS;

Callers 1

EResultFunction · 0.45

Calls 4

WelsVpGetValidMethodFunction · 0.85
UninitFunction · 0.85
WelsMutexLockFunction · 0.85
WelsMutexUnlockFunction · 0.85

Tested by

no test coverage detected