/third_party/openh264/test/api/ |
D | encode_options_test.cpp | 51 param_.iSpatialLayerNum = rand() % SPATIAL_LAYER_NUM_RANGE; in RandomParamExtCombination() 108 for (int iSpatialIdx = 0; iSpatialIdx < param_.iSpatialLayerNum; iSpatialIdx++) { in RandomParamExtCombination() 146 param_.iSpatialLayerNum = WELS_CLIP3 (param_.iSpatialLayerNum, 1, MAX_SPATIAL_LAYER_NUM); in ValidateParamExtCombination() 148 param_.iSpatialLayerNum = 1; in ValidateParamExtCombination() 179 for (int iSpatialIdx = 0; iSpatialIdx < param_.iSpatialLayerNum; iSpatialIdx++) { in ValidateParamExtCombination() 181 pSpatialLayer->iVideoWidth = param_.iPicWidth >> (param_.iSpatialLayerNum - 1 - iSpatialIdx); in ValidateParamExtCombination() 182 pSpatialLayer->iVideoHeight = param_.iPicHeight >> (param_.iSpatialLayerNum - 1 - iSpatialIdx); in ValidateParamExtCombination() 292 for (int iSpatialIdx = 0; iSpatialIdx < param_.iSpatialLayerNum; iSpatialIdx++) { in SliceParamValidationForMode4() 300 int iSpatialLayerNum = 4; in TEST_F() local 301 …int iWidth = WelsClip3 ((((rand() % MAX_WIDTH) >> 1) + 1) << 1, 1 << iSpatialLayerNum, MAX_… in TEST_F() [all …]
|
D | BaseEncoderTest.cpp | 12 … && pEncParamExt->iSpatialLayerNum == 1 && !pEncParamExt->bIsLosslessLink in InitWithParam() 34 param.iSpatialLayerNum = pEncParamExt->iSpatialLayerNum; in InitWithParam() 42 for (int i = 0; i < param.iSpatialLayerNum; i++) { in InitWithParam() 43 …param.sSpatialLayers[i].iVideoWidth = pEncParamExt->iPicWidth >> (param.iSpatialLayerNum - 1 … in InitWithParam() 44 …param.sSpatialLayers[i].iVideoHeight = pEncParamExt->iPicHeight >> (param.iSpatialLayerNum - 1 … in InitWithParam() 64 param.iTargetBitrate *= param.iSpatialLayerNum; in InitWithParam()
|
D | encode_decode_api_test.template | 18 //int iSpatialLayerNum = $SPATIAL_NUM; 44 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { 81 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { 98 EXPECT_TRUE (iIdx < iSpatialLayerNum); 104 for (iIdx = 0; iIdx < param_.iSpatialLayerNum; iIdx++) { 110 EXPECT_TRUE (iIdx < iSpatialLayerNum); 117 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { 136 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
|
D | encode_decode_api_test.cpp | 22 pParam->iSpatialLayerNum = iLayers; in prepareParam() 124 int iSpatialLayerNum, in TestOneSimulcastAVC() argument 160 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TestOneSimulcastAVC() 171 …EXPECT_TRUE (iIdx < iSpatialLayerNum) << "iIdx = " << iIdx << ", iSpatialLayerNum = " << iSpatialL… in TestOneSimulcastAVC() 176 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) { in TestOneSimulcastAVC()
|
D | encoder_test.cpp | 51 pEnxParamExt->iSpatialLayerNum = pEncFileParam->iLayerNum; in EncFileParamToParamExt() 58 for (int i = 0; i < pEnxParamExt->iSpatialLayerNum; i++) { in EncFileParamToParamExt()
|
D | decode_encode_test.cpp | 103 pEnxParamExt->iSpatialLayerNum = 1; in DecEncFileParamToParamExt() 109 for (int i = 0; i < pEnxParamExt->iSpatialLayerNum; i++) { in DecEncFileParamToParamExt()
|
D | decoder_ec_test.cpp | 151 param_.iSpatialLayerNum = 1; in TEST_P() 232 param_.iSpatialLayerNum = 1; in TEST_F() 369 param_.iSpatialLayerNum = 1; in TEST_F() 502 param_.iSpatialLayerNum = 1; in TEST_F() 674 param_.iSpatialLayerNum = 4; in TEST_F() 741 param_.iSpatialLayerNum = 4; in TEST_F()
|
D | decode_api_test.cpp | 308 param_.iSpatialLayerNum = 1; in TEST_P() 364 param_.iSpatialLayerNum = 2; in TEST_P() 421 param_.iSpatialLayerNum = 1; in TEST_P() 487 param_.iSpatialLayerNum = 1; in TEST_P() 885 param_.iSpatialLayerNum = kiTotalLayer; in TEST_F() 962 param_.iSpatialLayerNum = iLayerNum; in TEST_F() 1024 param_.iSpatialLayerNum = iLayerNum; in TEST_F()
|
D | encode_decode_api_test.h | 141 …castAVC (SEncParamExt* pParam, ISVCDecoder** decoder, unsigned char** pBsBuf, int iSpatialLayerNum,
|
/third_party/openh264/codec/encoder/plus/src/ |
D | welsEncoderExt.cpp | 251 const int32_t iNumOfLayers = pCfg->iSpatialLayerNum; in InitializeInternal() 340 pCfg->iSpatialLayerNum); in InitializeInternal() 514 pParam->iSpatialLayerNum, in TraceParamInfo() 542 …int32_t iSpatialLayers = (pParam->iSpatialLayerNum < MAX_SPATIAL_LAYER_NUM) ? (pParam->iSpatialLay… in TraceParamInfo() 587 int32_t iMaxDid = m_pEncContext->pSvcParam->iSpatialLayerNum - 1; in UpdateStatistics() 740 …PicWidth != m_pEncContext->pSvcParam->sDependencyLayers[m_pEncContext->pSvcParam->iSpatialLayerNum in SetOption() 742 …cHeight != m_pEncContext->pSvcParam->sDependencyLayers[m_pEncContext->pSvcParam->iSpatialLayerNum - in SetOption() 794 if ((sEncodingParam.sSpatialLayers[sEncodingParam.iSpatialLayerNum - 1].iVideoWidth != in SetOption() 795 …m_pEncContext->pSvcParam->sDependencyLayers[m_pEncContext->pSvcParam->iSpatialLayerNum - 1].iActua… in SetOption() 796 (sEncodingParam.sSpatialLayers[sEncodingParam.iSpatialLayerNum - 1].iVideoHeight != in SetOption() [all …]
|
/third_party/openh264/codec/console/enc/src/ |
D | welsenc.cpp | 352 pSvcParam.iSpatialLayerNum = (int8_t)atoi (strTag[1].c_str()); in ParseConfig() 353 if (pSvcParam.iSpatialLayerNum > MAX_DEPENDENCY_LAYER || pSvcParam.iSpatialLayerNum <= 0) { in ParseConfig() 354 … fprintf (stderr, "Invalid parameter in iSpatialLayerNum: %d.\n", pSvcParam.iSpatialLayerNum); in ParseConfig() 374 const int8_t kiActualLayerNum = WELS_MIN (pSvcParam.iSpatialLayerNum, iLayerCount); in ParseConfig() 375 if (pSvcParam.iSpatialLayerNum > in ParseConfig() 377 pSvcParam.iSpatialLayerNum = kiActualLayerNum; in ParseConfig() 575 pSvcParam.iSpatialLayerNum = atoi (argv[n++]); in ParseCommandLine() 685 sParam.iSpatialLayerNum = 4; // layer number at spatial level in FillSpecificParameters() 735 float fMaxFr = sParam.sSpatialLayers[sParam.iSpatialLayerNum - 1].fFrameRate; in FillSpecificParameters() 736 for (int32_t i = sParam.iSpatialLayerNum - 2; i >= 0; -- i) { in FillSpecificParameters() [all …]
|
/third_party/openh264/codec/encoder/core/inc/ |
D | param_svc.h | 173 …param.iSpatialLayerNum = 1; // number of dependency(Spatial/CGS) layers us… in FillDefault() 252 while (iIdxSpatial < iSpatialLayerNum) { in ParamBaseTranscode() 354 iSpatialLayerNum = (int8_t)WELS_CLIP3 (pCodingParam.iSpatialLayerNum, 1, in ParamTranscode() 396 while (iIdxSpatial < iSpatialLayerNum) { in ParamTranscode() 420 if ((iSpatialLayerNum==1) && (iIdxSpatial==0)) { in ParamTranscode() 472 int32_t iSpatialIdx = iSpatialLayerNum - 1; in SetActualPicResolution() 496 while (i < iSpatialLayerNum) { in DetermineTemporalSettings()
|
/third_party/openh264/test/encoder/ |
D | EncUT_EncoderExt.cpp | 146 pParamExt->iSpatialLayerNum = 1; in InitializeParamExt() 644 int iSpatialLayerNum = rand() % MAX_SPATIAL_LAYER_NUM; in TEST_F() local 645 sEncParamExt.iSpatialLayerNum = WELS_CLIP3 (iSpatialLayerNum, 1, MAX_SPATIAL_LAYER_NUM); in TEST_F() 656 for (int iNum = sEncParamExt.iSpatialLayerNum - 1; iNum >= 0 ; iNum--) { in TEST_F() 657 int iScale = 1 << ((sEncParamExt.iSpatialLayerNum - 1) - iNum); in TEST_F() 678 iLayerNum = WELS_CLIP3 (iSpatialLayerNum, 0, sEncParamExt.iSpatialLayerNum - 1); in TEST_F() 960 sEncParamExt.iSpatialLayerNum = 1; in TEST_F() 1025 sEncParamExt.iSpatialLayerNum = 3; in TEST_F() 1066 sEncParamExt.iSpatialLayerNum = 2; in TEST_F() 1097 sEncParamExt.iSpatialLayerNum = 3; in TEST_F() [all …]
|
D | EncUT_SliceBufferReallocate.cpp | 212 pCtx->pSvcParam->iSpatialLayerNum = 1; in InitParam() 228 pCtx->pSvcParam->bSimulcastAVC, pCtx->pSvcParam->iSpatialLayerNum); in InitParam() 231 …pCtx->ppDqLayerList = (SDqLayer**)pCtx->pMemAlign->WelsMallocz (pCtx->pSvcParam->iSpatialLayerNum … in InitParam() 269 …int32_t iRet = AcquireLayersNals (&pCtx, pCtx->pSvcParam, &pCtx->pSvcParam->iSpatialLayerNum, &iCo… in InitFrameBsBuffer() 329 …pLayerCfg->iVideoWidth = pCtx->pSvcParam->iPicWidth >> (pCtx->pSvcParam->iSpatialLayerNum - 1 - i… in InitLayerSliceBuffer() 330 …pLayerCfg->iVideoHeight = pCtx->pSvcParam->iPicHeight >> (pCtx->pSvcParam->iSpatialLayerNum - 1 - … in InitLayerSliceBuffer() 336 pLayerCfg->iSpatialBitrate = pCtx->pSvcParam->iTargetBitrate / pCtx->pSvcParam->iSpatialLayerNum; in InitLayerSliceBuffer()
|
D | EncUT_ParameterSetStrategy.cpp | 154 sParamExt.iSpatialLayerNum = 2; in TEST_F() 178 for ( int i = 0; i < sParamExt.iSpatialLayerNum; i++ ) in TEST_F()
|
/third_party/openh264/codec/encoder/core/src/ |
D | encoder_ext.cpp | 275 if (pCfg->iSpatialLayerNum > 1) { in ParamValidation() 277 pCfg->iSpatialLayerNum); in ParamValidation() 303 if (pCfg->iSpatialLayerNum > 1) { in ParamValidation() 304 for (i = pCfg->iSpatialLayerNum - 1; i > 0; i--) { in ParamValidation() 325 for (i = 0; i < pCfg->iSpatialLayerNum; ++ i) { in ParamValidation() 357 for (i = 0; i < pCfg->iSpatialLayerNum; ++ i) { in ParamValidation() 421 if (pCodingParam->iSpatialLayerNum < 1 || pCodingParam->iSpatialLayerNum > MAX_DEPENDENCY_LAYER) { in ParamValidationExt() 423 pCodingParam->iSpatialLayerNum); in ParamValidationExt() 467 if (pCodingParam->iSpatialLayerNum > 1 && (!pCodingParam->bSimulcastAVC) in ParamValidationExt() 471 pCodingParam->eSpsPpsIdStrategy, pCodingParam->iSpatialLayerNum); in ParamValidationExt() [all …]
|
D | wels_preprocess.cpp | 169 const int32_t kiDlayerCount = pParam->iSpatialLayerNum; in AllocSpatialPictures() 203 while (j < pCtx->pSvcParam->iSpatialLayerNum) { in FreeSpatialPictures() 349 int8_t iDependencyId = pSvcParam->iSpatialLayerNum - 1; in SingleLayerPreprocess() 418 for (int32_t i = 0; i < pSvcParam->iSpatialLayerNum; i++) { in SingleLayerPreprocess() 443 if (pSvcParam->iSpatialLayerNum > 1) { in SingleLayerPreprocess() 485 …const int32_t kiDstPicWidth = pParam->sDependencyLayers[pParam->iSpatialLayerNum - 1].iActualWi… in JudgeNeedOfScaling() 486 …const int32_t kiDstPicHeight = pParam->sDependencyLayers[pParam->iSpatialLayerNum - 1].iActualHe… in JudgeNeedOfScaling() 489 int32_t iSpatialIdx = pParam->iSpatialLayerNum - 1; in JudgeNeedOfScaling() 548 const int32_t kiDlayerCount = pParam->iSpatialLayerNum; in InitLastSpatialPictures() 1096 const int32_t iTargetDid = pSvcParam->iSpatialLayerNum - 1; in DetectSceneChange() [all …]
|
D | encoder.cpp | 226 pParam->bSimulcastAVC, pParam->iSpatialLayerNum); in InitFunctionPointers() 341 (kiSpatialNum < pSvcParam->iSpatialLayerNum)) { in DecideFrameType() 378 (kiSpatialNum < pSvcParam->iSpatialLayerNum) in DecideFrameType()
|
D | paraset_strategy.cpp | 449 if (pCodingParam->iSpatialLayerNum > 1 && (!pCodingParam->bSimulcastAVC)) { in CheckParamCompatibility() 452 pCodingParam->eSpsPpsIdStrategy, pCodingParam->iSpatialLayerNum); in CheckParamCompatibility()
|
D | ref_list_mgr_svc.cpp | 520 for (int32_t iDid = 0; iDid < pCtx->pSvcParam->iSpatialLayerNum; iDid++) { in FilterLTRRecoveryRequest() 527 if ((iLayerId < 0) || (iLayerId >= pCtx->pSvcParam->iSpatialLayerNum)) in FilterLTRRecoveryRequest() 565 if ((iLayerId < 0) || (iLayerId >= pCtx->pSvcParam->iSpatialLayerNum)) { in FilterLTRMarkingFeedback()
|
D | au_set.cpp | 154 for (i = 0; i < pParam->iSpatialLayerNum; ++ i) { in WelsCheckRefFrameLimitationLevelIdcFirst()
|
D | slice_multi_threading.cpp | 268 iNumSpatialLayers = pPara->iSpatialLayerNum; in RequestMtResource()
|
D | svc_encode_slice.cpp | 713 const bool kbHighestSpatial = pEncCtx->pSvcParam->iSpatialLayerNum == in WelsCodePSlice() 732 const bool kbHighestSpatial = pEncCtx->pSvcParam->iSpatialLayerNum == in WelsCodePOverDynamicSlice() 1550 iCountNals += kiMaxSliceNumOld * (pCtx->pSvcParam->iSpatialLayerNum + pCtx->bNeedPrefixNalFlag); in FrameBsRealloc()
|
/third_party/openh264/codec/api/svc/ |
D | codec_app_def.h | 551 …int iSpatialLayerNum; ///< spatial layer number,1<= iSpatialLayerNum <= MAX_SPATIAL… member
|
/third_party/ffmpeg/libavcodec/ |
D | libopenh264enc.c | 179 param.iSpatialLayerNum = 1; in svc_encode_init()
|