HomeSort by relevance Sort by last modified time
    Searched refs:Sk4f (Results 26 - 50 of 75) sorted by null

12 3

  /external/skqp/samplecode/
SamplePathText.cpp 390 const Sk4f amplitudes = Sk4f::Load(fAmplitudes);
391 const Sk4f frequencies = Sk4f::Load(fFrequencies);
392 const Sk4f dirsX = Sk4f::Load(fDirsX);
393 const Sk4f dirsY = Sk4f::Load(fDirsY);
394 const Sk4f speeds = Sk4f::Load(fSpeeds)
    [all...]
  /external/skqp/src/gpu/ccpr/
GrCCPathParser.cpp 26 // overflow with Sk4f. (See parsePath.)
61 Sk4f X = Sk4f(m.getScaleX(), m.getSkewY(), m45.getScaleX(), m45.getSkewY());
62 Sk4f Y = Sk4f(m.getSkewX(), m.getScaleY(), m45.getSkewX(), m45.getScaleY());
63 Sk4f T = Sk4f(m.getTranslateX(), m.getTranslateY(), m45.getTranslateX(), m45.getTranslateY());
66 Sk4f devPt = SkNx_fma(Y, Sk4f(pts[0].y()), T);
67 devPt = SkNx_fma(X, Sk4f(pts[0].x()), devPt)
    [all...]
  /external/skia/src/utils/
