Lines Matching refs:alpha
26 const uint8x8_t alpha = (V).val[(ALPHA)]; \
27 const uint16x8_t r1 = vmull_u8((V).val[1], alpha); \
28 const uint16x8_t g1 = vmull_u8((V).val[2], alpha); \
29 const uint16x8_t b1 = vmull_u8((V).val[(OTHER)], alpha); \
65 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); in ApplyAlphaMultiply_NEON() local
66 const uint32_t a = alpha[4 * i]; in ApplyAlphaMultiply_NEON()
83 static int DispatchAlpha_NEON(const uint8_t* alpha, int alpha_stride, in DispatchAlpha_NEON() argument
96 const uint8x8_t alphas = vld1_u8(alpha + i); in DispatchAlpha_NEON()
102 const uint32_t alpha_value = alpha[i]; in DispatchAlpha_NEON()
106 alpha += alpha_stride; in DispatchAlpha_NEON()
115 static void DispatchAlphaToGreen_NEON(const uint8_t* alpha, int alpha_stride, in DispatchAlphaToGreen_NEON() argument
125 greens.val[1] = vld1_u8(alpha + i); in DispatchAlphaToGreen_NEON()
128 for (; i < width; ++i) dst[i] = alpha[i] << 8; in DispatchAlphaToGreen_NEON()
129 alpha += alpha_stride; in DispatchAlphaToGreen_NEON()
136 uint8_t* alpha, int alpha_stride) { in ExtractAlpha_NEON() argument
148 vst1_u8((uint8_t*)(alpha + i), alphas); in ExtractAlpha_NEON()
152 alpha[i] = argb[4 * i]; in ExtractAlpha_NEON()
153 alpha_mask &= alpha[i]; in ExtractAlpha_NEON()
156 alpha += alpha_stride; in ExtractAlpha_NEON()
165 uint8_t* alpha, int size) { in ExtractGreen_NEON() argument
170 vst1q_u8(alpha + i, greens); in ExtractGreen_NEON()
172 for (; i < size; ++i) alpha[i] = (argb[i] >> 8) & 0xff; in ExtractGreen_NEON()