Home
last modified time | relevance | path

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

/hardware/google/gfxstream/guest/mesa/src/util/
Du_pack_color.h281 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
282 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
283 *b = float_to_ubyte(p[2]); in util_unpack_color_ub()
284 *a = float_to_ubyte(p[3]); in util_unpack_color_ub()
290 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
291 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
292 *b = float_to_ubyte(p[2]); in util_unpack_color_ub()
300 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
301 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
309 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
[all …]
Du_math.h322 float_to_ubyte(float f) in float_to_ubyte() function
/hardware/google/gfxstream/guest/mesa/src/util/format/
Du_format_other.c95 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
96 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
97 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
191 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
192 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
193 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
Du_format_yuv.c168 value = (uint32_t)float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
169 value |= (uint32_t)float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
170 value |= (uint32_t)float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
171 value |= (uint32_t)float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
184 value = (uint32_t)float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
185 value |= (uint32_t)float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
186 value |= (uint32_t)float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
187 value |= (uint32_t)float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
390 value = (uint32_t)float_to_ubyte(g0); in util_format_g8r8_g8b8_unorm_pack_rgba_float()
391 value |= (uint32_t)float_to_ubyte(r) << 8; in util_format_g8r8_g8b8_unorm_pack_rgba_float()
[all …]
Du_format_rgtc.c153 tmp[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4]); in util_format_rgtc1_unorm_pack_rgba_float()
385 … tmp_r[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4]); in util_format_rxtc2_unorm_pack_rgba_float()
386 … tmp_g[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4 + chan2off]); in util_format_rxtc2_unorm_pack_rgba_float()
Du_format_s3tc.c388 tmp[j][i][k] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float()
393 tmp[j][i][3] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float()