Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/state_trackers/vega/
Dvg_translate.c44 r = float_to_ubyte(rgba[i][0]); in _vega_pack_rgba_span_float()
45 g = float_to_ubyte(rgba[i][1]); in _vega_pack_rgba_span_float()
46 b = float_to_ubyte(rgba[i][2]); in _vega_pack_rgba_span_float()
57 r = float_to_ubyte(rgba[i][0]); in _vega_pack_rgba_span_float()
58 g = float_to_ubyte(rgba[i][1]); in _vega_pack_rgba_span_float()
59 b = float_to_ubyte(rgba[i][2]); in _vega_pack_rgba_span_float()
60 a = float_to_ubyte(rgba[i][3]); in _vega_pack_rgba_span_float()
70 r = float_to_ubyte(rgba[i][0]); in _vega_pack_rgba_span_float()
71 g = float_to_ubyte(rgba[i][1]); in _vega_pack_rgba_span_float()
72 b = float_to_ubyte(rgba[i][2]); in _vega_pack_rgba_span_float()
[all …]
Dpaint.c97 return float_to_ubyte(clr[3]) << 24 | in float4_to_argb()
98 float_to_ubyte(clr[0]) << 16 | in float4_to_argb()
99 float_to_ubyte(clr[1]) << 8 | in float4_to_argb()
100 float_to_ubyte(clr[2]) << 0; in float4_to_argb()
440 #define F2B(f) (float_to_ubyte(f)) in paint_colori()
Dimage.c366 r = float_to_ubyte(clear_colorf[0]); in image_clear()
367 g = float_to_ubyte(clear_colorf[1]); in image_clear()
368 b = float_to_ubyte(clear_colorf[2]); in image_clear()
369 a = float_to_ubyte(clear_colorf[3]); in image_clear()
/external/mesa3d/src/gallium/auxiliary/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_format_yuv.c183 value = float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
184 value |= float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
185 value |= float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
186 value |= float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
203 value = float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
204 value |= float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
205 value |= float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
206 value |= float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
435 value = float_to_ubyte(g0); in util_format_g8r8_g8b8_unorm_pack_rgba_float()
436 value |= float_to_ubyte(r) << 8; in util_format_g8r8_g8b8_unorm_pack_rgba_float()
[all …]
Du_format_srgb.h66 return float_to_ubyte(1.055f * powf(x, 0.41666f) - 0.055f); in util_format_linear_float_to_srgb_8unorm()
68 return float_to_ubyte(12.92f * x); in util_format_linear_float_to_srgb_8unorm()
Du_format_other.c111 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
112 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
113 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
229 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
230 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
231 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
Du_debug.c684 pixel.rgbRed = float_to_ubyte(ptr[x*4 + 0]); in debug_dump_float_rgba_bmp()
685 pixel.rgbGreen = float_to_ubyte(ptr[x*4 + 1]); in debug_dump_float_rgba_bmp()
686 pixel.rgbBlue = float_to_ubyte(ptr[x*4 + 2]); in debug_dump_float_rgba_bmp()
687 pixel.rgbAlpha = float_to_ubyte(ptr[x*4 + 3]); in debug_dump_float_rgba_bmp()
Du_format_s3tc.c502 tmp[j][i][k] = float_to_ubyte(src[(y + j)*src_stride/sizeof(*src) + (x+i)*4 + k]); in util_format_dxt1_rgb_pack_rgba_float()
526 tmp[j][i][k] = float_to_ubyte(src[(y + j)*src_stride/sizeof(*src) + (x+i)*4 + k]); in util_format_dxt1_rgba_pack_rgba_float()
550 tmp[j][i][k] = float_to_ubyte(src[(y + j)*src_stride/sizeof(*src) + (x+i)*4 + k]); in util_format_dxt3_rgba_pack_rgba_float()
574 tmp[j][i][k] = float_to_ubyte(src[(y + j)*src_stride/sizeof(*src) + (x+i)*4 + k]); in util_format_dxt5_rgba_pack_rgba_float()
Du_format_rgtc.c135 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()
305 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()
306 … 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_math.h538 float_to_ubyte(float f) in float_to_ubyte() function
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c105 OUT_BATCH( pack_ub4(float_to_ubyte( attrib[0] ), in emit_hw_vertex()
106 float_to_ubyte( attrib[1] ), in emit_hw_vertex()
107 float_to_ubyte( attrib[2] ), in emit_hw_vertex()
108 float_to_ubyte( attrib[3] )) ); in emit_hw_vertex()
112 OUT_BATCH( pack_ub4(float_to_ubyte( attrib[2] ), in emit_hw_vertex()
113 float_to_ubyte( attrib[1] ), in emit_hw_vertex()
114 float_to_ubyte( attrib[0] ), in emit_hw_vertex()
115 float_to_ubyte( attrib[3] )) ); in emit_hw_vertex()
Di915_state.c285 ubyte r = float_to_ubyte(sampler->border_color.f[0]); in i915_create_sampler_state()
286 ubyte g = float_to_ubyte(sampler->border_color.f[1]); in i915_create_sampler_state()
287 ubyte b = float_to_ubyte(sampler->border_color.f[2]); in i915_create_sampler_state()
288 ubyte a = float_to_ubyte(sampler->border_color.f[3]); in i915_create_sampler_state()
517 ubyte refByte = float_to_ubyte(depth_stencil->alpha.ref_value); in i915_create_depth_stencil_state()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_format.c255 int error = float_to_ubyte(test->unpacked[i][j][k]) - unpacked[k]; in test_format_unorm8()
275 float_to_ubyte(test->unpacked[i][j][0]), in test_format_unorm8()
276 float_to_ubyte(test->unpacked[i][j][1]), in test_format_unorm8()
277 float_to_ubyte(test->unpacked[i][j][2]), in test_format_unorm8()
278 float_to_ubyte(test->unpacked[i][j][3])); in test_format_unorm8()
Dlp_setup.c393 color_arg.clear_color[i] = float_to_ubyte(color[i]); in lp_setup_try_clear()
795 uint8_t c = float_to_ubyte(setup->blend_color.current.color[i]); in try_update_scene_state()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_sampler.c119 uint32 r = float_to_ubyte(sampler->border_color.f[0]); in svga_create_sampler_state()
120 uint32 g = float_to_ubyte(sampler->border_color.f[1]); in svga_create_sampler_state()
121 uint32 b = float_to_ubyte(sampler->border_color.f[2]); in svga_create_sampler_state()
122 uint32 a = float_to_ubyte(sampler->border_color.f[3]); in svga_create_sampler_state()
Dsvga_state_rss.c112 uint32 r = float_to_ubyte(svga->curr.blend_color.color[0]); in emit_rss()
113 uint32 g = float_to_ubyte(svga->curr.blend_color.color[1]); in emit_rss()
114 uint32 b = float_to_ubyte(svga->curr.blend_color.color[2]); in emit_rss()
115 uint32 a = float_to_ubyte(svga->curr.blend_color.color[3]); in emit_rss()
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_texture.c147 so->bcol = (float_to_ubyte(cso->border_color.f[3]) << 24) | in nv30_sampler_state_create()
148 (float_to_ubyte(cso->border_color.f[0]) << 16) | in nv30_sampler_state_create()
149 (float_to_ubyte(cso->border_color.f[1]) << 8) | in nv30_sampler_state_create()
150 (float_to_ubyte(cso->border_color.f[2]) << 0); in nv30_sampler_state_create()
Dnv30_state_validate.c200 PUSH_DATA (push, (float_to_ubyte(rgba[3]) << 24) | in nv30_validate_blend_colour()
201 (float_to_ubyte(rgba[0]) << 16) | in nv30_validate_blend_colour()
202 (float_to_ubyte(rgba[1]) << 8) | in nv30_validate_blend_colour()
203 (float_to_ubyte(rgba[2]) << 0)); in nv30_validate_blend_colour()
Dnv30_state.c258 SB_DATA (so, float_to_ubyte(cso->alpha.ref_value)); in nv30_zsa_state_create()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_quad_blend.c164 dst[j][0] = float_to_ubyte(dest[j][0]); /* P0 */ in logicop_quad()
165 dst[j][1] = float_to_ubyte(dest[j][1]); /* P1 */ in logicop_quad()
166 dst[j][2] = float_to_ubyte(dest[j][2]); /* P2 */ in logicop_quad()
167 dst[j][3] = float_to_ubyte(dest[j][3]); /* P3 */ in logicop_quad()
169 src[j][0] = float_to_ubyte(quadColor[j][0]); /* P0 */ in logicop_quad()
170 src[j][1] = float_to_ubyte(quadColor[j][1]); /* P1 */ in logicop_quad()
171 src[j][2] = float_to_ubyte(quadColor[j][2]); /* P2 */ in logicop_quad()
172 src[j][3] = float_to_ubyte(quadColor[j][3]); /* P3 */ in logicop_quad()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state.c653 dsa->alpha_function |= float_to_ubyte(state->alpha.ref_value); in r300_create_dsa_state()