/external/skqp/src/core/ |
D | SkColor.cpp | 76 SkScalar s = SkScalarPin(hsv[1], 0, 1); in SkHSVToColor() 77 SkScalar v = SkScalarPin(hsv[2], 0, 1); in SkHSVToColor()
|
D | SkGeometry.cpp | 772 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()
|
D | SkCubicMap.cpp | 166 x = SkScalarPin(x, 0, 1); in computeYFromX()
|
D | SkDistanceFieldGen.cpp | 330 dist = SkScalarPin(-dist, -distanceMagnitude, distanceMagnitude * 127.0f / 128.0f); in pack_distance_field_val()
|
/external/skqp/gm/ |
D | wacky_yuv_formats.cpp | 244 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/ |
D | GrTextureDomain.cpp | 42 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/ |
D | SkComposeShader.cpp | 24 lerpT = SkScalarPin(lerpT, 0, 1); in MakeCompose()
|
D | SkPerlinNoiseShader.cpp | 567 return SkScalarPin(turbulenceFunctionResult, 0, SK_Scalar1); in calculateTurbulenceValueForPoint()
|
/external/skqp/include/core/ |
D | SkColorPriv.h | 34 return static_cast<U8CPU>(SkScalarPin(x, 0, 1) * 255 + 0.5); in SkUnitScalarClampToByte()
|
D | SkScalar.h | 117 static inline SkScalar SkScalarPin(SkScalar x, SkScalar min, SkScalar max) { in SkScalarPin() function
|
/external/skqp/src/effects/ |
D | SkEmbossMaskFilter.cpp | 54 light.fSpecular = static_cast<U8CPU>(SkScalarPin(specular, 0, 16) * kSpecularMultiplier + 0.5); in MakeEmboss()
|
D | SkHighContrastFilter.cpp | 30 fConfig.fContrast = SkScalarPin(fConfig.fContrast, in SkHighContrast_Filter()
|
/external/skqp/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 729 dist = SkScalarPin(-dist, -distanceMagnitude, distanceMagnitude * 127.0f / 128.0f); in pack_distance_field_val()
|
/external/skqp/src/shaders/gradients/ |
D | SkGradientShader.cpp | 189 auto curr = (i == desc.fCount) ? 1 : SkScalarPin(desc.fPos[i], prev, 1); in SkGradientShaderBase()
|
/external/skqp/tools/viewer/ |
D | Viewer.cpp | 910 fZoomLevel = SkScalarPin(fZoomLevel, MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL); in changeZoomLevel()
|
/external/skia/ |
D | RELEASE_NOTES.txt | 596 * Removed SkScalarClampMax and SkScalarPin.
|
/external/skia/site/docs/user/release/ |
D | release_notes.md | 538 * Removed SkScalarClampMax and SkScalarPin.
|
/external/skqp/src/effects/imagefilters/ |
D | SkLightingImageFilter.cpp | 969 fSpecularExponent(SkScalarPin(specularExponent, kSpecularExponentMin, kSpecularExponentMax)), in SkSpotLight()
|