Lines Matching defs:mask
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);
86 * Process an input mask to obtain the necessary information
89 const SkMasks::MaskInfo process_mask(uint32_t mask, uint32_t bpp) {
90 // Determine properties of the mask
91 uint32_t tempMask = mask;
99 // Count the size of the mask
103 // Verify that the mask is continuous
105 SkCodecPrintf("Warning: Bit mask is not continuous.\n");
106 // Finish processing the mask
115 mask &= 0xFF << shift;
120 const SkMasks::MaskInfo info = { mask, shift, size };