| 544 | } |
| 545 | |
| 546 | int32_t CWelsPreProcess::InitLastSpatialPictures (sWelsEncCtx* pCtx) { |
| 547 | SWelsSvcCodingParam* pParam = pCtx->pSvcParam; |
| 548 | const int32_t kiDlayerCount = pParam->iSpatialLayerNum; |
| 549 | int32_t iDlayerIndex = 0; |
| 550 | if (pParam->iUsageType == SCREEN_CONTENT_REAL_TIME) { |
| 551 | for (; iDlayerIndex < MAX_DEPENDENCY_LAYER; iDlayerIndex++) { |
| 552 | m_pLastSpatialPicture[iDlayerIndex][0] = m_pLastSpatialPicture[iDlayerIndex][1] = NULL; |
| 553 | } |
| 554 | } else { |
| 555 | for (; iDlayerIndex < kiDlayerCount; iDlayerIndex++) { |
| 556 | const int32_t kiLayerInTemporal = m_uiSpatialLayersInTemporal[iDlayerIndex]; |
| 557 | m_pLastSpatialPicture[iDlayerIndex][0] = m_pSpatialPic[iDlayerIndex][kiLayerInTemporal - 2]; |
| 558 | m_pLastSpatialPicture[iDlayerIndex][1] = NULL; |
| 559 | } |
| 560 | for (; iDlayerIndex < MAX_DEPENDENCY_LAYER; iDlayerIndex++) { |
| 561 | m_pLastSpatialPicture[iDlayerIndex][0] = m_pLastSpatialPicture[iDlayerIndex][1] = NULL; |
| 562 | } |
| 563 | } |
| 564 | return 0; |
| 565 | } |
| 566 | //*********************************************************************************************************/ |
| 567 | |
| 568 | int32_t CWelsPreProcess::ColorspaceConvert (SWelsSvcCodingParam* pSvcParam, SPicture* pDstPic, |
nothing calls this directly
no outgoing calls
no test coverage detected