Lines Matching refs:alpha

69                            U8CPU alpha, int /*x*/, int /*y*/) {
70 SkASSERT(255 == alpha);
107 U8CPU alpha, int /*x*/, int /*y*/) {
108 SkASSERT(255 > alpha);
113 vscale = vdupq_n_u16(SkAlpha255To256(alpha));
177 int scale = SkAlpha255To256(alpha);
193 U8CPU alpha, int /*x*/, int /*y*/) {
194 SkASSERT(255 == alpha);
251 // intentionally don't calculate alpha
331 // intentionally don't calculate alpha
373 U8CPU alpha, int /*x*/, int /*y*/) {
374 SkASSERT(255 == alpha);
476 U8CPU alpha, int /*x*/, int /*y*/) {
477 SkASSERT(255 > alpha);
490 valpha = vdup_n_u8(alpha);
582 unsigned dst_scale = 255 - SkMulDiv255Round(SkGetPackedA32(sc), alpha);
583 unsigned dr = SkMulS16(SkPacked32ToR16(sc), alpha) + SkMulS16(SkGetPackedR16(dc), dst_scale);
584 unsigned dg = SkMulS16(SkPacked32ToG16(sc), alpha) + SkMulS16(SkGetPackedG16(dc), dst_scale);
585 unsigned db = SkMulS16(SkPacked32ToB16(sc), alpha) + SkMulS16(SkGetPackedB16(dc), dst_scale);
606 int count, U8CPU alpha, int x, int y)
609 SkASSERT(255 > alpha);
611 // rescale alpha to range 1 - 256
612 int scale = SkAlpha255To256(alpha);
717 int scale = SkAlpha255To256(alpha);
742 int count, U8CPU alpha) {
744 SkASSERT(255 == alpha);
792 /* alpha mul the dest */
814 /* alpha mul the dest */
845 int count, U8CPU alpha) {
846 SkASSERT(255 == alpha);
901 /* alpha mul the dest */
916 /* alpha mul the dest */
946 /*In this state, we know the current alpha is 0 and
947 we optimize for the next alpha also being zero. */
962 /* no longer alpha 0, so determine where to go next. */
1021 int count, U8CPU alpha) {
1022 SkASSERT(alpha <= 255);
1028 uint16_t src_scale = SkAlpha255To256(alpha);
1086 int count, U8CPU alpha) {
1088 SkASSERT(255 >= alpha);
1094 unsigned alpha256 = SkAlpha255To256(alpha);
1213 int count, U8CPU alpha, int x, int y) {
1214 SkASSERT(255 == alpha);
1312 * dbase[] is 0..7; alpha is 0..256; 16 bits suffice
1370 SkDebugf(" alpha 0x%x\n", alpha);
1409 // dither and alpha are just temporary variables to work-around
1412 unsigned alpha = SkAlpha255To256(a);
1413 int d = SkAlphaMul(dither, alpha);
1440 int count, U8CPU alpha, int x, int y) {
1441 SkASSERT(255 == alpha);
1672 * We have two choices for S32A_Opaque procs. The one reads the src alpha
1675 * example, if there are a lot of transitions between the alpha states,
1678 * case where we do not inspect the src alpha.
1681 // This proc assumes the alpha value occupies bits 24-32 of each SkPMColor