Home
last modified time | relevance | path

Searched refs:iIdx (Results 1 – 25 of 31) sorted by relevance

12

/third_party/openh264/test/api/
Dencode_decode_api_test.template41 int iIdx = 0;
44 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
45 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) …
46 EXPECT_TRUE (pBsBuf[iIdx] != NULL);
47 aLen[iIdx] = 0;
49 long rv = WelsCreateDecoder (&decoder[iIdx]);
51 EXPECT_TRUE (decoder[iIdx] != NULL);
59 rv = decoder[iIdx]->Initialize (&decParam);
81 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
82 aLen[iIdx] = 0;
[all …]
Dencode_options_test.cpp972 int iIdx = 0; in TEST_F() local
973 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
974 …pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) … in TEST_F()
975 ASSERT_TRUE (pBsBuf[iIdx] != NULL); in TEST_F()
976 aLen[iIdx] = 0; in TEST_F()
978 long rv = WelsCreateDecoder (&decoder[iIdx]); in TEST_F()
980 ASSERT_TRUE (decoder[iIdx] != NULL); in TEST_F()
988 rv = decoder[iIdx]->Initialize (&decParam); in TEST_F()
1001 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TEST_F()
1002 aLen[iIdx] = 0; in TEST_F()
[all …]
Dencode_decode_api_test.cpp148 int iIdx; in TestOneSimulcastAVC() local
160 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TestOneSimulcastAVC()
161 aLen[iIdx] = 0; in TestOneSimulcastAVC()
170 iIdx = layerInfo.uiSpatialId; in TestOneSimulcastAVC()
171 …EXPECT_TRUE (iIdx < iSpatialLayerNum) << "iIdx = " << iIdx << ", iSpatialLayerNum = " << iSpatialL… in TestOneSimulcastAVC()
172 memcpy ((pBsBuf[iIdx] + aLen[iIdx]), layerInfo.pBsBuf, iLayerLen * sizeof (unsigned char)); in TestOneSimulcastAVC()
173 aLen[iIdx] += iLayerLen; in TestOneSimulcastAVC()
176 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TestOneSimulcastAVC()
181 fwrite (pBsBuf[iIdx], aLen[iIdx], 1, fEnc[iIdx]); in TestOneSimulcastAVC()
184 iResult = decoder[iIdx]->DecodeFrame2 (pBsBuf[iIdx], aLen[iIdx], pData, &dstBufInfo_); in TestOneSimulcastAVC()
[all …]
Ddecoder_ec_test.cpp52 int iIdx = 0; in TEST_P() local
56 while (iIdx <= p.numframes) { in TEST_P()
77 iIdx++; in TEST_P()
108 int iIdx = 0; in TEST_P() local
112 while (iIdx <= p.numframes) { in TEST_P()
132 iIdx++; in TEST_P()
169 int iIdx = 0; in TEST_P() local
176 while (iIdx <= p.numframes) { in TEST_P()
216 iIdx++; in TEST_P()
249 int iIdx = 0; in TEST_F() local
[all …]
Dltr_test.cpp36 int iIdx = 0; in TEST_P() local
37 while (iIdx <= p.numframes) { in TEST_P()
41 iIdx++; in TEST_P()
85 int iIdx = 0; in TEST_P() local
86 while (iIdx <= p.numframes) { in TEST_P()
102 iIdx++; in TEST_P()
134 int iIdx = 0; in TEST_P() local
137 while (iIdx <= p.numframes) { in TEST_P()
154 iIdx++; in TEST_P()
Ddecode_api_test.cpp32 int iIdx = 0; in TEST_P() local
33 while (iIdx <= p.numframes) { in TEST_P()
50 iIdx++; in TEST_P()
70 int iIdx = 0; in TEST_P() local
71 while (iIdx <= p.numframes) { in TEST_P()
87 iIdx++; in TEST_P()
111 int iIdx = 0; in TEST_P() local
112 while (iIdx <= p.numframes) { in TEST_P()
137 iIdx++; in TEST_P()
163 int iIdx = 0; in TEST_P() local
[all …]
/third_party/openh264/codec/encoder/core/src/
Dslice_multi_threading.cpp79 int32_t iIdx = pCurDq->pFirstMbIdxOfSlice[uiSliceIdc]; in UpdateMbListNeighborParallel() local
80 const int32_t kiEndMbInSlice = iIdx + pCurDq->pCountMbNumInSlice[uiSliceIdc] - 1; in UpdateMbListNeighborParallel()
83 UpdateMbNeighbor (pCurDq, &pMbList[iIdx], kiMbWidth, uiSliceIdc); in UpdateMbListNeighborParallel()
84 ++ iIdx; in UpdateMbListNeighborParallel()
85 } while (iIdx <= kiEndMbInSlice); in UpdateMbListNeighborParallel()
258 int32_t iIdx = 0; in RequestMtResource() local
304 iIdx = 0; in RequestMtResource()
305 while (iIdx < iThreadNum) { in RequestMtResource()
306 pSmt->pThreadPEncCtx[iIdx].pWelsPEncCtx = (void*) *ppCtx; in RequestMtResource()
307 pSmt->pThreadPEncCtx[iIdx].iSliceIndex = iIdx; in RequestMtResource()
[all …]
Dencode_mb_aux.cpp282 int32_t i, iIdx; in WelsHadamardT4Dc_c() local
285 iIdx = ((i & 0x08) << 4) + ((i & 0x04) << 3); in WelsHadamardT4Dc_c()
286 s[0] = pDct[iIdx ] + pDct[iIdx + 80]; in WelsHadamardT4Dc_c()
287 s[3] = pDct[iIdx ] - pDct[iIdx + 80]; in WelsHadamardT4Dc_c()
288 s[1] = pDct[iIdx + 16] + pDct[iIdx + 64]; in WelsHadamardT4Dc_c()
289 s[2] = pDct[iIdx + 16] - pDct[iIdx + 64]; in WelsHadamardT4Dc_c()
422 int32_t iIdx = 15; in WelsCalculateSingleCtr4x4_c() local
425 while (iIdx >= 0 && pDct[iIdx] == 0) --iIdx; in WelsCalculateSingleCtr4x4_c()
427 while (iIdx >= 0) { in WelsCalculateSingleCtr4x4_c()
428 -- iIdx; in WelsCalculateSingleCtr4x4_c()
[all …]
Dsvc_set_mb_syn_cavlc.cpp331 int32_t iIdx = g_kuiCache48CountScan4Idx[i]; in WelsWriteMbResidual() local
332 iA = pNonZeroCoeffCount[iIdx - 1]; in WelsWriteMbResidual()
333 iB = pNonZeroCoeffCount[iIdx - 8]; in WelsWriteMbResidual()
335 …if (WriteBlockResidualCavlc (pFuncList, pBlock, 14, pNonZeroCoeffCount[iIdx] > 0, LUMA_AC, iC, pBs… in WelsWriteMbResidual()
347 int32_t iIdx = g_kuiCache48CountScan4Idx[i]; in WelsWriteMbResidual() local
348 const int8_t kiA = pNonZeroCoeffCount[iIdx]; in WelsWriteMbResidual()
349 const int8_t kiB = pNonZeroCoeffCount[iIdx + 1]; in WelsWriteMbResidual()
350 const int8_t kiC = pNonZeroCoeffCount[iIdx + 8]; in WelsWriteMbResidual()
351 const int8_t kiD = pNonZeroCoeffCount[iIdx + 9]; in WelsWriteMbResidual()
352 iA = pNonZeroCoeffCount[iIdx - 1]; in WelsWriteMbResidual()
[all …]
Dset_mb_syn_cabac.cpp68 for (int32_t iIdx = 0; iIdx < WELS_CONTEXT_COUNT; iIdx++) { in WelsCabacInit() local
69 int32_t m = g_kiCabacGlobalContextIdx[iIdx][iModel][0]; in WelsCabacInit()
70 int32_t n = g_kiCabacGlobalContextIdx[iIdx][iModel][1]; in WelsCabacInit()
81 pEncCtx->sWelsCabacContexts[iModel][iQp][iIdx].Set (uiStateIdx, uiValMps); in WelsCabacInit()
88 int32_t iIdx = pEncCtx->eSliceType == WelsCommon::I_SLICE ? 0 : iModel + 1; in WelsCabacContextInit() local
90 memcpy (pCbCtx->m_sStateCtx, pEncCtx->sWelsCabacContexts[iIdx][iQp], in WelsCabacContextInit()
Ddecode_mb_aux.cpp174 int32_t iIdx = i << 2; in WelsIDctT4Rec_c() local
175 const int32_t kiHorSumU = pDct[iIdx] + pDct[iIdx + 2]; // add 0-2 in WelsIDctT4Rec_c()
176 const int32_t kiHorDelU = pDct[iIdx] - pDct[iIdx + 2]; // sub 0-2 in WelsIDctT4Rec_c()
177 const int32_t kiHorSumD = pDct[iIdx + 1] + (pDct[iIdx + 3] >> 1); in WelsIDctT4Rec_c()
178 const int32_t kiHorDelD = (pDct[iIdx + 1] >> 1) - pDct[iIdx + 3]; in WelsIDctT4Rec_c()
180 iTemp[iIdx ] = kiHorSumU + kiHorSumD; in WelsIDctT4Rec_c()
181 iTemp[iIdx + 1] = kiHorDelU + kiHorDelD; in WelsIDctT4Rec_c()
182 iTemp[iIdx + 2] = kiHorDelU - kiHorDelD; in WelsIDctT4Rec_c()
183 iTemp[iIdx + 3] = kiHorSumU - kiHorSumD; in WelsIDctT4Rec_c()
Dsvc_set_mb_syn_cabac.cpp284 void WelsCabacMbRef (SCabacCtx* pCabacCtx, SMB* pCurMb, SMbCache* pMbCache, int16_t iIdx) { in WelsCabacMbRef() argument
286 const int16_t iRefIdxA = pMvComp->iRefIndexCache[iIdx + 6]; in WelsCabacMbRef()
287 const int16_t iRefIdxB = pMvComp->iRefIndexCache[iIdx + 1]; in WelsCabacMbRef()
288 int16_t iRefIdx = pMvComp->iRefIndexCache[iIdx + 7]; in WelsCabacMbRef()
427 int16_t iIdx) { in WelsGetMbCtxCabac() argument
436 iNzA = pNonZeroCoeffCount[iIdx - 1]; in WelsGetMbCtxCabac()
437 iNzB = pNonZeroCoeffCount[iIdx - 8]; in WelsGetMbCtxCabac()
442 iNzA = (pCurMb - 1)->iCbpDc & (1 << iIdx); in WelsGetMbCtxCabac()
444 iNzB = (pCurMb - iMbWidth)->iCbpDc & (1 << iIdx); in WelsGetMbCtxCabac()
457 …ECtxBlockCat eCtxBlockCat, int16_t iIdx, int16_t iNonZeroCount, int16_t* pBlock, int16_t iEndIdx)… in WelsWriteBlockResidualCabac() argument
[all …]
Dencoder_ext.cpp178 int32_t iIdx = 0; in SliceArgumentValidationFixedSliceMode() local
215 for (iIdx = 0; iIdx < MAX_SLICES_NUM; iIdx++) { in SliceArgumentValidationFixedSliceMode()
216 pSliceArgument->uiSliceMbNum[iIdx] = 0; in SliceArgumentValidationFixedSliceMode()
250 for (iIdx = 0; iIdx < MAX_SLICES_NUM; iIdx++) { in SliceArgumentValidationFixedSliceMode()
251 pSliceArgument->uiSliceMbNum[iIdx] = 0; in SliceArgumentValidationFixedSliceMode()
405 int32_t iIdx = 0; in ParamValidationExt() local
549 for (iIdx = 0; iIdx < MAX_SLICES_NUM; iIdx++) { in ParamValidationExt()
550 pSpatialLayer->sSliceArgument.uiSliceMbNum[iIdx] = 0; in ParamValidationExt()
839 int32_t iIdx; in InitMbInfo() local
848 for (iIdx = 0; iIdx < iMbNum; iIdx++) { in InitMbInfo()
[all …]
Dwels_task_management.cpp231 int32_t iIdx = 0; in ExecuteTaskList() local
232 while (iIdx < iCurrentTaskCount) { in ExecuteTaskList()
233 m_pThreadPool->QueueTask (pTargetTaskList->getNode (iIdx)); in ExecuteTaskList()
234 iIdx ++; in ExecuteTaskList()
Dsvc_encode_slice.cpp1026 int32_t iIdx = 0; in InitSliceThreadInfo() local
1040 while (iIdx < iSlcBufferNum) { in InitSliceThreadInfo()
1041 pDqLayer->sSliceBufferInfo[iIdx].iMaxSliceNum = iMaxSliceNum; in InitSliceThreadInfo()
1042 pDqLayer->sSliceBufferInfo[iIdx].iCodedSliceNum = 0; in InitSliceThreadInfo()
1043 …pDqLayer->sSliceBufferInfo[iIdx].pSliceBuffer = (SSlice*)pMa->WelsMallocz (sizeof (SSlice) * iMa… in InitSliceThreadInfo()
1045 if (NULL == pDqLayer->sSliceBufferInfo[iIdx].pSliceBuffer) { in InitSliceThreadInfo()
1050 iRet = InitSliceList (pDqLayer->sSliceBufferInfo[iIdx].pSliceBuffer, in InitSliceThreadInfo()
1059 iIdx++; in InitSliceThreadInfo()
1062 for (; iIdx < MAX_THREADS_NUM; iIdx++) { in InitSliceThreadInfo()
1063 pDqLayer->sSliceBufferInfo[iIdx].iMaxSliceNum = 0; in InitSliceThreadInfo()
[all …]
Dref_list_mgr_svc.cpp82 static inline void DeleteLTRFromLongList (sWelsEncCtx* pCtx, int32_t iIdx) { in DeleteLTRFromLongList() argument
86 for (k = iIdx; k < pRefList->uiLongRefCount - 1; k++) { in DeleteLTRFromLongList()
93 static inline void DeleteSTRFromShortList (sWelsEncCtx* pCtx, int32_t iIdx) { in DeleteSTRFromShortList() argument
97 for (k = iIdx; k < pRefList->uiShortRefCount - 1; k++) { in DeleteSTRFromShortList()
666 int32_t iIdx = 0; in WelsUpdateSliceHeaderSyntax() local
670 for (iIdx = 0; iIdx < kiCountSliceNum; iIdx++) { in WelsUpdateSliceHeaderSyntax()
671 SSliceHeaderExt* pSliceHdrExt = &ppSliceList[iIdx]->sSliceHeaderExt; in WelsUpdateSliceHeaderSyntax()
Dsvc_base_layer_md.cpp368 int32_t iIdx = 0; in WelsMdI16x16() local
392 iIdx = 1; in WelsMdI16x16()
407 iIdx = iIdx ^ 0x01; in WelsMdI16x16()
408 pDst = pPredI16x16[iIdx]; in WelsMdI16x16()
412 pMbCache->pMemPredChroma = pPredI16x16[iIdx]; in WelsMdI16x16()
414 pMbCache->pMemPredLuma = pPredI16x16[iIdx ^ 0x01]; in WelsMdI16x16()
1582 int32_t i, j, iIdx, iPixStride; in WelsMdInterMbRefinement() local
1628 iIdx = i << 3; in WelsMdInterMbRefinement()
1631 PredInter16x8Mv (pMbCache, iIdx, pWelsMd->uiRef, &pWelsMd->sMe.sMe16x8[i].sMvp); in WelsMdInterMbRefinement()
1632 …MeRefineFracPixel (pEncCtx, pDstLuma + g_kuiSmb4AddrIn256[iIdx], &pWelsMd->sMe.sMe16x8[i], &sMeRef… in WelsMdInterMbRefinement()
[all …]
/third_party/openh264/codec/processing/src/downsample/
Ddownsample.cpp201 int32_t iIdx = 0; in Process() local
215 uint8_t* pDstY = (uint8_t*)m_pSampleBuffer[iIdx][0]; in Process()
216 uint8_t* pDstU = (uint8_t*)m_pSampleBuffer[iIdx][1]; in Process()
217 uint8_t* pDstV = (uint8_t*)m_pSampleBuffer[iIdx][2]; in Process()
218 iIdx++; in Process()
258 iIdx = iIdx % 2; in Process()
259 pDstY = (uint8_t*)m_pSampleBuffer[iIdx][0]; in Process()
260 pDstU = (uint8_t*)m_pSampleBuffer[iIdx][1]; in Process()
261 pDstV = (uint8_t*)m_pSampleBuffer[iIdx][2]; in Process()
262 iIdx++; in Process()
/third_party/openh264/codec/decoder/core/src/
Dmemmgr_nal_unit.cpp103 int32_t iIdx = 0; in ExpandNalUnitList() local
109 …memcpy (pTmp->pNalUnitsList[iIdx], (*ppAu)->pNalUnitsList[iIdx], sizeof (SNalUnit)); //confirmed_s… in ExpandNalUnitList()
110 ++ iIdx; in ExpandNalUnitList()
111 } while (iIdx < kiOrgSize); in ExpandNalUnitList()
Dcabac_decoder.cpp40 for (int32_t iIdx = 0; iIdx < WELS_CONTEXT_COUNT; iIdx++) { in WelsCabacGlobalInit() local
41 int32_t m = g_kiCabacGlobalContextIdx[iIdx][iModel][0]; in WelsCabacGlobalInit()
42 int32_t n = g_kiCabacGlobalContextIdx[iIdx][iModel][1]; in WelsCabacGlobalInit()
53 pCtx->sWelsCabacContexts[iModel][iQp][iIdx].uiState = uiStateIdx; in WelsCabacGlobalInit()
54 pCtx->sWelsCabacContexts[iModel][iQp][iIdx].uiMPS = uiValMps; in WelsCabacGlobalInit()
62 int32_t iIdx = pCtx->eSliceType == WelsCommon::I_SLICE ? 0 : iCabacInitIdc + 1; in WelsCabacContextInit() local
66 memcpy (pCtx->pCabacCtx, pCtx->sWelsCabacContexts[iIdx][iQp], in WelsCabacContextInit()
Ddecoder_core.cpp101 int32_t iIdx = pCurAu->uiStartPos; in DecodeFrameConstruction() local
104 …pParser->uiOutBsTimeStamp = (pCurAu->pNalUnitsList [iIdx]) ? pCurAu->pNalUnitsList [iIdx]->uiTimeS… in DecodeFrameConstruction()
111 if (pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.bIdrFlag) { //IDR in DecodeFrameConstruction()
119 …bool bSubSps = (NAL_UNIT_CODED_SLICE_EXT == pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.sNalUnitHe… in DecodeFrameConstruction()
146 if (pParser->iNalNum + iEndIdx - iIdx + 1 > pCtx->iMaxNalNum) { //calculate total NAL num in DecodeFrameConstruction()
149 pParser->iNalNum + iEndIdx - iIdx + 1, pCtx->iMaxNalNum); in DecodeFrameConstruction()
150 …RETURN_IF (ERR_INFO_OUT_OF_MEMORY, ExpandBsLenBuffer (pCtx, pParser->iNalNum + iEndIdx - iIdx + 1)) in DecodeFrameConstruction()
152 while (iIdx <= iEndIdx) { in DecodeFrameConstruction()
153 pCurNal = pCurAu->pNalUnitsList [iIdx ++]; in DecodeFrameConstruction()
160 …(long) (pDstBuf - pParser->pDstBuff + iNalLen), MAX_ACCESS_UNIT_CAPACITY, iIdx, iEndIdx, iNum, pPa… in DecodeFrameConstruction()
[all …]
Dau_parser.cpp70 int32_t iIdx = 0; in DetectStartCodePrefix() local
71 while ((iIdx < iBufSize) && (! (*pBits))) { in DetectStartCodePrefix()
73 ++ iIdx; in DetectStartCodePrefix()
75 if (iIdx >= iBufSize) break; in DetectStartCodePrefix()
77 ++ iIdx; in DetectStartCodePrefix()
80 if ((iIdx >= 3) && ((* (pBits - 1)) == 0x1)) { in DetectStartCodePrefix()
85 iBufSize -= iIdx; in DetectStartCodePrefix()
664 int32_t iIdx = 0; in ParseRefBasePicMarking() local
669 pRefBasePicMarking->mmco_base[iIdx].uiMmcoType = kuiMmco; in ParseRefBasePicMarking()
676 pRefBasePicMarking->mmco_base[iIdx].uiDiffOfPicNums = 1 + uiCode; in ParseRefBasePicMarking()
[all …]
/third_party/openh264/codec/processing/src/complexityanalysis/
DComplexityAnalysis.cpp357 int32_t iIdx = 0; in GomComplexityAnalysisIntra() local
393 m_ComplexityAnalysisParam.pGomComplexity[iIdx] = iGomSad; in GomComplexityAnalysisIntra()
395 iIdx++; in GomComplexityAnalysisIntra()
402 m_ComplexityAnalysisParam.iGomNumInFrame = iIdx; in GomComplexityAnalysisIntra()
413 int32_t iIdx = 0; in GomComplexityAnalysisInter() local
474 m_ComplexityAnalysisParam.pGomComplexity[iIdx] = iGomSad; in GomComplexityAnalysisInter()
476 iIdx++; in GomComplexityAnalysisInter()
486 m_ComplexityAnalysisParam.iGomNumInFrame = iIdx; in GomComplexityAnalysisInter()
/third_party/openh264/codec/encoder/core/inc/
Dparaset_strategy.h92 virtual int32_t GetSpsIdx (const int32_t iIdx) = 0;
148 virtual int32_t GetSpsIdx (const int32_t iIdx) { in GetSpsIdx() argument
249 int32_t GetSpsIdx (const int32_t iIdx) { in GetSpsIdx() argument
250 return iIdx; in GetSpsIdx()
/third_party/openh264/test/encoder/
DEncUT_EncoderMbAux.cpp658 int32_t i, iIdx; in WelsHadamardT4DcAnchor() local
660 iIdx = ((i & 0x08) << 4) + ((i & 0x04) << 3); in WelsHadamardT4DcAnchor()
661 s[0] = pDct[iIdx ] + pDct[iIdx + 80]; in WelsHadamardT4DcAnchor()
662 s[3] = pDct[iIdx ] - pDct[iIdx + 80]; in WelsHadamardT4DcAnchor()
663 s[1] = pDct[iIdx + 16] + pDct[iIdx + 64]; in WelsHadamardT4DcAnchor()
664 s[2] = pDct[iIdx + 16] - pDct[iIdx + 64]; in WelsHadamardT4DcAnchor()

12