Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/main/
Dtexcompress_s3tc.c78 const GLfloat cs = UBYTE_TO_FLOAT(i); in nonlinear_to_linear()
392 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgb_dxt1()
393 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgb_dxt1()
394 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgb_dxt1()
395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgb_dxt1()
421 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgba_dxt1()
422 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_rgba_dxt1()
423 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_rgba_dxt1()
424 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_rgba_dxt1()
450 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_rgba_dxt3()
[all …]
Dapi_loopback.c138 COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), in loopback_Color3ub_f()
139 UBYTE_TO_FLOAT(blue), 1.0 ); in loopback_Color3ub_f()
187 COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), in loopback_Color3ubv_f()
188 UBYTE_TO_FLOAT(v[2]), 1.0 ); in loopback_Color3ubv_f()
239 COLORF( UBYTE_TO_FLOAT(red), UBYTE_TO_FLOAT(green), in loopback_Color4ub_f()
240 UBYTE_TO_FLOAT(blue), UBYTE_TO_FLOAT(alpha) ); in loopback_Color4ub_f()
291 COLORF( UBYTE_TO_FLOAT(v[0]), UBYTE_TO_FLOAT(v[1]), in loopback_Color4ubv_f()
292 UBYTE_TO_FLOAT(v[2]), UBYTE_TO_FLOAT(v[3]) ); in loopback_Color4ubv_f()
990 SECONDARYCOLORF(UBYTE_TO_FLOAT(red), in loopback_SecondaryColor3ubEXT_f()
991 UBYTE_TO_FLOAT(green), in loopback_SecondaryColor3ubEXT_f()
[all …]
Dtexcompress_etc.c67 texel[RCOMP] = UBYTE_TO_FLOAT(dst[0]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
68 texel[GCOMP] = UBYTE_TO_FLOAT(dst[1]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
69 texel[BCOMP] = UBYTE_TO_FLOAT(dst[2]); in _mesa_fetch_texel_2d_f_etc1_rgb8()
Dformat_unpack.c69 const GLfloat cs = UBYTE_TO_FLOAT(i); in nonlinear_to_linear()
96 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888()
97 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888()
98 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888()
99 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888()
109 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] ) & 0xff ); in unpack_RGBA8888_REV()
110 dst[i][GCOMP] = UBYTE_TO_FLOAT( (s[i] >> 8) & 0xff ); in unpack_RGBA8888_REV()
111 dst[i][BCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_RGBA8888_REV()
112 dst[i][ACOMP] = UBYTE_TO_FLOAT( (s[i] >> 24) ); in unpack_RGBA8888_REV()
122 dst[i][RCOMP] = UBYTE_TO_FLOAT( (s[i] >> 16) & 0xff ); in unpack_ARGB8888()
[all …]
Dformat_pack.c1149 d[0] = UBYTE_TO_FLOAT(src[0]); in pack_ubyte_RGBA_FLOAT32()
1150 d[1] = UBYTE_TO_FLOAT(src[1]); in pack_ubyte_RGBA_FLOAT32()
1151 d[2] = UBYTE_TO_FLOAT(src[2]); in pack_ubyte_RGBA_FLOAT32()
1152 d[3] = UBYTE_TO_FLOAT(src[3]); in pack_ubyte_RGBA_FLOAT32()
1172 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[0])); in pack_ubyte_RGBA_FLOAT16()
1173 d[1] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[1])); in pack_ubyte_RGBA_FLOAT16()
1174 d[2] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[2])); in pack_ubyte_RGBA_FLOAT16()
1175 d[3] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[3])); in pack_ubyte_RGBA_FLOAT16()
1195 d[0] = UBYTE_TO_FLOAT(src[0]); in pack_ubyte_RGB_FLOAT32()
1196 d[1] = UBYTE_TO_FLOAT(src[1]); in pack_ubyte_RGB_FLOAT32()
[all …]
Dapi_arrayelt.c236 CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]))); in VertexAttrib1NubvNV()
248 CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib2NubvNV()
249 UBYTE_TO_FLOAT(v[1]))); in VertexAttrib2NubvNV()
261 CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib3NubvNV()
262 UBYTE_TO_FLOAT(v[1]), in VertexAttrib3NubvNV()
263 UBYTE_TO_FLOAT(v[2]))); in VertexAttrib3NubvNV()
275 CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]), in VertexAttrib4NubvNV()
276 UBYTE_TO_FLOAT(v[1]), in VertexAttrib4NubvNV()
277 UBYTE_TO_FLOAT(v[2]), in VertexAttrib4NubvNV()
278 UBYTE_TO_FLOAT(v[3]))); in VertexAttrib4NubvNV()
[all …]
Dtexcompress_rgtc.c303 texel[RCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_red_rgtc1()
336 texel[RCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_rg_rgtc2()
337 texel[GCOMP] = UBYTE_TO_FLOAT(green); in _mesa_fetch_texel_rg_rgtc2()
371 texel[BCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_l_latc1()
404 texel[BCOMP] = UBYTE_TO_FLOAT(red); in _mesa_fetch_texel_la_latc2()
405 texel[ACOMP] = UBYTE_TO_FLOAT(green); in _mesa_fetch_texel_la_latc2()
Dimage.c497 dst4[i][RCOMP] = UBYTE_TO_FLOAT(src1[i][RCOMP]); in _mesa_convert_colors()
498 dst4[i][GCOMP] = UBYTE_TO_FLOAT(src1[i][GCOMP]); in _mesa_convert_colors()
499 dst4[i][BCOMP] = UBYTE_TO_FLOAT(src1[i][BCOMP]); in _mesa_convert_colors()
500 dst4[i][ACOMP] = UBYTE_TO_FLOAT(src1[i][ACOMP]); in _mesa_convert_colors()
Dtexcompress_fxt1.c167 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
168 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
169 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
170 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); in _mesa_fetch_texel_2d_f_rgba_fxt1()
182 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
183 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
184 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1()
Dpack.c3250 PROCESS(rSrc, RCOMP, 0.0F, 0, GLubyte, UBYTE_TO_FLOAT); in extract_float_rgba()
3251 PROCESS(gSrc, GCOMP, 0.0F, 0, GLubyte, UBYTE_TO_FLOAT); in extract_float_rgba()
3252 PROCESS(bSrc, BCOMP, 0.0F, 0, GLubyte, UBYTE_TO_FLOAT); in extract_float_rgba()
3253 PROCESS(aSrc, ACOMP, 1.0F, 255, GLubyte, UBYTE_TO_FLOAT); in extract_float_rgba()
3521 rgba[i][rDst] = UBYTE_TO_FLOAT((p ) & 0xff); in extract_float_rgba()
3522 rgba[i][gDst] = UBYTE_TO_FLOAT((p >> 8) & 0xff); in extract_float_rgba()
3523 rgba[i][bDst] = UBYTE_TO_FLOAT((p >> 16) & 0xff); in extract_float_rgba()
3524 rgba[i][aDst] = UBYTE_TO_FLOAT((p >> 24) ); in extract_float_rgba()
3543 rgba[i][rDst] = UBYTE_TO_FLOAT((p >> 24) ); in extract_float_rgba()
3544 rgba[i][gDst] = UBYTE_TO_FLOAT((p >> 16) & 0xff); in extract_float_rgba()
[all …]
Dmacros.h44 #define UBYTE_TO_FLOAT(u) _mesa_ubyte_to_float_color_tab[(unsigned int)(u)] macro
/external/mesa3d/src/mesa/swrast/
Ds_texfetch_tmp.h397 texel[RCOMP] = UBYTE_TO_FLOAT( (s >> 24) ); in FETCH()
398 texel[GCOMP] = UBYTE_TO_FLOAT( (s >> 16) & 0xff ); in FETCH()
399 texel[BCOMP] = UBYTE_TO_FLOAT( (s >> 8) & 0xff ); in FETCH()
400 texel[ACOMP] = UBYTE_TO_FLOAT( (s ) & 0xff ); in FETCH()
415 texel[RCOMP] = UBYTE_TO_FLOAT( (s ) & 0xff ); in FETCH()
416 texel[GCOMP] = UBYTE_TO_FLOAT( (s >> 8) & 0xff ); in FETCH()
417 texel[BCOMP] = UBYTE_TO_FLOAT( (s >> 16) & 0xff ); in FETCH()
418 texel[ACOMP] = UBYTE_TO_FLOAT( (s >> 24) ); in FETCH()
431 texel[RCOMP] = UBYTE_TO_FLOAT( (s >> 16) & 0xff ); in FETCH()
432 texel[GCOMP] = UBYTE_TO_FLOAT( (s >> 8) & 0xff ); in FETCH()
[all …]
Ds_blend.c840 rgbaF[i][RCOMP] = UBYTE_TO_FLOAT(rgba[i][RCOMP]); in blend_general()
841 rgbaF[i][GCOMP] = UBYTE_TO_FLOAT(rgba[i][GCOMP]); in blend_general()
842 rgbaF[i][BCOMP] = UBYTE_TO_FLOAT(rgba[i][BCOMP]); in blend_general()
843 rgbaF[i][ACOMP] = UBYTE_TO_FLOAT(rgba[i][ACOMP]); in blend_general()
844 destF[i][RCOMP] = UBYTE_TO_FLOAT(dest[i][RCOMP]); in blend_general()
845 destF[i][GCOMP] = UBYTE_TO_FLOAT(dest[i][GCOMP]); in blend_general()
846 destF[i][BCOMP] = UBYTE_TO_FLOAT(dest[i][BCOMP]); in blend_general()
847 destF[i][ACOMP] = UBYTE_TO_FLOAT(dest[i][ACOMP]); in blend_general()
Ds_chan.h74 #define CHAN_TO_FLOAT(c) UBYTE_TO_FLOAT(c)
Ds_span.c330 col0[i][0] = UBYTE_TO_FLOAT(span->array->rgba8[i][0]); in interpolate_float_colors()
331 col0[i][1] = UBYTE_TO_FLOAT(span->array->rgba8[i][1]); in interpolate_float_colors()
332 col0[i][2] = UBYTE_TO_FLOAT(span->array->rgba8[i][2]); in interpolate_float_colors()
333 col0[i][3] = UBYTE_TO_FLOAT(span->array->rgba8[i][3]); in interpolate_float_colors()
Ds_texfetch.c65 const GLfloat cs = UBYTE_TO_FLOAT(i); in nonlinear_to_linear()
Ds_texfilter.c1439 rgba[k][RCOMP] = UBYTE_TO_FLOAT(texel[2]); in opt_sample_rgb_2d()
1440 rgba[k][GCOMP] = UBYTE_TO_FLOAT(texel[1]); in opt_sample_rgb_2d()
1441 rgba[k][BCOMP] = UBYTE_TO_FLOAT(texel[0]); in opt_sample_rgb_2d()
1484 rgba[i][RCOMP] = UBYTE_TO_FLOAT( (texel >> 24) ); in opt_sample_rgba_2d()
1485 rgba[i][GCOMP] = UBYTE_TO_FLOAT( (texel >> 16) & 0xff ); in opt_sample_rgba_2d()
1486 rgba[i][BCOMP] = UBYTE_TO_FLOAT( (texel >> 8) & 0xff ); in opt_sample_rgba_2d()
1487 rgba[i][ACOMP] = UBYTE_TO_FLOAT( (texel ) & 0xff ); in opt_sample_rgba_2d()
/external/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c696 out[0] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_rgba()
697 out[1] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_rgba()
698 out[2] = UBYTE_TO_FLOAT(v[2]); in extract_4ub_4f_rgba()
699 out[3] = UBYTE_TO_FLOAT(v[3]); in extract_4ub_4f_rgba()
706 out[2] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_bgra()
707 out[1] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_bgra()
708 out[0] = UBYTE_TO_FLOAT(v[2]); in extract_4ub_4f_bgra()
709 out[3] = UBYTE_TO_FLOAT(v[3]); in extract_4ub_4f_bgra()
716 out[3] = UBYTE_TO_FLOAT(v[0]); in extract_4ub_4f_argb()
717 out[0] = UBYTE_TO_FLOAT(v[1]); in extract_4ub_4f_argb()
[all …]
Dt_draw.c104 *fptr++ = UBYTE_TO_FLOAT(in[2]); /* red */ in convert_bgra_to_float()
105 *fptr++ = UBYTE_TO_FLOAT(in[1]); /* green */ in convert_bgra_to_float()
106 *fptr++ = UBYTE_TO_FLOAT(in[0]); /* blue */ in convert_bgra_to_float()
107 *fptr++ = UBYTE_TO_FLOAT(in[3]); /* alpha */ in convert_bgra_to_float()
194 CONVERT(GLubyte, UBYTE_TO_FLOAT); in _tnl_import_array()
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_vb.c134 dst->attrib[FRAG_ATTRIB_COL1][0] = UBYTE_TO_FLOAT(src->v.specular.red); in TAG()
135 dst->attrib[FRAG_ATTRIB_COL1][1] = UBYTE_TO_FLOAT(src->v.specular.green); in TAG()
136 dst->attrib[FRAG_ATTRIB_COL1][2] = UBYTE_TO_FLOAT(src->v.specular.blue); in TAG()
138 dst->attrib[FRAG_ATTRIB_FOGC][0] = UBYTE_TO_FLOAT(src->v.specular.alpha); in TAG()
/external/mesa3d/src/mesa/math/
Dm_translate.c180 #define TRX_3FN(f,n) UBYTE_TO_FLOAT(PTR_ELT(f,n))
182 #define TRX_4FN(f,n) UBYTE_TO_FLOAT(PTR_ELT(f,n))
/external/mesa3d/src/mesa/drivers/common/
Dmeta.c2754 _mesa_AlphaFunc(GL_NOTEQUAL, UBYTE_TO_FLOAT(bg)); in _mesa_meta_Bitmap()