SkPatchUtils.cpp 150 static Sk4f bilerp(SkScalar tx, SkScalar ty,
151 const Sk4f& c00, const Sk4f& c10, const Sk4f& c01, const Sk4f& c11) {
152 Sk4f a = c00 * (1.f - tx) + c10 * tx;
153 Sk4f b = c01 * (1.f - tx) + c11 * tx;
218 static SkRGBAf From4f(const Sk4f& x) {
228 Sk4f to4f() const {
229 return Sk4f::Load(fVec)
    [all...]
  /external/skqp/src/utils/
SkPatchUtils.cpp 150 static Sk4f bilerp(SkScalar tx, SkScalar ty,
151 const Sk4f& c00, const Sk4f& c10, const Sk4f& c01, const Sk4f& c11) {
152 Sk4f a = c00 * (1.f - tx) + c10 * tx;
153 Sk4f b = c01 * (1.f - tx) + c11 * tx;
218 static SkRGBAf From4f(const Sk4f& x) {
228 Sk4f to4f() const {
229 return Sk4f::Load(fVec)
    [all...]
  /external/skia/src/effects/
SkArithmeticImageFilter.cpp 93 static Sk4f pin(float min, const Sk4f& val, float max) {
94 return Sk4f::Max(min, Sk4f::Min(val, max));
99 const Sk4f k1 = k[0] * (1/255.0f),
105 Sk4f s = SkNx_cast<float>(Sk4b::Load(src+i)),
109 Sk4f a = SkNx_shuffle<3,3,3,3>(r);
110 r = Sk4f::Min(a, r);
118 const Sk4f k3 = k[2],
122 Sk4f d = SkNx_cast<float>(Sk4b::Load(dst+i))
    [all...]
  /external/skia/tests/
SkNxTest.cpp 222 auto fs = Sk4f(0.0f, -0.0f, 2.0f, -4.0f).abs();
255 auto fs = Sk4f(0.4f, -0.4f, 0.6f, -0.6f).floor();
263 Sk4f f4(0,10,20,30);
277 Sk4f f(-2.3f, 1.0f, 0.45f, 0.6f);
306 auto f4 = Sk4f(15, 17, 257, 65535);
358 Sk4f a, b, c, d;
359 Sk4f::Load4(src, &a, &b, &c, &d);
378 Sk4f::Store4(dst, a, b, c, d);
383 auto fs = -Sk4f(0.0f, -0.0f, 2.0f, -4.0f);
397 auto fs = (Sk4f(0.0f, -0.0f, 2.0f, -4.0f) < 0).thenElse(-1, 1)
    [all...]
Sk4x4fTest.cpp 14 Sk4f x{ 0, 1, 2, 3},
24 Sk4f s,t,u,v;
SRGBTest.cpp 17 return (uint8_t)sk_linear_to_srgb(Sk4f{l})[0];
Float16Test.cpp 108 uint16_t actual = SkFloatToHalf_finite_ftz(Sk4f{f})[0];
  /external/skqp/src/effects/
SkArithmeticImageFilter.cpp 93 static Sk4f pin(float min, const Sk4f& val, float max) {
94 return Sk4f::Max(min, Sk4f::Min(val, max));
99 const Sk4f k1 = k[0] * (1/255.0f),
105 Sk4f s = SkNx_cast<float>(Sk4b::Load(src+i)),
109 Sk4f a = SkNx_shuffle<3,3,3,3>(r);
110 r = Sk4f::Min(a, r);
118 const Sk4f k3 = k[2],
122 Sk4f d = SkNx_cast<float>(Sk4b::Load(dst+i))
    [all...]
  /external/skqp/tests/
SkNxTest.cpp 222 auto fs = Sk4f(0.0f, -0.0f, 2.0f, -4.0f).abs();
255 auto fs = Sk4f(0.4f, -0.4f, 0.6f, -0.6f).floor();
263 Sk4f f4(0,10,20,30);
277 Sk4f f(-2.3f, 1.0f, 0.45f, 0.6f);
306 auto f4 = Sk4f(15, 17, 257, 65535);
358 Sk4f a, b, c, d;
359 Sk4f::Load4(src, &a, &b, &c, &d);
378 Sk4f::Store4(dst, a, b, c, d);
383 auto fs = -Sk4f(0.0f, -0.0f, 2.0f, -4.0f);
397 auto fs = (Sk4f(0.0f, -0.0f, 2.0f, -4.0f) < 0).thenElse(-1, 1)
    [all...]
Sk4x4fTest.cpp 14 Sk4f x{ 0, 1, 2, 3},
24 Sk4f s,t,u,v;
SRGBTest.cpp 17 return (uint8_t)sk_linear_to_srgb(Sk4f{l})[0];
  /external/skia/src/gpu/ccpr/
GrCCPathParser.cpp 27 // overflow with Sk4f. (See parsePath.)
63 Sk4f X = Sk4f(m.getScaleX(), m.getSkewY(), m45.getScaleX(), m45.getSkewY());
64 Sk4f Y = Sk4f(m.getSkewX(), m.getScaleY(), m45.getSkewX(), m45.getScaleY());
65 Sk4f T = Sk4f(m.getTranslateX(), m.getTranslateY(), m45.getTranslateX(), m45.getTranslateY());
68 Sk4f devPt = SkNx_fma(Y, Sk4f(pts[0].y()), T);
69 devPt = SkNx_fma(X, Sk4f(pts[0].x()), devPt)
    [all...]
  /external/skia/src/core/
SkMatrixPriv.h 51 Sk4f trans(tx, ty, tx, ty);
52 (Sk4f::Load(&src.fLeft) - trans).store(&dst->fLeft);
SkDraw_vertices.cpp 27 Sk4f map(float x, float y) const {
28 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]);
130 Sk4f c0 = colors[index0].to4f(),
  /external/skqp/src/core/
SkMatrixPriv.h 51 Sk4f trans(tx, ty, tx, ty);
52 (Sk4f::Load(&src.fLeft) - trans).store(&dst->fLeft);
SkDraw_vertices.cpp 27 Sk4f map(float x, float y) const {
28 return Sk4f::Load(&fMat[0]) * x + Sk4f::Load(&fMat[4]) * y + Sk4f::Load(&fMat[8]);
129 Sk4f c0 = colors[index0].to4f(),
  /external/skia/gm/
readpixels.cpp 28 Sk4f rgba = SkHalfToFloat_finite_ftz(pixel);
30 rgba = Sk4f::Max(0.0f, Sk4f::Min(rgba, 1.0f));
33 rgba = Sk4f::Max(0.0f, Sk4f::Min(rgba, rgba[3]));
  /external/skqp/gm/
readpixels.cpp 27 Sk4f rgba = SkHalfToFloat_finite_ftz(pixel);
29 rgba = Sk4f::Max(0.0f, Sk4f::Min(rgba, 1.0f));
32 rgba = Sk4f::Max(0.0f, Sk4f::Min(rgba, rgba[3]));
  /external/skia/src/shaders/gradients/
SkGradientShader.cpp 241 // Clankium's GCC 4.9 targeting ARMv7 is barfing when we use Sk4f math here, so go scalar...
320 : SkPM4f::From4f(Sk4f::Load(&c));
473 typedef std::function<void(const Sk4f&, int)> pixelWriteFn_t;
475 pixelWriteFn_t writeF16Pixel = [&](const Sk4f& x, int index) {
482 pixelWriteFn_t writeS32Pixel = [&](const Sk4f& c, int index) {
485 pixelWriteFn_t writeL32Pixel = [&](const Sk4f& c, int index) {
492 pixelWriteFn_t writeUnpremulPixel = [&](const Sk4f& c, int index) {
493 writeSizedPixel(c * Sk4f(c[3], c[3], c[3], 1.0f), index);
513 Sk4f c0 = Sk4f::Load(color0.vec())
    [all...]
  /external/skqp/src/shaders/gradients/
SkGradientShader.cpp 241 // Clankium's GCC 4.9 targeting ARMv7 is barfing when we use Sk4f math here, so go scalar...
312 : SkPM4f::From4f(Sk4f::Load(&c));
454 typedef std::function<void(const Sk4f&, int)> pixelWriteFn_t;
456 pixelWriteFn_t writeF16Pixel = [&](const Sk4f& x, int index) {
463 pixelWriteFn_t writeS32Pixel = [&](const Sk4f& c, int index) {
466 pixelWriteFn_t writeL32Pixel = [&](const Sk4f& c, int index) {
473 pixelWriteFn_t writeUnpremulPixel = [&](const Sk4f& c, int index) {
474 writeSizedPixel(c * Sk4f(c[3], c[3], c[3], 1.0f), index);
494 Sk4f c0 = Sk4f::Load(color0.vec())
    [all...]
  /external/skia/src/opts/
SkNx_neon.h 250 AI static Sk4f SkNx_fma(const Sk4f& f, const Sk4f& m, const Sk4f& a) {
570 template<> AI /*static*/ Sk4i SkNx_cast<int32_t, float>(const Sk4f& src) {
574 template<> AI /*static*/ Sk4f SkNx_cast<float, int32_t>(const Sk4i& src) {
577 template<> AI /*static*/ Sk4f SkNx_cast<float, uint32_t>(const Sk4u& src) {
581 template<> AI /*static*/ Sk4h SkNx_cast<uint16_t, float>(const Sk4f& src) {
585 template<> AI /*static*/ Sk4f SkNx_cast<float, uint16_t>(const Sk4h& src) {
589 template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, float>(const Sk4f& src)
    [all...]
  /external/skqp/src/opts/
SkNx_neon.h 240 AI static Sk4f SkNx_fma(const Sk4f& f, const Sk4f& m, const Sk4f& a) {
560 template<> AI /*static*/ Sk4i SkNx_cast<int32_t, float>(const Sk4f& src) {
564 template<> AI /*static*/ Sk4f SkNx_cast<float, int32_t>(const Sk4i& src) {
567 template<> AI /*static*/ Sk4f SkNx_cast<float, uint32_t>(const Sk4u& src) {
571 template<> AI /*static*/ Sk4h SkNx_cast<uint16_t, float>(const Sk4f& src) {
575 template<> AI /*static*/ Sk4f SkNx_cast<float, uint16_t>(const Sk4h& src) {
579 template<> AI /*static*/ Sk4b SkNx_cast<uint8_t, float>(const Sk4f& src)
    [all...]
  /external/skia/src/gpu/ops/
GrLatticeOp.cpp 233 Sk4f scales(1.f / fProxy->width(), 1.f / fProxy->height(),
235 static const Sk4f kDomainOffsets(0.5f, 0.5f, -0.5f, -0.5f);
236 static const Sk4f kFlipOffsets(0.f, 1, 0.f, 1.f);
237 static const Sk4f kFlipMuls(1.f, -1.f, 1.f, -1.f);
242 Sk4f coords(SkIntToScalar(srcR.fLeft), SkIntToScalar(srcR.fTop),
244 Sk4f domain = coords + kDomainOffsets;

Completed in 1245 milliseconds

12 3