• Home
  • Raw
  • Download

Lines Matching refs:m_pDecThrCtx

144     m_pDecThrCtx (NULL),  in CWelsDecoder()
175 m_pDecThrCtx = new SWelsDecoderThreadCTX[m_iCtxCount]; in CWelsDecoder()
176 memset (m_pDecThrCtx, 0, sizeof (SWelsDecoderThreadCTX)*m_iCtxCount); in CWelsDecoder()
253 if (m_pDecThrCtx != NULL) { in ~CWelsDecoder()
254 delete[] m_pDecThrCtx; in ~CWelsDecoder()
255 m_pDecThrCtx = NULL; in ~CWelsDecoder()
286 if (m_pDecThrCtx[i].pCtx != NULL) { in UninitDecoder()
288 WelsResetRefPicWithoutUnRef (m_pDecThrCtx[i].pCtx); in UninitDecoder()
290 UninitDecoderCtx (m_pDecThrCtx[i].pCtx); in UninitDecoder()
305 m_pDecThrCtx[i].sThreadInfo.uiThrMaxNum = m_iThreadCount; in OpenDecoderThreads()
306 m_pDecThrCtx[i].sThreadInfo.uiThrNum = i; in OpenDecoderThreads()
307 m_pDecThrCtx[i].sThreadInfo.uiThrStackSize = WELS_DEC_MAX_THREAD_STACK_SIZE; in OpenDecoderThreads()
308 m_pDecThrCtx[i].sThreadInfo.pThrProcMain = pThrProcFrame; in OpenDecoderThreads()
309 m_pDecThrCtx[i].sThreadInfo.sIsBusy = &m_sIsBusy; in OpenDecoderThreads()
310 m_pDecThrCtx[i].sThreadInfo.uiCommand = WELS_DEC_THREAD_COMMAND_RUN; in OpenDecoderThreads()
311 m_pDecThrCtx[i].threadCtxOwner = this; in OpenDecoderThreads()
312 m_pDecThrCtx[i].kpSrc = NULL; in OpenDecoderThreads()
313 m_pDecThrCtx[i].kiSrcLen = 0; in OpenDecoderThreads()
314 m_pDecThrCtx[i].ppDst = NULL; in OpenDecoderThreads()
315 m_pDecThrCtx[i].pDec = NULL; in OpenDecoderThreads()
316 CREATE_EVENT (&m_pDecThrCtx[i].sImageReady, 1, 0, NULL); in OpenDecoderThreads()
317 CREATE_EVENT (&m_pDecThrCtx[i].sSliceDecodeStart, 1, 0, NULL); in OpenDecoderThreads()
318 CREATE_EVENT (&m_pDecThrCtx[i].sSliceDecodeFinish, 1, 0, NULL); in OpenDecoderThreads()
319 CREATE_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsIdle, 0, 1, NULL); in OpenDecoderThreads()
320 CREATE_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsActivated, 0, 1, NULL); in OpenDecoderThreads()
321 …CREATE_THREAD (&m_pDecThrCtx[i].sThreadInfo.sThrHandle, pThrProcInit, (void*) (& (m_pDecThrCtx[i])… in OpenDecoderThreads()
328 WAIT_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsIdle, WELS_DEC_THREAD_WAIT_INFINITE); in CloseDecoderThreads()
329 m_pDecThrCtx[i].sThreadInfo.uiCommand = WELS_DEC_THREAD_COMMAND_ABORT; in CloseDecoderThreads()
330 RELEASE_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsActivated); in CloseDecoderThreads()
331 WAIT_THREAD (&m_pDecThrCtx[i].sThreadInfo.sThrHandle); in CloseDecoderThreads()
332 CLOSE_EVENT (&m_pDecThrCtx[i].sImageReady); in CloseDecoderThreads()
333 CLOSE_EVENT (&m_pDecThrCtx[i].sSliceDecodeStart); in CloseDecoderThreads()
334 CLOSE_EVENT (&m_pDecThrCtx[i].sSliceDecodeFinish); in CloseDecoderThreads()
335 CLOSE_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsIdle); in CloseDecoderThreads()
336 CLOSE_SEMAPHORE (&m_pDecThrCtx[i].sThreadInfo.sIsActivated); in CloseDecoderThreads()
366 if (m_iCtxCount <= 1) m_pDecThrCtx[0].pCtx = NULL; in UninitDecoderCtx()
387 InitDecoderCtx (m_pDecThrCtx[i].pCtx, pParam); in InitDecoder()
389 m_pDecThrCtx[i].pCtx->pThreadCtx = &m_pDecThrCtx[i]; in InitDecoder()
412 if (m_iCtxCount <= 1) m_pDecThrCtx[0].pCtx = pCtx; in InitDecoderCtx()
490 if (m_pDecThrCtx != NULL) { in SetOption()
491 delete [] m_pDecThrCtx; in SetOption()
493 m_pDecThrCtx = new SWelsDecoderThreadCTX[m_iCtxCount]; in SetOption()
494 memset (m_pDecThrCtx, 0, sizeof (SWelsDecoderThreadCTX)*m_iCtxCount); in SetOption()
501 PWelsDecoderContext pDecContext = m_pDecThrCtx[i].pCtx; in SetOption()
585 PWelsDecoderContext pDecContext = m_pDecThrCtx[0].pCtx; in GetOption()
916 PWelsDecoderContext pDecContext = m_pDecThrCtx[0].pCtx; in DecodeFrame2()
925 if (!m_pDecThrCtx[j].pCtx->bEndOfStreamFlag) { in FlushFrame()
1049 pCtx = m_pDecThrCtx[0].pCtx; in ReleaseBufferedReadyPictureReorder()
1215 PWelsDecoderContext pDecContext = m_pDecThrCtx[0].pCtx; in DecodeParser()
1395 WAIT_SEMAPHORE (&m_pDecThrCtx[signal].sThreadInfo.sIsIdle, WELS_DEC_THREAD_WAIT_INFINITE); in ThreadDecodeFrameInternal()
1398 if (m_pDecThrCtxActive[i] == &m_pDecThrCtx[signal]) { in ThreadDecodeFrameInternal()
1409 m_pDecThrCtxActive[m_DecCtxActiveCount++] = &m_pDecThrCtx[signal]; in ThreadDecodeFrameInternal()
1411 m_pDecThrCtx[signal].pCtx->pLastThreadCtx = m_pLastDecThrCtx; in ThreadDecodeFrameInternal()
1413 m_pDecThrCtx[signal].kpSrc = const_cast<uint8_t*> (kpSrc); in ThreadDecodeFrameInternal()
1414 m_pDecThrCtx[signal].kiSrcLen = kiSrcLen; in ThreadDecodeFrameInternal()
1415 m_pDecThrCtx[signal].ppDst = ppDst; in ThreadDecodeFrameInternal()
1416 memcpy (&m_pDecThrCtx[signal].sDstInfo, pDstInfo, sizeof (SBufferInfo)); in ThreadDecodeFrameInternal()
1418 ParseAccessUnit (m_pDecThrCtx[signal]); in ThreadDecodeFrameInternal()
1420 m_pLastDecThrCtx = &m_pDecThrCtx[signal]; in ThreadDecodeFrameInternal()
1422 m_pDecThrCtx[signal].sThreadInfo.uiCommand = WELS_DEC_THREAD_COMMAND_RUN; in ThreadDecodeFrameInternal()
1423 RELEASE_SEMAPHORE (&m_pDecThrCtx[signal].sThreadInfo.sIsActivated); in ThreadDecodeFrameInternal()