Home | History | Annotate | Download | only in codec

Lines Matching refs:masks

95         // Count trailing zeros on masks
111 // Truncate masks greater than 8 bits
126 * Create the masks object
129 SkMasks* SkMasks::CreateMasks(InputMasks masks, uint32_t bitsPerPixel) {
130 // Trim the input masks according to bitsPerPixel
132 masks.red &= (1 << bitsPerPixel) - 1;
133 masks.green &= (1 << bitsPerPixel) - 1;
134 masks.blue &= (1 << bitsPerPixel) - 1;
135 masks.alpha &= (1 << bitsPerPixel) - 1;
138 // Check that masks do not overlap
139 if (((masks.red & masks.green) | (masks.red & masks.blue) |
140 (masks.red & masks.alpha) | (masks.green & masks.blue) |
141 (masks.green & masks.alpha) | (masks.blue & masks.alpha)) != 0) {
145 // Collect information about the masks
146 const MaskInfo red = process_mask(masks.red, bitsPerPixel);
147 const MaskInfo green = process_mask(masks.green, bitsPerPixel);
148 const MaskInfo blue = process_mask(masks.blue, bitsPerPixel);
149 const MaskInfo alpha = process_mask(masks.alpha, bitsPerPixel);