Lines Matching defs:getChannel
43 static inline deUint8 getChannel (deUint32 color)
48 static inline deUint8 getChannel (deUint32 color, int channel)
60 return Vec4((float)getChannel<0>(color), (float)getChannel<1>(color), (float)getChannel<2>(color), (float)getChannel<3>(color));
102 ptr[c] = getChannel(val, c);
115 const int r = de::max<int>(de::abs((int)getChannel<0>(pa) - (int)getChannel<0>(pb)) - MIN_ERR_THRESHOLD, 0);
116 const int g = de::max<int>(de::abs((int)getChannel<1>(pa) - (int)getChannel<1>(pb)) - MIN_ERR_THRESHOLD, 0);
117 const int b = de::max<int>(de::abs((int)getChannel<2>(pa) - (int)getChannel<2>(pb)) - MIN_ERR_THRESHOLD, 0);
118 const int a = de::max<int>(de::abs((int)getChannel<3>(pa) - (int)getChannel<3>(pb)) - MIN_ERR_THRESHOLD, 0);
151 float f = (getChannel(p00, c)*(1.0f-a)*(1.0f-b)) +
152 (getChannel(p10, c)*( a)*(1.0f-b)) +
153 (getChannel(p01, c)*(1.0f-a)*( b)) +
154 (getChannel(p11, c)*( a)*( b));