Home
last modified time | relevance | path

Searched refs:SkScalarPin (Results 1 – 18 of 18) sorted by relevance

/external/skqp/src/core/
DSkColor.cpp76 SkScalar s = SkScalarPin(hsv[1], 0, 1); in SkHSVToColor()
77 SkScalar v = SkScalarPin(hsv[2], 0, 1); in SkHSVToColor()
DSkGeometry.cpp772 SkScalar theta = SkScalarACos(SkScalarPin(R / SkScalarSqrt(Q3), -1, 1)); in solve_cubic_poly()
775 tValues[0] = SkScalarPin(neg2RootQ * SkScalarCos(theta/3) - adiv3, 0, 1); in solve_cubic_poly()
776 tValues[1] = SkScalarPin(neg2RootQ * SkScalarCos((theta + 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
777 tValues[2] = SkScalarPin(neg2RootQ * SkScalarCos((theta - 2*SK_ScalarPI)/3) - adiv3, 0, 1); in solve_cubic_poly()
792 tValues[0] = SkScalarPin(A - adiv3, 0, 1); in solve_cubic_poly()
DSkCubicMap.cpp166 x = SkScalarPin(x, 0, 1); in computeYFromX()
DSkDistanceFieldGen.cpp330 dist = SkScalarPin(-dist, -distanceMagnitude, distanceMagnitude * 127.0f / 128.0f); in pack_distance_field_val()
/external/skqp/gm/
Dwacky_yuv_formats.cpp244 uint8_t r = SkScalarPin(SkScalarRoundToInt( 1.0f * c + 1.402f * e ), in convert_yuva_to_rgba_jpeg()
246 uint8_t g = SkScalarPin(SkScalarRoundToInt( 1.0f * c - (0.344136f * d) - (0.714136f * e)), in convert_yuva_to_rgba_jpeg()
248 uint8_t b = SkScalarPin(SkScalarRoundToInt( 1.0f * c + 1.773f * d ), in convert_yuva_to_rgba_jpeg()
259 uint8_t r = SkScalarPin(SkScalarRoundToInt( 1.164f * c + 1.596f * e ), 0, 255); in convert_yuva_to_rgba_601()
260 uint8_t g = SkScalarPin(SkScalarRoundToInt( 1.164f * c - (0.391f * d) - (0.813f * e)), 0, 255); in convert_yuva_to_rgba_601()
261 uint8_t b = SkScalarPin(SkScalarRoundToInt( 1.164f * c + 2.018f * d ), 0, 255); in convert_yuva_to_rgba_601()
271 uint8_t r = SkScalarPin(SkScalarRoundToInt( 1.164f * c + 1.793f * e ), 0, 255); in convert_yuva_to_rgba_709()
272 uint8_t g = SkScalarPin(SkScalarRoundToInt( 1.164f * c - (0.213f * d) - (0.533f * e)), 0, 255); in convert_yuva_to_rgba_709()
273 uint8_t b = SkScalarPin(SkScalarRoundToInt( 1.164f * c + 2.112f * d ), 0, 255); in convert_yuva_to_rgba_709()
/external/skqp/src/gpu/effects/
DGrTextureDomain.cpp42 fDomain.fLeft = SkScalarPin(domain.fLeft, 0.0f, kFullRect.fRight); in GrTextureDomain()
43 fDomain.fRight = SkScalarPin(domain.fRight, fDomain.fLeft, kFullRect.fRight); in GrTextureDomain()
44 fDomain.fTop = SkScalarPin(domain.fTop, 0.0f, kFullRect.fBottom); in GrTextureDomain()
45 fDomain.fBottom = SkScalarPin(domain.fBottom, fDomain.fTop, kFullRect.fBottom); in GrTextureDomain()
/external/skqp/src/shaders/
DSkComposeShader.cpp24 lerpT = SkScalarPin(lerpT, 0, 1); in MakeCompose()
DSkPerlinNoiseShader.cpp567 return SkScalarPin(turbulenceFunctionResult, 0, SK_Scalar1); in calculateTurbulenceValueForPoint()
/external/skqp/include/core/
DSkColorPriv.h34 return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255 + 0.5); in SkUnitScalarClampToByte()
DSkScalar.h117 static inline SkScalar SkScalarPin(SkScalar x, SkScalar min, SkScalar max) { in SkScalarPin() function
/external/skqp/src/effects/
DSkEmbossMaskFilter.cpp54 light.fSpecular = static_cast<U8CPU>(SkScalarPin(specular, 0, 16) * kSpecularMultiplier + 0.5); in MakeEmboss()
DSkHighContrastFilter.cpp30 fConfig.fContrast = SkScalarPin(fConfig.fContrast, in SkHighContrast_Filter()
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp729 dist = SkScalarPin(-dist, -distanceMagnitude, distanceMagnitude * 127.0f / 128.0f); in pack_distance_field_val()
/external/skqp/src/shaders/gradients/
DSkGradientShader.cpp189 auto curr = (i == desc.fCount) ? 1 : SkScalarPin(desc.fPos[i], prev, 1); in SkGradientShaderBase()
/external/skqp/tools/viewer/
DViewer.cpp910 fZoomLevel = SkScalarPin(fZoomLevel, MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL); in changeZoomLevel()
/external/skia/
DRELEASE_NOTES.txt596 * Removed SkScalarClampMax and SkScalarPin.
/external/skia/site/docs/user/release/
Drelease_notes.md538 * Removed SkScalarClampMax and SkScalarPin.
/external/skqp/src/effects/imagefilters/
DSkLightingImageFilter.cpp969 fSpecularExponent(SkScalarPin(specularExponent, kSpecularExponentMin, kSpecularExponentMax)), in SkSpotLight()