Home
last modified time | relevance | path

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

/third_party/openh264/codec/processing/src/backgrounddetection/
DBackgroundDetection.cpp149 pBgdOU->iMAD = WELS_MAX (WELS_MAX (iSubMAD[0], iSubMAD[1]), WELS_MAX (iSubMAD[2], iSubMAD[3])); in GetOUParameters()
153 …pBgdOU->iMaxDiffSubSd = WELS_MAX (WELS_MAX (iSubSD[0], iSubSD[1]), WELS_MAX (iSubSD[2], iSubSD[3])… in GetOUParameters()
217 …iMaxNbrForegroundMad = WELS_MAX (WELS_MAX (aForegroundMad[0], aForegroundMad[1]), WELS_MAX (aForeg… in ForegroundDilation23Luma()
224 …iMaxNbrBackgroundMad = WELS_MAX (WELS_MAX (aBackgroundMad[0], aBackgroundMad[1]), WELS_MAX (aBackg… in ForegroundDilation23Luma()
/third_party/openh264/codec/common/inc/
Dmacros.h90 #ifndef WELS_MAX
91 #define WELS_MAX(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);
101 #ifndef WELS_MAX
102 #define WELS_MAX(x, y) ((x) - (((x)-(y))&(((x)-(y))>>31))) macro
/third_party/openh264/codec/processing/src/common/
Dutil.h72 #define WELS_MAX(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/scrolldetection/
DScrollDetectionFuncs.cpp117 int32_t iMinHeight = WELS_MAX (iOffsetY, 0); in ScrollDetectionCore()
133 iMaxAbs = WELS_MIN (WELS_MAX (iTestPos - iMinHeight - 1, iMaxHeight - iTestPos), MAX_SCROLL_MV_Y); in ScrollDetectionCore()
/third_party/openh264/codec/decoder/core/src/
Ddecode_slice.cpp751 …iScanIdxEnd - WELS_MAX (iScanIdxStart, 1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), I16_… in WelsDecodeMbCabacISliceBaseMode0()
822 …iScanIdxEnd - WELS_MAX (iScanIdxStart, 1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), iMbR… in WelsDecodeMbCabacISliceBaseMode0()
986 …seResidualBlockCabac (pNeighAvail, pNonZeroCount, pBsAux, i, iScanIdxEnd - WELS_MAX (iScanIdxStart, in WelsDecodeMbCabacPSliceBaseMode0()
987 …1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), I16_LUMA_AC, pCurDqLayer->pScaledTCoeff[iMb… in WelsDecodeMbCabacPSliceBaseMode0()
1066 … iScanIdxEnd - WELS_MAX (iScanIdxStart, 1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), in WelsDecodeMbCabacPSliceBaseMode0()
1227 …seResidualBlockCabac (pNeighAvail, pNonZeroCount, pBsAux, i, iScanIdxEnd - WELS_MAX (iScanIdxStart, in WelsDecodeMbCabacBSliceBaseMode0()
1228 …1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), I16_LUMA_AC, pCurDqLayer->pScaledTCoeff[iMb… in WelsDecodeMbCabacBSliceBaseMode0()
1307 … iScanIdxEnd - WELS_MAX (iScanIdxStart, 1) + 1, g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), in WelsDecodeMbCabacBSliceBaseMode0()
1969 …WelsResidualBlockCavlc (pVlcTable, pNonZeroCount, pBs, i, iScanIdxEnd - WELS_MAX (iScanIdxStart, 1… in WelsActualDecodeMbCavlcISlice()
1970 …g_kuiZigzagScan + WELS_MAX (iScanIdxStart, 1), I16_LUMA_AC, pCurDqLayer->pScaledTCoeff[iMbXy] + (i… in WelsActualDecodeMbCavlcISlice()
[all …]
Dmanage_dec_ref.cpp572 for (i = WELS_MAX (1, WELS_MAX (iCount, pCtx->sRefPic.uiRefCount[listIdx])); i < iRefCount; i++) in WelsReorderRefList2()
574 …pCtx->sRefPic.uiRefCount[listIdx] = (uint8_t)WELS_MIN (WELS_MAX (iCount, pCtx->sRefPic.uiRefCount[… in WelsReorderRefList2()
645 …if (pRefPic->uiLongRefCount[LIST_0] + pRefPic->uiShortRefCount[LIST_0] >= WELS_MAX (1, pCtx->pSps-… in WelsMarkAsRef()
740 …if (pRefPic->uiLongRefCount[LIST_0] + pRefPic->uiShortRefCount[LIST_0] >= WELS_MAX (1, pCtx->pSps-… in MMCOProcess()
Derror_concealment.cpp241 iFullMVx = WELS_MAX (iPicWidthLeftLimit, iFullMVx); in DoMbECMvCopy()
248 iFullMVy = WELS_MAX (iPicHeightTopLimit, iFullMVy); in DoMbECMvCopy()
Ddecoder_core.cpp652 …int32_t iNewBuffLen = WELS_MAX ((kiSrcLen * MAX_BUFFERED_NUM), (pCtx->iMaxBsBufferSizeInByte << iE… in ExpandBsBuffer()
/third_party/openh264/codec/encoder/core/inc/
Dsvc_motion_estimate.h339 pMvMin->iMvX = WELS_MAX (-1 * ((kiMbX + 1) * (1 << 4)) + INTPEL_NEEDED_MARGIN, -1 * kiMaxMvRange); in SetMvWithinIntegerMvRange()
340 pMvMin->iMvY = WELS_MAX (-1 * ((kiMbY + 1) * (1 << 4)) + INTPEL_NEEDED_MARGIN, -1 * kiMaxMvRange); in SetMvWithinIntegerMvRange()
/third_party/openh264/codec/console/enc/src/
Dwelsenc.cpp848 sSvcParam.iPicWidth = WELS_MAX (sSvcParam.iPicWidth, pDLayer->iVideoWidth); in ProcessEncoding()
849 sSvcParam.iPicHeight = WELS_MAX (sSvcParam.iPicHeight, pDLayer->iVideoHeight); in ProcessEncoding()
918 iTotalFrameMax = WELS_MAX ((int32_t) (i_size / kiPicResSize), iTotalFrameMax); in ProcessEncoding()
924 iTotalFrameMax = WELS_MAX ((int32_t) (i_size / kiPicResSize), iTotalFrameMax); in ProcessEncoding()
931 iTotalFrameMax = WELS_MAX ((int32_t) (i_size / kiPicResSize), iTotalFrameMax); in ProcessEncoding()
/third_party/openh264/codec/encoder/core/src/
Dratectl.cpp818 …const int32_t iPredSkipFramesMaxBr = (WELS_MAX (WELS_DIV_ROUND (pWelsSvcRc->iBufferMaxBRFullness[E… in CheckFrameSkipBasedMaxbr()
865 pWelsSvcRc->iBufferFullnessSkip = WELS_MAX (pWelsSvcRc->iBufferFullnessSkip, 0); in CheckFrameSkipBasedMaxbr()
950 pWelsSvcRc->iBufferFullnessSkip = WELS_MAX (pWelsSvcRc->iBufferFullnessSkip, 0); in UpdateBufferWhenFrameSkipped()
1352 iTargetBits = WELS_MAX (1, iTargetBits); in WelRcPictureInitScc()
1404 pWelsSvcRc->iBufferFullnessSkip = WELS_MAX (0, pWelsSvcRc->iBufferFullnessSkip); in WelsRcDropFrameUpdate()
1444 iSentBits = WELS_MAX (iSentBits, 0); in WelsRcFrameDelayJudgeTimeStamp()
1452 pWelsSvcRc->iBufferFullnessSkip = WELS_MAX ((-1) * (pDLayerConfig->iSpatialBitrate / 4), in WelsRcFrameDelayJudgeTimeStamp()
Dau_set.cpp104 ? (WELS_MAX (1, WELS_LOG2 (pParam->uiGopSize))) in WelsCheckNumRefSetting()
105 : (WELS_MAX (1, (pParam->uiGopSize >> 1)))); in WelsCheckNumRefSetting()
Dwels_preprocess.cpp177 …const uint8_t kuiLayerInTemporal = 2 + WELS_MAX (pParam->sDependencyLayers[iDlayerIndex].iHighestT… in AllocSpatialPictures()
503 pScaledPicture->iScaledWidth[iSpatialIdx] = WELS_MAX (iCurDstWidth, 4); in JudgeNeedOfScaling()
504 …pScaledPicture->iScaledHeight[iSpatialIdx] = WELS_MAX (iInputHeightXDstWidth / kiInputPicWidth, 4); in JudgeNeedOfScaling()
506 …pScaledPicture->iScaledWidth[iSpatialIdx] = WELS_MAX (iInputWidthXDstHeight / kiInputPicHeight, 4); in JudgeNeedOfScaling()
507 pScaledPicture->iScaledHeight[iSpatialIdx] = WELS_MAX (iCurDstHeight, 4); in JudgeNeedOfScaling()
Dencoder_ext.cpp1601 (*ppCtx)->iMaxSliceCount = WELS_MAX ((*ppCtx)->iMaxSliceCount, (int) uiMaxSliceNumEstimation); in RequestMemorySvc()
1602 iSliceBufferSize = (WELS_MAX (pSliceArgument->uiSliceSizeConstraint, in RequestMemorySvc()
1605 … (*ppCtx)->iMaxSliceCount = WELS_MAX ((*ppCtx)->iMaxSliceCount, (int) pSliceArgument->uiSliceNum); in RequestMemorySvc()
1608 iMaxSliceBufferSize = WELS_MAX (iMaxSliceBufferSize, iSliceBufferSize); in RequestMemorySvc()
4466 iNumRefFrame = WELS_MAX (1, WELS_LOG2 (uiGopSize)) + sConfig.iLTRRefNum; in WelsEncoderApplyLTR()
4469 iNumRefFrame = WELS_MAX (1, uiGopSize >> 1); in WelsEncoderApplyLTR()
Dsvc_motion_estimate.cpp705 …pScreenBlockFeatureStorage->pFeatureValuePointerList = (uint16_t**)pMa->WelsMallocz (WELS_MAX (LIS… in RequestScreenBlockFeatureStorage()
Dref_list_mgr_svc.cpp917 iMaxActualLtrIdx = pCtx->pSvcParam->iNumRefFrame - STR_ROOM - 1 - WELS_MAX (iMaxTid , 1); in WelsMarkPicScreen()
/third_party/openh264/codec/encoder/plus/src/
DwelsEncoderExt.cpp306 pCfg->iNumRefFrame = WELS_MAX (1, WELS_LOG2 (pCfg->uiGopSize)) + pCfg->iLTRRefNum; in InitializeInternal()
310 pCfg->iNumRefFrame = WELS_MAX (1, pCfg->uiGopSize >> 1); in InitializeInternal()
617 iMaxInputFrame = WELS_MAX (pStatistics->uiInputFrameCount, iMaxInputFrame); in UpdateStatistics()
631 iMaxFrameRate = WELS_MAX (iMaxFrameRate, pStatistics->fAverageFrameRate); in UpdateStatistics()
/third_party/openh264/test/encoder/
DEncUT_SliceBufferReallocate.cpp105 pCtx->iMaxSliceCount = WELS_MAX (pCtx->iMaxSliceCount, iMaxSliceNumEstimation); in InitParamForSizeLimitSlcMode()
106 iSliceBufferSize = (WELS_MAX ((int32_t)pSliceArgument->uiSliceSizeConstraint, in InitParamForSizeLimitSlcMode()
351 pCtx->iMaxSliceCount = WELS_MAX (pCtx->iMaxSliceCount, (int)pSliceArgument->uiSliceNum); in InitLayerSliceBuffer()
/third_party/openh264/test/common/
DExpandPicture.cpp170 iPicWidth = WELS_MAX (iPicWidth, 16); in TEST()
/third_party/openh264/test/api/
Dencode_options_test.cpp1416 …int iNalIdx = WELS_MAX (pLayerBsInfo->iNalCount - 2, 0); // ignore last slice under single slice m… in TEST_P()