Lines Matching refs:alpha_val
51 #define ALPHA_SHIFT_16_TO_10(alpha_val) (alpha_val >> 6) argument
52 #define ALPHA_SHIFT_8_TO_10(alpha_val) ((alpha_val << 2) | (alpha_val >> 6)) argument
53 #define ALPHA_SHIFT_16_TO_12(alpha_val) (alpha_val >> 4) argument
54 #define ALPHA_SHIFT_8_TO_12(alpha_val) ((alpha_val << 4) | (alpha_val >> 4)) argument
59 int i, idx, val, alpha_val; in unpack_alpha() local
62 alpha_val = mask; in unpack_alpha()
75 alpha_val = (alpha_val + val) & mask; in unpack_alpha()
78 dst[idx++] = ALPHA_SHIFT_16_TO_10(alpha_val); in unpack_alpha()
80 dst[idx++] = ALPHA_SHIFT_16_TO_12(alpha_val); in unpack_alpha()
84 dst[idx++] = ALPHA_SHIFT_8_TO_10(alpha_val); in unpack_alpha()
86 dst[idx++] = ALPHA_SHIFT_8_TO_12(alpha_val); in unpack_alpha()
100 dst[idx++] = ALPHA_SHIFT_16_TO_10(alpha_val); in unpack_alpha()
102 dst[idx++] = ALPHA_SHIFT_16_TO_12(alpha_val); in unpack_alpha()
108 dst[idx++] = ALPHA_SHIFT_8_TO_10(alpha_val); in unpack_alpha()
110 dst[idx++] = ALPHA_SHIFT_8_TO_12(alpha_val); in unpack_alpha()