Home
last modified time | relevance | path

Searched refs:WELS_MIN (Results 1 – 20 of 20) sorted by relevance

/third_party/openh264/codec/processing/src/scrolldetection/
DScrollDetectionFuncs.cpp118 …int32_t iMaxHeight = WELS_MIN (iOffsetY + iHeight - 1, iPicHeight - 1) ; //offset_y + height - 1;// in ScrollDetectionCore()
133 iMaxAbs = WELS_MIN (WELS_MAX (iTestPos - iMinHeight - 1, iMaxHeight - iTestPos), MAX_SCROLL_MV_Y); in ScrollDetectionCore()
142 int32_t iLowOffset = WELS_MIN (iMaxHeight - iSearchPos, CHECK_OFFSET); in ScrollDetectionCore()
145 iCheckedLines = WELS_MIN (iTestPos - iMinHeight + iLowOffset, 2 * CHECK_OFFSET); in ScrollDetectionCore()
169 int32_t iUpOffset = WELS_MIN (iSearchPos - iMinHeight, CHECK_OFFSET); in ScrollDetectionCore()
174 iCheckedLines = WELS_MIN (iMaxHeight - iTestPos + iUpOffset, 2 * CHECK_OFFSET); in ScrollDetectionCore()
/third_party/openh264/codec/processing/src/complexityanalysis/
DComplexityAnalysis.cpp127 iGomMbEndIndex = WELS_MIN ((j + 1) * iMbNumInGom, iMbNum); in GetFrameSadExcludeBackground()
197 iGomMbEndIndex = WELS_MIN ((j + 1) * iMbNumInGom, iMbNum); in AnalyzeGomComplexityViaSad()
201 iMbEndIndex = WELS_MIN ((iMbStartIndex / iMbWidth + 1) * iMbWidth, iGomMbEndIndex); in AnalyzeGomComplexityViaSad()
210 iMbEndIndex = WELS_MIN (iMbEndIndex + iMbWidth , iGomMbEndIndex); in AnalyzeGomComplexityViaSad()
245 iGomMbEndIndex = WELS_MIN ((j + 1) * iMbNumInGom, iMbNum); in AnalyzeGomComplexityViaVar()
249 iMbEndIndex = WELS_MIN ((iMbStartIndex / iMbWidth + 1) * iMbWidth, iGomMbEndIndex); in AnalyzeGomComplexityViaVar()
260 iMbEndIndex = WELS_MIN (iMbEndIndex + iMbWidth, iGomMbEndIndex); in AnalyzeGomComplexityViaVar()
388 iGomSad += WELS_MIN (iBlockSadH, iBlockSadV); in GomComplexityAnalysisIntra()
471 iGomSad += WELS_MIN (WELS_MIN (iBlockSadH, iBlockSadV), iInterSad); in GomComplexityAnalysisInter()
/third_party/openh264/codec/common/inc/
Dmacros.h94 #ifndef WELS_MIN
95 #define WELS_MIN(x, y) ((x) < (y) ? (x) : (y)) macro
98 #define WELS_MIN_POSITIVE(x, y) (x >= 0 && y >= 0) ? WELS_MIN(x, y) : WELS_MAX(x, y);
105 #ifndef WELS_MIN
106 #define WELS_MIN(x, y) ((y) + (((x)-(y))&(((x)-(y))>>31))) macro
/third_party/openh264/codec/processing/src/common/
Dutil.h73 #define WELS_MIN(x, y) ((x) < (y) ? (x) : (y)) macro
83 #define WELS_CLAMP(x, minv, maxv) WELS_MIN(WELS_MAX(x, minv), maxv)
/third_party/openh264/codec/processing/src/backgrounddetection/
DBackgroundDetection.cpp150 …pBgdOU->iMinSubMad = WELS_MIN (WELS_MIN (iSubMAD[0], iSubMAD[1]), WELS_MIN (iSubMAD[2], iSubMAD[3]… in GetOUParameters()
154WELS_MIN (WELS_MIN (iSubSD[0], iSubSD[1]), WELS_MIN (iSubSD[2], iSubSD[3])); in GetOUParameters()
/third_party/openh264/codec/encoder/core/src/
Dsvc_set_mb_syn_cabac.cpp307 int32_t iPrefix = WELS_MIN (iAbsMvd, 9); in WelsCabacMbMvdLx()
498 iPrefix = WELS_MIN (iPrefix, 14); in WelsWriteBlockResidualCabac()
499 iCtx = WELS_MIN (iCtxLevel + 4, iCtx1); in WelsWriteBlockResidualCabac()
502 iCtx = iCtxLevel + 4 + WELS_MIN (5 - (eCtxBlockCat == CHROMA_DC), iNumAbsLevelGt1); in WelsWriteBlockResidualCabac()
511 iCtx = WELS_MIN (iCtxLevel + 4, iCtx1); in WelsWriteBlockResidualCabac()
Dslice_multi_threading.cpp339 …int32_t iThreadBufferNum = WELS_MIN ((*ppCtx)->pTaskManage->GetThreadPoolThreadNum(), MAX_THREADS_… in RequestMtResource()
Dencoder_ext.cpp731 …pLayerParam->iMaxSpatialBitrate = WELS_MIN ((int) (pLayerParam->iSpatialBitrate * (1 + iRang / 100… in WelsEncoderApplyBitVaryRang()
1525 iMvRange = WELS_MIN (WELS_ABS (iMinMv), iMaxMv); in GetMvMvdRange()
1527 iMvRange = WELS_MIN (iMvRange, iFixMvRange); in GetMvMvdRange()
1531 iMvdRange = WELS_MIN (iMvdRange, iFixMvdRange); in GetMvMvdRange()
1599 uiMaxSliceNumEstimation = WELS_MIN (AVERSLICENUM_CONSTRAINT, in RequestMemorySvc()
1615 iMaxSliceBufferSize = WELS_MIN (iMaxSliceBufferSize, iTargetSpatialBsSize); in RequestMemorySvc()
2051 pCodingParam->iMultipleThreadIdc = WELS_MIN (kiCpuCores, iMaxSliceCount); in InitSliceSettings()
Dsvc_motion_estimate.cpp953 …const int32_t iSearchTimes = WELS_MIN (sFeatureSearchIn.pTimesOfFeature[iFeatureOfRef], kuiExpecte… in FeatureSearchOne()
Dsvc_base_layer_md.cpp254 iBestMode = WELS_MIN (iLeftMode, iTopMode); in PredIntra4x4Mode()
/third_party/openh264/codec/encoder/core/inc/
Dsvc_motion_estimate.h341 pMvMax->iMvX = WELS_MIN (((kiMbWidth - kiMbX) * (1 << 4)) - INTPEL_NEEDED_MARGIN, kiMaxMvRange); in SetMvWithinIntegerMvRange()
342 pMvMax->iMvY = WELS_MIN (((kiMbHeight - kiMbY) * (1 << 4)) - INTPEL_NEEDED_MARGIN, kiMaxMvRange); in SetMvWithinIntegerMvRange()
/third_party/openh264/codec/decoder/core/src/
Derror_concealment.cpp244 iFullMVx = WELS_MIN (((iPicWidthRightLimit - 16) * (1 << 2)), iFullMVx); in DoMbECMvCopy()
251 iFullMVy = WELS_MIN (((iPicHeightBottomLimit - 16) * (1 << 2)), iFullMVy); in DoMbECMvCopy()
Dparse_mb_syn_cabac.cpp901 …const int32_t ref0Count = WELS_MIN (pSliceHeader->uiRefCount[LIST_0], pCtx->sRefPic.uiRefCount[LIS… in ParseInterBMotionInfoCabac()
1384 c2 = WELS_MIN (c2, iMaxType); in ParseSignificantCoeffCabac()
1388 c1 = WELS_MIN (c1, 4); in ParseSignificantCoeffCabac()
Dparse_mb_syn_cavlc.cpp552 iBestMode = WELS_MIN (iLeftMode, iTopMode); in PredIntra4x4Mode()
1547 …const int32_t ref0Count = WELS_MIN (pSliceHeader->uiRefCount[LIST_0], pCtx->sRefPic.uiRefCount[LIS… in ParseInterBInfo()
Dmanage_dec_ref.cpp574 …pCtx->sRefPic.uiRefCount[listIdx] = (uint8_t)WELS_MIN (WELS_MAX (iCount, pCtx->sRefPic.uiRefCount[… in WelsReorderRefList2()
Drec_mb.cpp268 const int32_t down_line = WELS_MIN (offset >> 4, int32_t (pCtx->sMb.iMbHeight) - 1); in BaseMC()
Dmv_pred.cpp631 …const int32_t ref0Count = WELS_MIN (pSliceHeader->uiRefCount[LIST_0], pCtx->sRefPic.uiRefCount[LIS… in PredBDirectTemporal()
Ddecoder_core.cpp292 return WELS_MIN (uiTargetDqId, uiRequiredDqId); in GetTargetDqId()
714 iNewLen = WELS_MIN (iNewLen, MAX_MB_SIZE + 2); in ExpandBsLenBuffer()
/third_party/openh264/test/encoder/
DEncUT_SliceBufferReallocate.cpp103 int32_t iMaxSliceNumEstimation = WELS_MIN (AVERSLICENUM_CONSTRAINT, in InitParamForSizeLimitSlcMode()
/third_party/openh264/codec/console/enc/src/
Dwelsenc.cpp374 const int8_t kiActualLayerNum = WELS_MIN (pSvcParam.iSpatialLayerNum, iLayerCount); in ParseConfig()