Home
last modified time | relevance | path

Searched refs:WELS_CLIP3 (Results 1 – 21 of 21) sorted by relevance

/third_party/openh264/codec/encoder/core/inc/
Dparam_svc.h233 fMaxFrameRate = WELS_CLIP3 (pCodingParam.fMaxFrameRate, MIN_FRAME_RATE, MAX_FRAME_RATE); in ParamBaseTranscode()
256 sSpatialLayers[iIdxSpatial].fFrameRate = WELS_CLIP3 (pCodingParam.fMaxFrameRate, in ParamBaseTranscode()
259 pDlp->fOutputFrameRate = WELS_CLIP3 (sSpatialLayers[iIdxSpatial].fFrameRate, MIN_FRAME_RATE, in ParamBaseTranscode()
290 …float fParamMaxFrameRate = WELS_CLIP3 (pCodingParam.fMaxFrameRate, MIN_FRAME_RATE, MAX_FRAME_RATE); in ParamTranscode()
354 iSpatialLayerNum = (int8_t)WELS_CLIP3 (pCodingParam.iSpatialLayerNum, 1, in ParamTranscode()
356 iTemporalLayerNum = (int8_t)WELS_CLIP3 (pCodingParam.iTemporalLayerNum, 1, in ParamTranscode()
401 float fLayerFrameRate = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].fFrameRate, in ParamTranscode()
405 pDlp->fOutputFrameRate = WELS_CLIP3 (fLayerFrameRate, MIN_FRAME_RATE, fParamMaxFrameRate); in ParamTranscode()
410 … pSpatialLayer->iVideoWidth = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoWidth, 0, in ParamTranscode()
412 …pSpatialLayer->iVideoHeight = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoHeight, 0, in ParamTranscode()
/third_party/openh264/test/encoder/
DEncUT_Reconstruct.cpp34 pDct[i] = WELS_CLIP3 (pDct[i], -4080, 4080); in TEST()
77 pDct[i + j * 16] = WELS_CLIP3 (pDct[i + j * 16], -4080, 4080); in TEST()
251 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
281 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
310 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
337 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
363 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
390 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
417 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -32000, 32000); in TEST()
445 pInput[0][i] = WELS_CLIP3 (pInput[0][i], -4080, 4080); in TEST()
[all …]
DEncUT_EncoderExt.cpp208 fFrameRate = WELS_CLIP3 (fFrameRate, 1, 60); in TEST_F()
234 EXPECT_EQ (WELS_CLIP3 (sInfo.iBitrate, 1, 2147483647), sReturn.iBitrate); in TEST_F()
256 EXPECT_EQ (WELS_CLIP3 (sInfo.iBitrate, 1, 2147483647), sReturn.iBitrate); in TEST_F()
483 pEncParamBase->iTargetBitrate = WELS_CLIP3 (pEncParamBase->iTargetBitrate, in GetValidEncParamBase()
645 sEncParamExt.iSpatialLayerNum = WELS_CLIP3 (iSpatialLayerNum, 1, MAX_SPATIAL_LAYER_NUM); in TEST_F()
678 iLayerNum = WELS_CLIP3 (iSpatialLayerNum, 0, sEncParamExt.iSpatialLayerNum - 1); in TEST_F()
736 sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate, in TEST_F()
1131 pParamExt->iSpatialLayerNum = WELS_CLIP3 (pParamExt->iSpatialLayerNum, 1, 4); in TEST_F()
1136 iMaxNalSize = WELS_CLIP3 (iMaxNalSize, 1000, 5000); in TEST_F()
1144 pParamExt->sSpatialLayers[i].iSpatialBitrate = WELS_CLIP3 (bitrate, 500000, 3000000) ; in TEST_F()
DEncUT_EncoderMbAux.cpp675 pLumaDc[i ] = WELS_CLIP3 ((s[0] + s[1] + 1) >> 1, -32768, 32767); in WelsHadamardT4DcAnchor()
676 pLumaDc[i + 8 ] = WELS_CLIP3 ((s[0] - s[1] + 1) >> 1, -32768, 32767); in WelsHadamardT4DcAnchor()
677 pLumaDc[i + 4 ] = WELS_CLIP3 ((s[3] + s[2] + 1) >> 1, -32768, 32767); in WelsHadamardT4DcAnchor()
678 pLumaDc[i + 12] = WELS_CLIP3 ((s[3] - s[2] + 1) >> 1, -32768, 32767); in WelsHadamardT4DcAnchor()
/third_party/openh264/codec/encoder/core/src/
Dratectl.cpp195 pTOverRc[n].iMinQp = WELS_CLIP3 (pTOverRc[n].iMinQp, 0, 51); in RcInitTlWeight()
197 pTOverRc[n].iMaxQp = WELS_CLIP3 (pTOverRc[n].iMaxQp, pTOverRc[n].iMinQp, 51); in RcInitTlWeight()
424 iMinQp = WELS_CLIP3 (iMinQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp); in RcCalculateIdrQp()
425 iMaxQp = WELS_CLIP3 (iMaxQp, pWelsSvcRc->iMinQp, pWelsSvcRc->iMaxQp); in RcCalculateIdrQp()
438 …iCmplxRatio = WELS_CLIP3 (iCmplxRatio, INT_MULTIPLY - FRAME_CMPLX_RATIO_RANGE, INT_MULTIPLY + FRAM… in RcCalculateIdrQp()
444 pWelsSvcRc->iInitialQp = WELS_CLIP3 (pWelsSvcRc->iInitialQp, iMinQp, iMaxQp); in RcCalculateIdrQp()
448 pWelsSvcRc->iMinFrameQp = WELS_CLIP3 (pEncCtx->iGlobalQp - DELTA_QP_BGD_THD, iMinQp, iMaxQp); in RcCalculateIdrQp()
449 pWelsSvcRc->iMaxFrameQp = WELS_CLIP3 (pEncCtx->iGlobalQp + DELTA_QP_BGD_THD, iMinQp, iMaxQp); in RcCalculateIdrQp()
482 …iCmplxRatio = WELS_CLIP3 (iCmplxRatio, INT_MULTIPLY - FRAME_CMPLX_RATIO_RANGE, INT_MULTIPLY + FRAM… in RcCalculatePictureQp()
500 …pWelsSvcRc->iMinFrameQp = WELS_CLIP3 (pWelsSvcRc->iLastCalculatedQScale - pWelsSvcRc->iFrameDelta… in RcCalculatePictureQp()
[all …]
Dencode_mb_aux.cpp303 pLumaDc[i ] = WELS_CLIP3 ((s[0] + s[1] + 1) >> 1, -32768, 32767); in WelsHadamardT4Dc_c()
304 pLumaDc[i + 8 ] = WELS_CLIP3 ((s[0] - s[1] + 1) >> 1, -32768, 32767); in WelsHadamardT4Dc_c()
305 pLumaDc[i + 4 ] = WELS_CLIP3 ((s[3] + s[2] + 1) >> 1, -32768, 32767); in WelsHadamardT4Dc_c()
306 pLumaDc[i + 12] = WELS_CLIP3 ((s[3] - s[2] + 1) >> 1, -32768, 32767); in WelsHadamardT4Dc_c()
Dset_mb_syn_cabac.cpp71 int32_t iPreCtxState = WELS_CLIP3 ((((m * iQp) >> 4) + n), 1, 126); in WelsCabacInit()
Dsvc_motion_estimate.cpp234 sMv.iMvX = WELS_CLIP3 ((2 + ksMvp.iMvX) >> 2, ksMvStartMin.iMvX, ksMvStartMax.iMvX); in WelsMotionEstimateInitialPoint()
235 sMv.iMvY = WELS_CLIP3 ((2 + ksMvp.iMvY) >> 2, ksMvStartMin.iMvY, ksMvStartMax.iMvY); in WelsMotionEstimateInitialPoint()
244 iMvc0 = WELS_CLIP3 ((2 + kpMvcList[i].iMvX) >> 2, ksMvStartMin.iMvX, ksMvStartMax.iMvX); in WelsMotionEstimateInitialPoint()
245 iMvc1 = WELS_CLIP3 ((2 + kpMvcList[i].iMvY) >> 2, ksMvStartMin.iMvY, ksMvStartMax.iMvY); in WelsMotionEstimateInitialPoint()
Dencoder_ext.cpp389 pCfg->iMinQp = WELS_CLIP3 (pCfg->iMinQp, GOM_MIN_QP_MODE, QP_MAX_VALUE); in ParamValidation()
390 pCfg->iMaxQp = WELS_CLIP3 (pCfg->iMaxQp, pCfg->iMinQp, QP_MAX_VALUE); in ParamValidation()
1618 pParam->iNumRefFrame = WELS_CLIP3 (pParam->iNumRefFrame, MIN_REF_PIC_COUNT, in RequestMemorySvc()
2224 …pCodingParam->iMultipleThreadIdc = WELS_CLIP3 (pCodingParam->iMultipleThreadIdc, 1, MAX_THREADS_NU… in GetMultipleThreadIdc()
4366 …pNewParam->iNumRefFrame = WELS_CLIP3 (pNewParam->iNumRefFrame, MIN_REF_PIC_COU… in WelsEncoderParamAdjust()
4369 … pNewParam->iLoopFilterDisableIdc = WELS_CLIP3 (pNewParam->iLoopFilterDisableIdc, 0, 6); in WelsEncoderParamAdjust()
4370 …pNewParam->iLoopFilterAlphaC0Offset = WELS_CLIP3 (pNewParam->iLoopFilterAlphaC0Offset, -6,… in WelsEncoderParamAdjust()
4371 …pNewParam->iLoopFilterBetaOffset = WELS_CLIP3 (pNewParam->iLoopFilterBetaOffset, -6, 6); in WelsEncoderParamAdjust()
4372 …pNewParam->fMaxFrameRate = WELS_CLIP3 (pNewParam->fMaxFrameRate, MIN_FRAME_RATE… in WelsEncoderParamAdjust()
4479 …iNumRefFrame = WELS_CLIP3 (iNumRefFrame, MIN_REF_PIC_COUNT, MAX_REFERENCE_PICTURE_COUNT_NUM_CAMERA… in WelsEncoderApplyLTR()
Dau_set.cpp108 iNeededRefNum = WELS_CLIP3 (iNeededRefNum, in WelsCheckNumRefSetting()
Dsvc_encode_slice.cpp298 BsWriteUE (pBs, WELS_CLIP3 (pSliceHeader->uiNumRefIdxL0Active - 1, 0, MAX_REF_PIC_COUNT)); in WelsSliceHeaderWrite()
367 BsWriteUE (pBs, WELS_CLIP3 (pSliceHeader->uiNumRefIdxL0Active - 1, 0, MAX_REF_PIC_COUNT)); in WelsSliceHeaderExtWrite()
/third_party/openh264/test/decoder/
DDecUT_DeblockCommon.cpp114 …pPix[iStrideX * -2] = WELS_CLIP3 (p[1] + WELS_CLIP3 (((p[2] + ((p[0] + q[0] + 1) >> 1) - (p[1] << … in anchor_DeblockingLumaNormal()
120 …pPix[iStrideX * 1] = WELS_CLIP3 (q[1] + WELS_CLIP3 (((q[2] + ((p[0] + q[0] + 1) >> 1) - (q[1] << 1… in anchor_DeblockingLumaNormal()
125 iDelta = WELS_CLIP3 (((((q[0] - p[0]) * (1 << 2)) + (p[1] - q[1]) + 4) >> 3), -1 * iTc, iTc); in anchor_DeblockingLumaNormal()
126 pPix[iStrideX * -1] = WELS_CLIP3 ((p[0] + iDelta), 0, 255); in anchor_DeblockingLumaNormal()
127 pPix[0] = WELS_CLIP3 ((q[0] - iDelta), 0, 255); in anchor_DeblockingLumaNormal()
197 iDelta = WELS_CLIP3 (((((q[0] - p[0]) * (1 << 2)) + (p[1] - q[1]) + 4) >> 3), -1 * iTc, iTc); in anchor_DeblockingChromaNormal()
198 pPixCb[iStrideX * -1] = WELS_CLIP3 ((p[0] + iDelta), 0, 255); in anchor_DeblockingChromaNormal()
199 pPixCb[iStrideX * 0 ] = WELS_CLIP3 ((q[0] - iDelta), 0, 255); in anchor_DeblockingChromaNormal()
212 iDelta = WELS_CLIP3 (((((q[0] - p[0]) * (1 << 2)) + (p[1] - q[1]) + 4) >> 3), -1 * iTc, iTc); in anchor_DeblockingChromaNormal()
213 pPixCr[iStrideX * -1] = WELS_CLIP3 ((p[0] + iDelta), 0, 255); in anchor_DeblockingChromaNormal()
[all …]
/third_party/openh264/codec/common/src/
Ddeblocking_common.cpp24 …pPix[-2 * iStrideX] = p1 + WELS_CLIP3 ((p2 + ((p0 + q0 + 1) >> 1) - (p1 * (1 << 1))) >> 1, -iTc0, … in DeblockLumaLt4_c()
28 …pPix[iStrideX] = q1 + WELS_CLIP3 ((q2 + ((p0 + q0 + 1) >> 1) - (q1 * (1 << 1))) >> 1, -iTc0, iTc0); in DeblockLumaLt4_c()
31 int32_t iDeta = WELS_CLIP3 ((((q0 - p0) * (1 << 2)) + (p1 - q1) + 4) >> 3, -iTc, iTc); in DeblockLumaLt4_c()
110 iDeta = WELS_CLIP3 ((((q0 - p0) * (1 << 2)) + (p1 - q1) + 4) >> 3, -iTc0, iTc0); in DeblockChromaLt4_c()
126 iDeta = WELS_CLIP3 ((((q0 - p0) * (1 << 2)) + (p1 - q1) + 4) >> 3, -iTc0, iTc0); in DeblockChromaLt4_c()
201 iDeta = WELS_CLIP3 ((((q0 - p0) * (1 << 2)) + (p1 - q1) + 4) >> 3, -iTc0, iTc0); in DeblockChromaLt42_c()
/third_party/openh264/codec/common/inc/
Dmacros.h203 #ifndef WELS_CLIP3
204 #define WELS_CLIP3(iX, iY, iZ) ((iX) < (iY) ? (iY) : ((iX) > (iZ) ? (iZ) : (iX))) macro
268 #define CLIP3_QP_0_51(q) WELS_CLIP3(q, 0, 51) // ((q) < (0) ? (0) : ((q) > (51) ? (51) : (q)))
/third_party/openh264/codec/decoder/core/src/
Drec_mb.cpp250 iFullMVx = WELS_CLIP3 (iFullMVx, ((-PADDING_LENGTH + 2) * (1 << 2)), in BaseMC()
252 iFullMVy = WELS_CLIP3 (iFullMVy, ((-PADDING_LENGTH + 2) * (1 << 2)), in BaseMC()
319 pMCRefMem->pDstY[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in WeightPrediction()
323 pMCRefMem->pDstY[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in WeightPrediction()
351 pDst[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in WeightPrediction()
355 pDst[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in WeightPrediction()
390 pMCRefMem->pDstY[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in BiWeightPrediction()
419 pDst[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in BiWeightPrediction()
436 pMCRefMem->pDstY[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in BiPrediction()
456 pDst[iPixel] = WELS_CLIP3 (iPredTemp, 0, 255); in BiPrediction()
Ddecode_slice.cpp725 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 ((pCurDqLayer->pLumaQp[iMbXy] + in WelsDecodeMbCabacISliceBaseMode0()
740 pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 ((pSlice->iLastMbQp + in WelsDecodeMbCabacISliceBaseMode0()
975 pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp + in WelsDecodeMbCabacPSliceBaseMode0()
1082 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pCurDqLayer->pLumaQp[iMbXy] + in WelsDecodeMbCabacPSliceBaseMode0()
1216 pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp + in WelsDecodeMbCabacBSliceBaseMode0()
1323 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pCurDqLayer->pLumaQp[iMbXy] + in WelsDecodeMbCabacBSliceBaseMode0()
1385 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pCurDqLayer->pLumaQp[iMbXy] + in WelsDecodeMbCabacPSlice()
1469 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pCurDqLayer->pLumaQp[iMbXy] + in WelsDecodeMbCabacBSlice()
1932 … pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pCurDqLayer->pLumaQp[iMbXy] + in WelsActualDecodeMbCavlcISlice()
1952 pCurDqLayer->pChromaQp[iMbXy][i] = g_kuiChromaQpTable[WELS_CLIP3 (pSlice->iLastMbQp + in WelsActualDecodeMbCavlcISlice()
[all …]
Dcabac_decoder.cpp43 int32_t iPreCtxState = WELS_CLIP3 ((((m * iQp) >> 4) + n), 1, 126); in WelsCabacGlobalInit()
Ddecoder_core.cpp426 const int32_t iTd = WELS_CLIP3 (iPoc1 - iPoc0, -128, 127); in CreateImplicitWeightTable()
428 int32_t iTb = WELS_CLIP3 (iPoc - iPoc0, -128, 127); in CreateImplicitWeightTable()
/third_party/openh264/codec/encoder/plus/src/
DwelsEncoderExt.cpp317 …pCfg->iNumRefFrame = WELS_CLIP3 (pCfg->iNumRefFrame, MIN_REF_PIC_COUNT, MAX_REFERENCE_PICTURE_COUN… in InitializeInternal()
327 pCfg->iLoopFilterAlphaC0Offset = WELS_CLIP3 (pCfg->iLoopFilterAlphaC0Offset, -6, 6); in InitializeInternal()
328 pCfg->iLoopFilterBetaOffset = WELS_CLIP3 (pCfg->iLoopFilterBetaOffset, -6, 6); in InitializeInternal()
852 m_pEncContext->pSvcParam->fMaxFrameRate = WELS_CLIP3 (iValue, MIN_FRAME_RATE, MAX_FRAME_RATE); in SetOption()
868 iBitrate = WELS_CLIP3 (iBitrate, MIN_BIT_RATE, MAX_BIT_RATE); in SetOption()
914 iBitrate = WELS_CLIP3 (iBitrate, MIN_BIT_RATE, MAX_BIT_RATE); in SetOption()
1181 m_pEncContext->pSvcParam->iBitsVaryPercentage = WELS_CLIP3 (iValue, 0, 100); in SetOption()
/third_party/openh264/test/api/
Dencode_options_test.cpp140 param_.iPicWidth = WELS_CLIP3 (param_.iPicWidth, 2, MAX_WIDTH); in ValidateParamExtCombination()
141 param_.iPicHeight = WELS_CLIP3 (param_.iPicHeight, 2, MAX_HEIGHT); in ValidateParamExtCombination()
142 param_.fMaxFrameRate = WELS_CLIP3 (param_.fMaxFrameRate, MIN_FRAME_RATE, MAX_FRAME_RATE); in ValidateParamExtCombination()
143 param_.iTemporalLayerNum = WELS_CLIP3 (param_.iTemporalLayerNum, 1, MAX_TEMPORAL_LAYER_NUM); in ValidateParamExtCombination()
146 param_.iSpatialLayerNum = WELS_CLIP3 (param_.iSpatialLayerNum, 1, MAX_SPATIAL_LAYER_NUM); in ValidateParamExtCombination()
157 param_.iNumRefFrame = WELS_CLIP3 (param_.iNumRefFrame, MIN_REF_PIC_COUNT, iRefUpperBound); in ValidateParamExtCombination()
185 …pSpatialLayer->iMaxSpatialBitrate = WELS_CLIP3 (pSpatialLayer->iMaxSpatialBitrate, 1, BIT_RATE_RA… in ValidateParamExtCombination()
186 …pSpatialLayer->iSpatialBitrate = WELS_CLIP3 (pSpatialLayer->iSpatialBitrate, 1, pSpatialLayer-… in ValidateParamExtCombination()
190 pSpatialLayer->sSliceArgument.uiSliceNum = WELS_CLIP3 (uiSliceNum, 1, MAX_SLICES_NUM); in ValidateParamExtCombination()
225 param_.iMaxQp = WELS_CLIP3 (param_.iMaxQp, MIN_QP, MAX_QP); in ValidateParamExtCombination()
[all …]
/third_party/openh264/codec/decoder/plus/src/
DwelsDecoderExt.cpp523 …iVal = WELS_CLIP3 (iVal, (int32_t)ERROR_CON_DISABLE, (int32_t)ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FR… in SetOption()