Lines Matching refs:shift
61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift,
63 return convert_to_8((pixel & mask) >> shift, size);
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size);
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size);
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size);
81 return get_comp(pixel, fAlpha.mask, fAlpha.shift, fAlpha.size);
92 uint32_t shift = 0;
97 shift++;
113 shift += size - 8;
115 mask &= 0xFF << shift;
119 return { mask, shift, size };