Home
last modified time | relevance | path

Searched refs:pCurDq (Results 1 – 14 of 14) sorted by relevance

/third_party/openh264/codec/encoder/core/src/
Dsvc_enc_slice_segment.cpp70 int32_t AssignMbMapMultipleSlices (SDqLayer* pCurDq, const SSliceArgument* kpSliceArgument) { in AssignMbMapMultipleSlices() argument
71 SSliceCtx* pSliceSeg = &pCurDq->sSliceEncCtx; in AssignMbMapMultipleSlices()
352 int32_t InitSliceSegment (SDqLayer* pCurDq, in InitSliceSegment() argument
357 SSliceCtx* pSliceSeg = &pCurDq->sSliceEncCtx; in InitSliceSegment()
431 return AssignMbMapMultipleSlices (pCurDq, pSliceArgument); in InitSliceSegment()
443 void UninitSliceSegment (SDqLayer* pCurDq, CMemoryAlign* pMa) { in UninitSliceSegment() argument
444 SSliceCtx* pSliceSeg = &pCurDq->sSliceEncCtx; in UninitSliceSegment()
476 int32_t InitSlicePEncCtx (SDqLayer* pCurDq, in InitSlicePEncCtx() argument
483 if (NULL == pCurDq) in InitSlicePEncCtx()
486 InitSliceSegment (pCurDq, in InitSlicePEncCtx()
[all …]
Dwels_task_encoder.cpp234 SDqLayer* pCurDq = m_pCtx->pCurDqLayer; in ExecuteTask() local
238 const int32_t kiFirstMbInPartition = pCurDq->FirstMbIdxOfPartition[kiPartitionId]; in ExecuteTask()
239 const int32_t kiEndMbIdxInPartition = pCurDq->EndMbIdxOfPartition[kiPartitionId]; in ExecuteTask()
240 const int32_t kiCodedSliceNumByThread = pCurDq->sSliceBufferInfo[m_iThreadIdx].iCodedSliceNum; in ExecuteTask()
241 …m_pSlice = &pCurDq->sSliceBufferInfo[m_iThreadIdx].pSliceBuffer[kiC… in ExecuteTask()
255 bNeedReallocate = (pCurDq->sSliceBufferInfo[m_iThreadIdx].iCodedSliceNum in ExecuteTask()
256 >= pCurDq->sSliceBufferInfo[m_iThreadIdx].iMaxSliceNum - 1) ? true : false; in ExecuteTask()
260 iReturn = ReallocateSliceInThread (m_pCtx, pCurDq, m_pCtx->uiDependencyId, m_iThreadIdx); in ExecuteTask()
301 m_pCtx->pFuncList->pfDeblocking.pfDeblockingFilterSlice (pCurDq, m_pCtx->pFuncList, m_pSlice); in ExecuteTask()
314 … kiEndMbIdxInPartition, kiPartitionId, pCurDq->LastCodedMbIdxOfPartition[kiPartitionId]); in ExecuteTask()
[all …]
Dslice_multi_threading.cpp74 void UpdateMbListNeighborParallel (SDqLayer* pCurDq, in UpdateMbListNeighborParallel() argument
77 SSliceCtx* pSliceCtx = &pCurDq->sSliceEncCtx; in UpdateMbListNeighborParallel()
79 int32_t iIdx = pCurDq->pFirstMbIdxOfSlice[uiSliceIdc]; in UpdateMbListNeighborParallel()
80 const int32_t kiEndMbInSlice = iIdx + pCurDq->pCountMbNumInSlice[uiSliceIdc] - 1; in UpdateMbListNeighborParallel()
83 UpdateMbNeighbor (pCurDq, &pMbList[iIdx], kiMbWidth, uiSliceIdc); in UpdateMbListNeighborParallel()
88 void CalcSliceComplexRatio (SDqLayer* pCurDq) { in CalcSliceComplexRatio() argument
89 SSliceCtx* pSliceCtx = &pCurDq->sSliceEncCtx; in CalcSliceComplexRatio()
90 SSlice** ppSliceInLayer = pCurDq->ppSliceInLayer; in CalcSliceComplexRatio()
503 SDqLayer* pCurDq = pCtx->ppDqLayerList[0]; in AdjustBaseLayer() local
509 pCtx->pCurDqLayer = pCurDq; in AdjustBaseLayer()
[all …]
Ddeblocking.cpp656 void DeblockingFilterFrameAvcbase (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc) { in DeblockingFilterFrameAvcbase() argument
658 const int32_t kiMbWidth = pCurDq->iMbWidth; in DeblockingFilterFrameAvcbase()
659 const int32_t kiMbHeight = pCurDq->iMbHeight; in DeblockingFilterFrameAvcbase()
660 SMB* pCurrentMbBlock = pCurDq->sMbDataP; in DeblockingFilterFrameAvcbase()
661 SSliceHeaderExt* sSliceHeaderExt = &pCurDq->ppSliceInLayer[0]->sSliceHeaderExt; in DeblockingFilterFrameAvcbase()
670 pFilter.iCsStride[0] = pCurDq->pDecPic->iLineSize[0]; in DeblockingFilterFrameAvcbase()
671 pFilter.iCsStride[1] = pCurDq->pDecPic->iLineSize[1]; in DeblockingFilterFrameAvcbase()
672 pFilter.iCsStride[2] = pCurDq->pDecPic->iLineSize[2]; in DeblockingFilterFrameAvcbase()
680 pFilter.pCsData[0] = pCurDq->pDecPic->pData[0] + ((j * pFilter.iCsStride[0]) << 4); in DeblockingFilterFrameAvcbase()
681 pFilter.pCsData[1] = pCurDq->pDecPic->pData[1] + ((j * pFilter.iCsStride[1]) << 3); in DeblockingFilterFrameAvcbase()
[all …]
Dencoder_ext.cpp2392 void DynslcUpdateMbNeighbourInfoListForAllSlices (SDqLayer* pCurDq, SMB* pMbList) { in DynslcUpdateMbNeighbourInfoListForAllSlices() argument
2393 SSliceCtx* pSliceCtx = &pCurDq->sSliceEncCtx; in DynslcUpdateMbNeighbourInfoListForAllSlices()
2400 UpdateMbNeighbor (pCurDq, pMb, kiMbWidth, WelsMbToSliceIdc (pCurDq, pMb->iMbXY)); in DynslcUpdateMbNeighbourInfoListForAllSlices()
2418 SDqLayer* pCurDq = pCtx->pCurDqLayer; in WelsInitCurrentQBLayerMltslc() local
2420 DynslcUpdateMbNeighbourInfoListForAllSlices (pCurDq, pCurDq->sMbDataP); in WelsInitCurrentQBLayerMltslc()
2423 void UpdateSlicepEncCtxWithPartition (SDqLayer* pCurDq, int32_t iPartitionNum) { in UpdateSlicepEncCtxWithPartition() argument
2424 SSliceCtx* pSliceCtx = &pCurDq->sSliceEncCtx; in UpdateSlicepEncCtxWithPartition()
2452 pCurDq->FirstMbIdxOfPartition[i] = iFirstMbIdx; in UpdateSlicepEncCtxWithPartition()
2453 pCurDq->EndMbIdxOfPartition[i] = iFirstMbIdx + iCountMbNumInPartition - 1; in UpdateSlicepEncCtxWithPartition()
2454 pCurDq->LastCodedMbIdxOfPartition[i] = 0; in UpdateSlicepEncCtxWithPartition()
[all …]
Dsvc_encode_slice.cpp138 void UpdateMbNeighbor (SDqLayer* pCurDq, SMB* pMb, const int32_t kiMbWidth, uint16_t uiSliceIdc) { in UpdateMbNeighbor() argument
155 bLeft = (kiMbX > 0) && (uiSliceIdc == WelsMbToSliceIdc (pCurDq, iLeftXY)); in UpdateMbNeighbor()
156 bTop = (kiMbY > 0) && (uiSliceIdc == WelsMbToSliceIdc (pCurDq, iTopXY)); in UpdateMbNeighbor()
157 bLeftTop = (kiMbX > 0) && (kiMbY > 0) && (uiSliceIdc == WelsMbToSliceIdc (pCurDq, iLeftTopXY)); in UpdateMbNeighbor()
158 …bRightTop = (kiMbX < (kiMbWidth - 1)) && (kiMbY > 0) && (uiSliceIdc == WelsMbToSliceIdc (pCurDq, i… in UpdateMbNeighbor()
1521 int32_t GetCurLayerNalCount (const SDqLayer* pCurDq, const int32_t kiCodedSliceNum) { in GetCurLayerNalCount() argument
1526 pSliceBs = &pCurDq->ppSliceInLayer[iSliceIdx]->sSliceBs; in GetCurLayerNalCount()
1666 void UpdateMbNeighbourInfoForNextSlice (SDqLayer* pCurDq, in UpdateMbNeighbourInfoForNextSlice() argument
1670 SSliceCtx* pSliceCtx = &pCurDq->sSliceEncCtx; in UpdateMbNeighbourInfoForNextSlice()
1680 UpdateMbNeighbor (pCurDq, pMb, kiMbWidth, WelsMbToSliceIdc (pCurDq, pMb->iMbXY)); in UpdateMbNeighbourInfoForNextSlice()
/third_party/openh264/codec/encoder/core/inc/
Dsvc_enc_slice_segment.h121 int32_t InitSlicePEncCtx (SDqLayer* pCurDq,
137 void UninitSlicePEncCtx (SDqLayer* pCurDq, CMemoryAlign* pMa);
147 uint16_t WelsMbToSliceIdc (SDqLayer* pCurDq, const int32_t kiMbXY);
167 int32_t WelsGetNextMbOfSlice (SDqLayer* pCurDq, const int32_t kiMbXY);
177 int32_t WelsGetPrevMbOfSlice (SDqLayer* pCurDq, const int32_t kiMbXY);
188 int32_t WelsGetNumMbInSlice (SDqLayer* pCurDq, SSlice* pSlice, const int32_t kuiSliceIdc);
195 int32_t GetCurrentSliceNum (const SDqLayer* pCurDq);
209 int32_t DynamicAdjustSlicePEncCtxAll (SDqLayer* pCurDq,
Ddeblocking.h84 void DeblockingFilterFrameAvcbase (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc);
86 void DeblockingFilterSliceAvcbase (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SSlice* pSlice);
87 void DeblockingFilterSliceAvcbaseNull (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SSlice* pSlice);
Dslice_multi_threading.h54 void UpdateMbListNeighborParallel (SDqLayer* pCurDq,
58 void CalcSliceComplexRatio (SDqLayer* pCurDq);
Dsvc_encode_slice.h53 void UpdateMbNeighbor(SDqLayer* pCurDq, SMB* pMb, const int32_t kiMbWidth, uint16_t uiSliceIdc);
143 int32_t GetCurLayerNalCount(const SDqLayer* pCurDq, const int32_t kiCodedSliceNum);
169 void UpdateMbNeighbourInfoForNextSlice (SDqLayer* pCurDq,
Dsvc_encode_mb.h57 void WelsRecPskip (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SMB* pCurMb, SMbCache* pMbCache);
Dwels_func_ptr_def.h86 typedef void (*PDeblockingFilterSlice) (SDqLayer* pCurDq, SWelsFuncPtrList* pFunc, SSlice* pSlice);
/third_party/openh264/codec/decoder/core/src/
Ddecoder_core.cpp48 PDqLayer pCurDq = pCtx->pCurDqLayer; in DecodeFrameConstruction() local
51 const int32_t kiWidth = pCurDq->iMbWidth << 4; in DecodeFrameConstruction()
52 const int32_t kiHeight = pCurDq->iMbHeight << 4; in DecodeFrameConstruction()
54 const int32_t kiTotalNumMbInCurLayer = pCurDq->iMbWidth * pCurDq->iMbHeight; in DecodeFrameConstruction()
58 …memcpy (& (pCtx->sFrameCrop), & (pCurDq->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSp… in DecodeFrameConstruction()
195 pCtx->iTotalNumMbRec, kiTotalNumMbInCurLayer, pCurDq->iMbWidth, pCurDq->iMbHeight); in DecodeFrameConstruction()
200 } else if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag in DecodeFrameConstruction()
2446 void InitCurDqLayerData (PWelsDecoderContext pCtx, PDqLayer pCurDq) { in InitCurDqLayerData() argument
2447 if (NULL != pCtx && NULL != pCurDq) { in InitCurDqLayerData()
2448 pCurDq->pMbType = pCtx->sMb.pMbType[0]; in InitCurDqLayerData()
[all …]
Ddecoder.cpp1200 PDqLayer pCurDq = pCtx->pCurDqLayer; in UpdateDecStatNoFreezingInfo() local
1209 const int32_t kiMbNum = pCurDq->iMbWidth * pCurDq->iMbHeight; in UpdateDecStatNoFreezingInfo()
1212 iTotalQp += pCurDq->pLumaQp[iMb]; in UpdateDecStatNoFreezingInfo()
1218 iCorrectMbNum += (int32_t) pCurDq->pMbCorrectlyDecodedFlag[iMb]; in UpdateDecStatNoFreezingInfo()
1219 iTotalQp += pCurDq->pLumaQp[iMb] * pCurDq->pMbCorrectlyDecodedFlag[iMb]; in UpdateDecStatNoFreezingInfo()
1234 if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) { in UpdateDecStatNoFreezingInfo()