Lines Matching refs:convert5To8
133 inline int convert5To8(int b) { in convert5To8() function
163 return convert5To8((0x1f & base) + kLookup[0x7 & diff]); in convertDiff()
209 r1 = convert5To8(rBase); in etc1_decode_block()
211 g1 = convert5To8(gBase); in etc1_decode_block()
213 b1 = convert5To8(bBase); in etc1_decode_block()
388 r1 = convert5To8(r51); in etc_encodeBaseColors()
389 g1 = convert5To8(g51); in etc_encodeBaseColors()
390 b1 = convert5To8(b51); in etc_encodeBaseColors()
399 r2 = convert5To8(r51 + dr); in etc_encodeBaseColors()
400 g2 = convert5To8(g51 + dg); in etc_encodeBaseColors()
401 b2 = convert5To8(b51 + db); in etc_encodeBaseColors()
542 *q++ = convert5To8(pixel >> 11); in etc1_encode_image()
544 *q++ = convert5To8(pixel); in etc1_encode_image()