Home
last modified time | relevance | path

Searched refs:clamp_byte (Results 1 – 1 of 1) sorted by relevance

/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp392 static inline int clamp_byte(int x) { in clamp_byte() function
512 endpoints[0] = SkColorSetARGB(clamp_byte(c[0][0]), in decode_rgba_baseoffset()
513 clamp_byte(c[0][1]), in decode_rgba_baseoffset()
514 clamp_byte(c[0][2]), in decode_rgba_baseoffset()
515 clamp_byte(c[0][3])); in decode_rgba_baseoffset()
517 endpoints[1] = SkColorSetARGB(clamp_byte(c[1][0]), in decode_rgba_baseoffset()
518 clamp_byte(c[1][1]), in decode_rgba_baseoffset()
519 clamp_byte(c[1][2]), in decode_rgba_baseoffset()
520 clamp_byte(c[1][3])); in decode_rgba_baseoffset()
1248 const int L1 = clamp_byte(L0 + (v[1] & 0x3F)); in colorEndpoints()
[all …]