Home
last modified time | relevance | path

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

/external/skqp/src/opts/
DSk4px_SSE2.h10 inline Sk4px::Wide Sk4px::widen() const { in widen()
15 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
16 return this->widen() * Sk4px(other).widen(); in mulWiden()
19 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
20 Sk4px::Wide r = (*this + other) >> 8; in addNarrowHi()
21 return Sk4px(_mm_packus_epi16(r.fLo.fVec, r.fHi.fVec)); in addNarrowHi()
24 inline Sk4px Sk4px::Wide::div255() const { in div255()
29 return Sk4px(_mm_packus_epi16(_mm_mulhi_epu16(_mm_add_epi16(fLo.fVec, _128), _257), in div255()
37 inline Sk4px Sk4px::alphas() const { in alphas()
43 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
[all …]
DSk4px_none.h12 inline Sk4px::Wide Sk4px::widen() const { in widen()
19 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
20 return this->widen() * Sk4px(other).widen(); in mulWiden()
23 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
24 Sk4px::Wide r = (*this + other) >> 8; in addNarrowHi()
31 inline Sk4px Sk4px::Wide::div255() const { in div255()
37 inline Sk4px Sk4px::alphas() const { in alphas()
45 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
52 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) { in Load2Alphas()
DSk4px_NEON.h10 inline Sk4px::Wide Sk4px::widen() const { in widen()
15 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
20 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
21 const Sk4px::Wide o(other); // Should be no code, but allows us to access fLo, fHi. in addNarrowHi()
26 inline Sk4px Sk4px::Wide::div255() const { in div255()
32 inline Sk4px Sk4px::alphas() const { in alphas()
37 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
47 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) { in Load2Alphas()
DSkXfermode_opts.h28 struct Xfermode { Sk4px operator()(const Sk4px&, const Sk4px&) const; }; \
29 inline Sk4px Xfermode::operator()(const Sk4px& d, const Sk4px& s) const
31 XFERMODE(Clear) { return Sk4px::DupPMColor(0); } in XFERMODE()
62 static Sk4px xfer_aa(const Sk4px& d, const Sk4px& s, const Sk4px& aa) { in xfer_aa()
63 Sk4px bw = Xfermode()(d, s); in xfer_aa()
69 template <> Sk4px xfer_aa<Xfermode>(const Sk4px& d, const Sk4px& s, const Sk4px& aa)
97 Sk4px::MapDstSrc(n, dst, src, Xfermode()); in xfer32()
99 Sk4px::MapDstSrcAlpha(n, dst, src, aa, xfer_aa<Xfermode>); in xfer32()
DSkBlitMask_opts.h161 auto s = Sk4px::DupPMColor(SkPreMultiplyColor(color));
162 auto fn = [&](const Sk4px& d, const Sk4px& aa) {
170 Sk4px::MapDstAlpha(w, dst, mask, fn);
181 auto s = Sk4px::DupPMColor(SkPreMultiplyColor(color));
182 auto fn = [&](const Sk4px& d, const Sk4px& aa) {
190 Sk4px::MapDstAlpha(w, dst, mask, fn);
200 auto fn = [](const Sk4px& d, const Sk4px& aa) {
206 return Sk4px(Sk16b(aa) & Sk16b(0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255))
210 Sk4px::MapDstAlpha(w, dst, mask, fn);
/external/skia/src/opts/
DSk4px_SSE2.h10 inline Sk4px::Wide Sk4px::widen() const { in widen()
15 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
16 return this->widen() * Sk4px(other).widen(); in mulWiden()
19 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
20 Sk4px::Wide r = (*this + other) >> 8; in addNarrowHi()
21 return Sk4px(_mm_packus_epi16(r.fLo.fVec, r.fHi.fVec)); in addNarrowHi()
24 inline Sk4px Sk4px::Wide::div255() const { in div255()
29 return Sk4px(_mm_packus_epi16(_mm_mulhi_epu16(_mm_add_epi16(fLo.fVec, _128), _257), in div255()
37 inline Sk4px Sk4px::alphas() const { in alphas()
43 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
[all …]
DSk4px_none.h12 inline Sk4px::Wide Sk4px::widen() const { in widen()
19 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
20 return this->widen() * Sk4px(other).widen(); in mulWiden()
23 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
24 Sk4px::Wide r = (*this + other) >> 8; in addNarrowHi()
31 inline Sk4px Sk4px::Wide::div255() const { in div255()
37 inline Sk4px Sk4px::alphas() const { in alphas()
45 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
52 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) { in Load2Alphas()
DSk4px_NEON.h10 inline Sk4px::Wide Sk4px::widen() const { in widen()
15 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
20 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
21 const Sk4px::Wide o(other); // Should be no code, but allows us to access fLo, fHi. in addNarrowHi()
26 inline Sk4px Sk4px::Wide::div255() const { in div255()
32 inline Sk4px Sk4px::alphas() const { in alphas()
37 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
47 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) { in Load2Alphas()
DSkXfermode_opts.h28 struct Xfermode { Sk4px operator()(const Sk4px&, const Sk4px&) const; }; \
29 inline Sk4px Xfermode::operator()(const Sk4px& d, const Sk4px& s) const
31 XFERMODE(Clear) { return Sk4px::DupPMColor(0); } in XFERMODE()
62 static Sk4px xfer_aa(const Sk4px& d, const Sk4px& s, const Sk4px& aa) { in xfer_aa()
63 Sk4px bw = Xfermode()(d, s); in xfer_aa()
69 template <> Sk4px xfer_aa<Xfermode>(const Sk4px& d, const Sk4px& s, const Sk4px& aa)
97 Sk4px::MapDstSrc(n, dst, src, Xfermode()); in xfer32()
99 Sk4px::MapDstSrcAlpha(n, dst, src, aa, xfer_aa<Xfermode>); in xfer32()
DSkBlitMask_opts.h161 auto s = Sk4px::DupPMColor(SkPreMultiplyColor(color));
162 auto fn = [&](const Sk4px& d, const Sk4px& aa) {
170 Sk4px::MapDstAlpha(w, dst, mask, fn);
181 auto s = Sk4px::DupPMColor(SkPreMultiplyColor(color));
182 auto fn = [&](const Sk4px& d, const Sk4px& aa) {
190 Sk4px::MapDstAlpha(w, dst, mask, fn);
200 auto fn = [](const Sk4px& d, const Sk4px& aa) {
206 return Sk4px(Sk16b(aa) & Sk16b(0,0,0,255, 0,0,0,255, 0,0,0,255, 0,0,0,255))
210 Sk4px::MapDstAlpha(w, dst, mask, fn);
/external/skia/src/core/
DSk4px.h23 class Sk4px : public Sk16b {
25 Sk4px(const Sk16b& v) : INHERITED(v) {} in Sk4px() function
27 static Sk4px DupPMColor(SkPMColor c) { in DupPMColor()
30 Sk4px v; in DupPMColor()
35 Sk4px alphas() const; // ARGB argb XYZW xyzw -> AAAA aaaa XXXX xxxx
36 Sk4px inv() const { return Sk16b(255) - *this; } in inv()
39 static Sk4px Load4(const SkPMColor px[4]) { in Load4()
40 Sk4px v; in Load4()
44 static Sk4px Load2(const SkPMColor px[2]) { in Load2()
45 Sk4px v; in Load2()
[all …]
/external/skqp/src/core/
DSk4px.h23 class Sk4px : public Sk16b {
25 Sk4px(const Sk16b& v) : INHERITED(v) {} in Sk4px() function
27 static Sk4px DupPMColor(SkPMColor c) { in DupPMColor()
30 Sk4px v; in DupPMColor()
35 Sk4px alphas() const; // ARGB argb XYZW xyzw -> AAAA aaaa XXXX xxxx
36 Sk4px inv() const { return Sk16b(255) - *this; } in inv()
39 static Sk4px Load4(const SkPMColor px[4]) { in Load4()
40 Sk4px v; in Load4()
44 static Sk4px Load2(const SkPMColor px[2]) { in Load2()
45 Sk4px v; in Load2()
[all …]
DSkBlitRow_D32.cpp319 Sk16h colorHighAndRound = (Sk4px::DupPMColor(color).widen() << 8) + Sk16h(128); in Color32()
322 Sk4px::MapSrc(count, dst, src, [&](const Sk4px& src4) -> Sk4px { in Color32()
DSkBlitter_ARGB32.cpp1165 Sk4px::MapDstSrcAlpha(n, dst, src, mask, [](const Sk4px& d, const Sk4px& s, const Sk4px& aa) { in blend_row_A8()
1183 Sk4px::MapDstSrcAlpha(n, dst, src, mask, [](const Sk4px& d, const Sk4px& s, const Sk4px& aa) { in blend_row_A8_opaque()
/external/skia/tests/
DSkNxTest.cpp188 Sk4px av = Sk16b(a), in DEF_TEST()
/external/skqp/tests/
DSkNxTest.cpp188 Sk4px av = Sk16b(a), in DEF_TEST()
/external/skia/gn/
Dcore.gni103 "$_src/core/Sk4px.h",
/external/skqp/gn/
Dcore.gni16 "$_src/core/Sk4px.h",