Lines Matching refs:Sk4px

12 static_assert(sizeof(Sk4px) == 16, "This file uses memcpy / sk_memset32, so exact size matters.");
14 inline Sk4px Sk4px::DupPMColor(SkPMColor px) { in DupPMColor()
15 Sk4px px4 = Sk16b(); in DupPMColor()
20 inline Sk4px Sk4px::Load4(const SkPMColor px[4]) { in Load4()
21 Sk4px px4 = Sk16b(); in Load4()
26 inline Sk4px Sk4px::Load2(const SkPMColor px[2]) { in Load2()
27 Sk4px px2 = Sk16b(); in Load2()
32 inline Sk4px Sk4px::Load1(const SkPMColor px[1]) { in Load1()
33 Sk4px px1 = Sk16b(); in Load1()
38 inline void Sk4px::store4(SkPMColor px[4]) const { memcpy(px, this, 16); } in store4()
39 inline void Sk4px::store2(SkPMColor px[2]) const { memcpy(px, this, 8); } in store2()
40 inline void Sk4px::store1(SkPMColor px[1]) const { memcpy(px, this, 4); } in store1()
42 inline Sk4px::Wide Sk4px::widenLo() const { in widenLo()
49 inline Sk4px::Wide Sk4px::widenHi() const { return this->widenLo() << 8; } in widenHi()
51 inline Sk4px::Wide Sk4px::widenLoHi() const { return this->widenLo() + this->widenHi(); } in widenLoHi()
53 inline Sk4px::Wide Sk4px::mulWiden(const Sk16b& other) const { in mulWiden()
54 return this->widenLo() * Sk4px(other).widenLo(); in mulWiden()
57 inline Sk4px Sk4px::Wide::addNarrowHi(const Sk16h& other) const { in addNarrowHi()
58 Sk4px::Wide r = (*this + other) >> 8; in addNarrowHi()
65 inline Sk4px Sk4px::Wide::div255() const { in div255()
71 inline Sk4px Sk4px::alphas() const { in alphas()
79 inline Sk4px Sk4px::Load4Alphas(const SkAlpha a[4]) { in Load4Alphas()
86 inline Sk4px Sk4px::Load2Alphas(const SkAlpha a[2]) { in Load2Alphas()
93 inline Sk4px Sk4px::zeroAlphas() const { in zeroAlphas()
101 inline Sk4px Sk4px::zeroColors() const { in zeroColors()