Lines Matching refs:convert5To8
141 inline int convert5To8(int b) { in convert5To8() function
171 return convert5To8((0x1f & base) + kLookup[0x7 & diff]); in convertDiff()
217 r1 = convert5To8(rBase); in etc1_decode_block()
219 g1 = convert5To8(gBase); in etc1_decode_block()
221 b1 = convert5To8(bBase); in etc1_decode_block()
397 r1 = convert5To8(r51); in etc_encodeBaseColors()
398 g1 = convert5To8(g51); in etc_encodeBaseColors()
399 b1 = convert5To8(b51); in etc_encodeBaseColors()
408 r2 = convert5To8(r51 + dr); in etc_encodeBaseColors()
409 g2 = convert5To8(g51 + dg); in etc_encodeBaseColors()
410 b2 = convert5To8(b51 + db); in etc_encodeBaseColors()
554 *q++ = convert5To8(pixel >> 11); in etc1_encode_image()
556 *q++ = convert5To8(pixel); in etc1_encode_image()