Home
last modified time | relevance | path

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

/external/skia/src/utils/
DSkTextureCompressor_LATC.cpp44 static void generate_latc_palette(uint8_t palette[], uint8_t lum0, uint8_t lum1) { in generate_latc_palette() argument
45 palette[0] = lum0; in generate_latc_palette()
47 if (lum0 > lum1) { in generate_latc_palette()
49 palette[i+1] = ((7-i)*lum0 + i*lum1) / 7; in generate_latc_palette()
53 palette[i+1] = ((5-i)*lum0 + i*lum1) / 5; in generate_latc_palette()
408 uint8_t lum0 = block & 0xFF; in decompress_latc_block() local
412 generate_latc_palette(palette, lum0, lum1); in decompress_latc_block()