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()
389 r1 = convert5To8(r51); in etc_encodeBaseColors()
390 g1 = convert5To8(g51); in etc_encodeBaseColors()
391 b1 = convert5To8(b51); in etc_encodeBaseColors()
400 r2 = convert5To8(r51 + dr); in etc_encodeBaseColors()
401 g2 = convert5To8(g51 + dg); in etc_encodeBaseColors()
402 b2 = convert5To8(b51 + db); in etc_encodeBaseColors()
546 *q++ = convert5To8(pixel >> 11); in etc1_encode_image()
548 *q++ = convert5To8(pixel); in etc1_encode_image()