Lines Matching refs:pCurDqLayer
28 if (NULL == pCtx || NULL == pCtx->pCurDqLayer || pCtx->iActiveThreadsNum <= 0) { in RandAvailableThread()
33 iCodedSlcNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThrdIdx].iCodedSliceNum; in RandAvailableThread()
34 iMaxSlcNumInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iThrdIdx].iMaxSliceNum; in RandAvailableThread()
69 void SetPartitonMBNum (SDqLayer* pCurDqLayer, SSpatialLayerConfig* pLayerCfg, int32_t iPartNum) { in SetPartitonMBNum() argument
81 pCurDqLayer->FirstMbIdxOfPartition[iPartIdx] = iMBPerPart * iPartIdx; in SetPartitonMBNum()
82 …pCurDqLayer->EndMbIdxOfPartition[iPartIdx] = pCurDqLayer->FirstMbIdxOfPartition[iPartIdx] + iMBPer… in SetPartitonMBNum()
85 pCurDqLayer->FirstMbIdxOfPartition[iPartNum - 1] = iMBPerPart * (iPartNum - 1); in SetPartitonMBNum()
86 pCurDqLayer->EndMbIdxOfPartition[iPartNum - 1] = iMbNumInFrame - 1; in SetPartitonMBNum()
89 pCurDqLayer->FirstMbIdxOfPartition[iPartIdx] = 0; in SetPartitonMBNum()
90 pCurDqLayer->EndMbIdxOfPartition[iPartIdx] = 0; in SetPartitonMBNum()
147 int32_t iCodedSlcNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum - 1; in SetParamForReallocateTest()
149 …SSlice* pLastCodedSlc = &pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].pSliceBuffer[iCodedSlcN… in SetParamForReallocateTest()
154 iMBNumInPatition = pCtx->pCurDqLayer->EndMbIdxOfPartition[iPartitionID] - in SetParamForReallocateTest()
155 pCtx->pCurDqLayer->FirstMbIdxOfPartition[iPartitionID] + 1; in SetParamForReallocateTest()
156 pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iCodedSliceNum = iCodedSlcNum; in SetParamForReallocateTest()
157 pCtx->pCurDqLayer->LastCodedMbIdxOfPartition[iPartitionID] = rand() % iMBNumInPatition + 1; in SetParamForReallocateTest()
361 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in InitLayerSliceBuffer()
374 if (m_EncContext.pCurDqLayer->bThreadSlcBufferFlag) { in SimulateEncodedOneSlice()
375 …int32_t iCodedSlcNumInThrd = m_EncContext.pCurDqLayer->sSliceBufferInfo[kiThreadIdx].iCodedSliceNu… in SimulateEncodedOneSlice()
377 ASSERT_TRUE (NULL != m_EncContext.pCurDqLayer->sSliceBufferInfo[kiThreadIdx].pSliceBuffer); in SimulateEncodedOneSlice()
378 …ASSERT_TRUE (NULL != &m_EncContext.pCurDqLayer->sSliceBufferInfo[kiThreadIdx].pSliceBuffer[iCodedS… in SimulateEncodedOneSlice()
380 …m_EncContext.pCurDqLayer->sSliceBufferInfo[kiThreadIdx].pSliceBuffer[iCodedSlcNumInThrd].iSliceIdx… in SimulateEncodedOneSlice()
381 m_EncContext.pCurDqLayer->sSliceBufferInfo[kiThreadIdx].iCodedSliceNum ++; in SimulateEncodedOneSlice()
383 m_EncContext.pCurDqLayer->sSliceBufferInfo[0].pSliceBuffer[kiSlcIdx].iSliceIdx = kiSlcIdx; in SimulateEncodedOneSlice()
401 m_EncContext.pCurDqLayer->NumSliceCodedOfPartition[kiPartIdx] ++; in SimulateSliceInOnePartition()
402 m_EncContext.pCurDqLayer->sSliceEncCtx.iSliceNumInFrame ++; in SimulateSliceInOnePartition()
409 int32_t iTotalSliceBuffer = m_EncContext.pCurDqLayer->iMaxSliceNum; in SimulateSliceInOneLayer()
415 int32_t iMaxSlcNumInThrd = m_EncContext.pCurDqLayer->sSliceBufferInfo[0].iMaxSliceNum; in SimulateSliceInOneLayer()
432 m_EncContext.pCurDqLayer->sSliceEncCtx.iSliceNumInFrame++; in SimulateSliceInOneLayer()
444 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in TEST_F()
456 int32_t iSlcBufferNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum; in TEST_F()
459 iRet = ReallocateSliceInThread (pCtx, pCtx->pCurDqLayer, iLayerIdx, iThreadIndex); in TEST_F()
461 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].pSliceBuffer); in TEST_F()
462 EXPECT_TRUE (iSlcBufferNum < pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum); in TEST_F()
474 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in TEST_F()
490 iSlcBufferNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum; in TEST_F()
492 iRet = ReallocateSliceInThread (pCtx, pCtx->pCurDqLayer, iLayerIdx, iThreadIndex); in TEST_F()
494 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].pSliceBuffer); in TEST_F()
495 EXPECT_TRUE (iSlcBufferNum < pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum); in TEST_F()
511 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in TEST_F()
517 iSlcBuffNumInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iMaxSliceNum; in TEST_F()
518 pSlcListInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].pSliceBuffer; in TEST_F()
524 pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].pSliceBuffer = pSlcListInThrd; in TEST_F()
525 pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iMaxSliceNum = iSlcBuffNumInThrd * 2; in TEST_F()
528 iMaxSliceNumNew += pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIdx].iMaxSliceNum; in TEST_F()
531 iRet = ExtendLayerBuffer (pCtx, pCtx->pCurDqLayer->iMaxSliceNum, iMaxSliceNumNew); in TEST_F()
533 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->ppSliceInLayer); in TEST_F()
534 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->pFirstMbIdxOfSlice); in TEST_F()
535 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->pCountMbNumInSlice); in TEST_F()
576 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in TEST_F()
585 int32_t iCodedSlcNum = pCtx->pCurDqLayer->sSliceEncCtx.iSliceNumInFrame; in TEST_F()
586 int32_t iMaxSlicNum = pCtx->pCurDqLayer->iMaxSliceNum; in TEST_F()
588 EXPECT_TRUE (NULL != pCtx->pCurDqLayer); in TEST_F()
589 EXPECT_TRUE (NULL != pCtx->pCurDqLayer->ppSliceInLayer); in TEST_F()
591 EXPECT_TRUE (NULL != &pCtx->pCurDqLayer->ppSliceInLayer[iSlcIdx]); in TEST_F()
592 EXPECT_TRUE (iSlcIdx == pCtx->pCurDqLayer->ppSliceInLayer[iSlcIdx]->iSliceIdx); in TEST_F()
607 pCtx->pCurDqLayer = pCtx->ppDqLayerList[iLayerIdx]; in TEST_F()
615 int32_t iSlcBuffNumInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iMaxSliceNum; in TEST_F()
616 …int32_t iCodedSlcNumInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iCodedSliceNu… in TEST_F()
617 SSlice* pSlcListInThrd = pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].pSliceBuffer; in TEST_F()
629 pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].pSliceBuffer = pSlcListInThrd; in TEST_F()
630 pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iMaxSliceNum = iSlcBuffNumInThrd * 2; in TEST_F()
635 …iSlcIdxInThrd = iPartitionIdx + pCtx->pCurDqLayer->NumSliceCodedOfPartition[iPartitionIdx] * iPart… in TEST_F()
636 pCtx->pCurDqLayer->NumSliceCodedOfPartition[iPartitionIdx] ++; in TEST_F()
638 iSlcIdxInThrd = pCtx->pCurDqLayer->sSliceEncCtx.iSliceNumInFrame; in TEST_F()
644 pCtx->pCurDqLayer->sSliceEncCtx.iSliceNumInFrame ++; in TEST_F()
645 pCtx->pCurDqLayer->sSliceBufferInfo[iReallocateThrdIdx].iCodedSliceNum++; in TEST_F()