Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/main/
Dformat_pack.c1390 du = FLOAT_TO_BYTE(CLAMP(src[0], 0.0F, 1.0F)); in pack_float_DUDV8()
1391 dv = FLOAT_TO_BYTE(CLAMP(src[1], 0.0F, 1.0F)); in pack_float_DUDV8()
1428 *d = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_R8()
1440 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RG88_REV()
1441 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RG88_REV()
1454 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBX8888()
1455 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBX8888()
1456 GLbyte b = FLOAT_TO_BYTE(CLAMP(src[BCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBX8888()
1470 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA8888()
1471 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f)); in pack_float_SIGNED_RGBA8888()
[all …]
Dpack.c1492 dst[i] = FLOAT_TO_BYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1496 dst[i] = FLOAT_TO_BYTE(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1500 dst[i] = FLOAT_TO_BYTE(rgba[i][BCOMP]); in _mesa_pack_rgba_span_float()
1504 dst[i] = FLOAT_TO_BYTE(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1508 dst[i] = FLOAT_TO_BYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1512 dst[i*2+0] = FLOAT_TO_BYTE(luminance[i]); in _mesa_pack_rgba_span_float()
1513 dst[i*2+1] = FLOAT_TO_BYTE(rgba[i][ACOMP]); in _mesa_pack_rgba_span_float()
1518 dst[i*2+0] = FLOAT_TO_BYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
1519 dst[i*2+1] = FLOAT_TO_BYTE(rgba[i][GCOMP]); in _mesa_pack_rgba_span_float()
1524 dst[i*3+0] = FLOAT_TO_BYTE(rgba[i][RCOMP]); in _mesa_pack_rgba_span_float()
[all …]
Dmacros.h54 #define FLOAT_TO_BYTE(X) ( (((GLint) (255.0F * (X))) - 1) / 2 ) macro