/third_party/openh264/codec/processing/src/scrolldetection/ |
D | ScrollDetectionFuncs.cpp | 118 …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/ |
D | ComplexityAnalysis.cpp | 127 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/ |
D | macros.h | 94 #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/ |
D | util.h | 73 #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/ |
D | BackgroundDetection.cpp | 150 …pBgdOU->iMinSubMad = WELS_MIN (WELS_MIN (iSubMAD[0], iSubMAD[1]), WELS_MIN (iSubMAD[2], iSubMAD[3]… in GetOUParameters() 154 … WELS_MIN (WELS_MIN (iSubSD[0], iSubSD[1]), WELS_MIN (iSubSD[2], iSubSD[3])); in GetOUParameters()
|
/third_party/openh264/codec/encoder/core/src/ |
D | svc_set_mb_syn_cabac.cpp | 307 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()
|
D | slice_multi_threading.cpp | 339 …int32_t iThreadBufferNum = WELS_MIN ((*ppCtx)->pTaskManage->GetThreadPoolThreadNum(), MAX_THREADS_… in RequestMtResource()
|
D | encoder_ext.cpp | 731 …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()
|
D | svc_motion_estimate.cpp | 953 …const int32_t iSearchTimes = WELS_MIN (sFeatureSearchIn.pTimesOfFeature[iFeatureOfRef], kuiExpecte… in FeatureSearchOne()
|
D | svc_base_layer_md.cpp | 254 iBestMode = WELS_MIN (iLeftMode, iTopMode); in PredIntra4x4Mode()
|
/third_party/openh264/codec/encoder/core/inc/ |
D | svc_motion_estimate.h | 341 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/ |
D | error_concealment.cpp | 244 iFullMVx = WELS_MIN (((iPicWidthRightLimit - 16) * (1 << 2)), iFullMVx); in DoMbECMvCopy() 251 iFullMVy = WELS_MIN (((iPicHeightBottomLimit - 16) * (1 << 2)), iFullMVy); in DoMbECMvCopy()
|
D | parse_mb_syn_cabac.cpp | 901 …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()
|
D | parse_mb_syn_cavlc.cpp | 552 iBestMode = WELS_MIN (iLeftMode, iTopMode); in PredIntra4x4Mode() 1547 …const int32_t ref0Count = WELS_MIN (pSliceHeader->uiRefCount[LIST_0], pCtx->sRefPic.uiRefCount[LIS… in ParseInterBInfo()
|
D | manage_dec_ref.cpp | 574 …pCtx->sRefPic.uiRefCount[listIdx] = (uint8_t)WELS_MIN (WELS_MAX (iCount, pCtx->sRefPic.uiRefCount[… in WelsReorderRefList2()
|
D | rec_mb.cpp | 268 const int32_t down_line = WELS_MIN (offset >> 4, int32_t (pCtx->sMb.iMbHeight) - 1); in BaseMC()
|
D | mv_pred.cpp | 631 …const int32_t ref0Count = WELS_MIN (pSliceHeader->uiRefCount[LIST_0], pCtx->sRefPic.uiRefCount[LIS… in PredBDirectTemporal()
|
D | decoder_core.cpp | 292 return WELS_MIN (uiTargetDqId, uiRequiredDqId); in GetTargetDqId() 714 iNewLen = WELS_MIN (iNewLen, MAX_MB_SIZE + 2); in ExpandBsLenBuffer()
|
/third_party/openh264/test/encoder/ |
D | EncUT_SliceBufferReallocate.cpp | 103 int32_t iMaxSliceNumEstimation = WELS_MIN (AVERSLICENUM_CONSTRAINT, in InitParamForSizeLimitSlcMode()
|
/third_party/openh264/codec/console/enc/src/ |
D | welsenc.cpp | 374 const int8_t kiActualLayerNum = WELS_MIN (pSvcParam.iSpatialLayerNum, iLayerCount); in ParseConfig()
|