Home
last modified time | relevance | path

Searched refs:div255 (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/src/opts/
H A DSkXfermode_opts.h42 XFERMODE(SrcATop) { return (s * d.alphas() + d * s.alphas().inv()).div255(); }
45 XFERMODE(Xor) { return (s * d.alphas().inv() + d * s.alphas().inv()).div255(); }
64 return (bw * aa + d * aa.inv()).div255();
H A DSkRasterPipeline_opts.h3094 * div255 favors speed over accuracy. It uses formula [2] on NEON (where we can compute it as fast
3097 SI U16 div255(U16 v) {
3113 // Our NEON implementation of div255 is already correct for all inputs:
3114 return div255(v);
3132 SI U16 lerp(U16 from, U16 to, U16 t) { return div255( from*inv(t) + to*t ); }
3407 BLEND_MODE(srcatop) { return div255( s*da + d*inv(sa) ); }
3408 BLEND_MODE(dstatop) { return div255( d*sa + s*inv(da) ); }
3409 BLEND_MODE(srcin) { return div255( s*da ); }
3410 BLEND_MODE(dstin) { return div255( d*sa ); }
3411 BLEND_MODE(srcout) { return div255(
[all...]
H A DSk4px_SSE2.h24 inline Sk4px Sk4px::Wide::div255() const { in div255() function in __anon18896::Sk4px::Wide
H A DSk4px_NEON.h26 inline Sk4px Sk4px::Wide::div255() const { in div255() function in __anon18895::Sk4px::Wide
H A DSk4px_none.h31 inline Sk4px Sk4px::Wide::div255() const { in div255() function in __anon18897::Sk4px::Wide
/third_party/skia/src/effects/
H A DSkEmbossMask.cpp41 static inline unsigned div255(unsigned x) { in div255() function
102 add = div255(add * hilite); in Emboss()
/third_party/skia/src/core/
H A DSkSpriteBlitter_RGB565.cpp96 static unsigned div255(unsigned a, unsigned b) { in div255() function
114 dst[i] = a + div255(255 - a, dst[i]); in S32_srcover_da8()
H A DSk4px.h73 Sk4px div255() const;
98 // Generally faster than (*this * o).div255().
H A DSkBlitter_ARGB32.cpp1199 return skvx::div255( skvx::cast<uint16_t>(s) * skvx::cast<uint16_t>( c ) in blend_row_A8_opaque()
/third_party/skia/tests/
H A DSkNxTest.cpp198 int correct = (av * bv).div255()[0]; in DEF_TEST()
H A DSkVxTest.cpp133 uint8_t got = skvx::div255(skvx::Vec<8, uint16_t>(x) * in DEF_TEST()
/third_party/skia/include/private/
H A DSkVx.h690 // div255(x) = (x + 127) / 255 is a bit-exact rounding divide-by-255, packing down to 8-bit.
691 SIN Vec<N,uint8_t> div255(const Vec<N,uint16_t>& x) { in div255() function
695 // approx_scale(x,y) approximates div255(cast<uint16_t>(x)*cast<uint16_t>(y)) within a bit,

Completed in 13 milliseconds