Home | History | Annotate | Download | only in codec

Lines Matching refs:pixel

61 static uint8_t get_comp(uint32_t pixel, uint32_t mask, uint32_t shift,
63 return convert_to_8((pixel & mask) >> shift, size);
71 uint8_t SkMasks::getRed(uint32_t pixel) const {
72 return get_comp(pixel, fRed.mask, fRed.shift, fRed.size);
74 uint8_t SkMasks::getGreen(uint32_t pixel) const {
75 return get_comp(pixel, fGreen.mask, fGreen.shift, fGreen.size);
77 uint8_t SkMasks::getBlue(uint32_t pixel) const {
78 return get_comp(pixel, fBlue.mask, fBlue.shift, fBlue.size);
80 uint8_t SkMasks::getAlpha(uint32_t pixel) const {
81 return get_comp(pixel, fAlpha.mask, fAlpha.shift, fAlpha.size);