* Description: * class CWelsDecoder destructor function, destroy allocced memory * * Input parameters: none * * return: none ***************************************************************************/
| 230 | * return: none |
| 231 | ***************************************************************************/ |
| 232 | CWelsDecoder::~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 | |
| 260 | long CWelsDecoder::Initialize (const SDecodingParam* pParam) { |
| 261 | int iRet = ERR_NONE; |
nothing calls this directly
no test coverage detected