Lines Matching refs:MinMax

42 #define GAMMA( _def_cVal, _def_InvGamma )	((sal_uInt8)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGa…
47 nBErr = MinMax( nTemp, 0, 255 ); \
50 nGErr = MinMax( nTemp, 0, 255 ); \
53 nRErr = MinMax( nTemp, 0, 255 ); \
1213 pLutInt[ nX ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate()
1297 pLutInt[ nY ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate()
1415 … pMapFX[ nX ] = (long) ( ( fTemp - ( pMapIX[ nX ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
1426 … pMapFY[ nY ] = (long) ( ( fTemp - ( pMapIY[ nY ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
2222 const sal_uInt32 aPixelIndex(MinMax(j, 0, aSourceSize - 1)); in ImplCalculateContributions()
2301 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueRed / aSum), 0, 255)), in ImplScaleConvolutionHor()
2302 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueGreen / aSum), 0, 255)), in ImplScaleConvolutionHor()
2303 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueBlue / aSum), 0, 255))); in ImplScaleConvolutionHor()
2392 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueRed / aSum), 0, 255)), in ImplScaleConvolutionVer()
2393 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueGreen / aSum), 0, 255)), in ImplScaleConvolutionVer()
2394 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueBlue / aSum), 0, 255))); in ImplScaleConvolutionVer()
3388 fM = 128.0 / ( 128.0 - 1.27 * MinMax( nContrastPercent, 0L, 100L ) ); in Adjust()
3390 fM = ( 128.0 + 1.27 * MinMax( nContrastPercent, -100L, 0L ) ) / 128.0; in Adjust()
3393 fOff = MinMax( nLuminancePercent, -100L, 100L ) * 2.55 + 128.0 - fM * 128.0; in Adjust()
3407 cMapR[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fROff ), 0L, 255L ); in Adjust()
3408 cMapG[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fGOff ), 0L, 255L ); in Adjust()
3409 cMapB[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fBOff ), 0L, 255L ); in Adjust()