MCPcopy Create free account
hub / github.com/cisco/openh264 / ~CWelsDecoder

Method ~CWelsDecoder

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

* Description: * class CWelsDecoder destructor function, destroy allocced memory * * Input parameters: none * * return: none ***************************************************************************/

Source from the content-addressed store, hash-verified

230* return: none
231***************************************************************************/
232CWelsDecoder::~CWelsDecoder() {
233 if (m_pWelsTrace != NULL) {
234 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()");
235 }
236 CloseDecoderThreads();
237 UninitDecoder();
238
239#ifdef OUTPUT_BIT_STREAM
240 if (m_pFBS) {
241 WelsFclose (m_pFBS);
242 m_pFBS = NULL;
243 }
244 if (m_pFBSSize) {
245 WelsFclose (m_pFBSSize);
246 m_pFBSSize = NULL;
247 }
248#endif//OUTPUT_BIT_STREAM
249
250 if (m_pWelsTrace != NULL) {
251 delete m_pWelsTrace;
252 m_pWelsTrace = NULL;
253 }
254 if (m_pDecThrCtx != NULL) {
255 delete[] m_pDecThrCtx;
256 m_pDecThrCtx = NULL;
257 }
258}
259
260long CWelsDecoder::Initialize (const SDecodingParam* pParam) {
261 int iRet = ERR_NONE;

Callers

nothing calls this directly

Calls 3

WelsLogFunction · 0.85
UninitDecoderFunction · 0.85
WelsFcloseFunction · 0.85

Tested by

no test coverage detected