/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
D | Color.java | 40 private final float[] rgba = new float[4]; field in Color 49 this.rgba[0] = (r & 255) / 256f; in Color() 50 this.rgba[1] = (g & 255) / 256f; in Color() 51 this.rgba[2] = (b & 255) / 256f; in Color() 52 this.rgba[3] = (a & 255) / 256f; in Color() 60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1); in Color() 61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1); in Color() 62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1); in Color() 63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1); in Color() 71 this.rgba[3] = a; in Color() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | pack.c | 531 _mesa_pack_rgba_span_from_uints(struct gl_context *ctx, GLuint n, GLuint rgba[][4], in _mesa_pack_rgba_span_from_uints() 539 pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 542 pack_int_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 545 pack_ushort_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 548 pack_short_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 551 pack_ubyte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 554 pack_byte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); in _mesa_pack_rgba_span_from_uints() 560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) in _mesa_pack_rgba_span_from_uints() 561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) in _mesa_pack_rgba_span_from_uints() 562 | (CLAMP(rgba[i][BCOMP], 0, 3) ); in _mesa_pack_rgba_span_from_uints() [all …]
|
D | pack_tmp.h | 28 SRC_TYPE rgba[][4], in FN_NAME() 36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME() 42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME() 48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME() 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); in FN_NAME() 60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME() 61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME() 67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); in FN_NAME() 68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); in FN_NAME() 69 dst[i*3+2] = SRC_CONVERT(rgba[i][BCOMP]); in FN_NAME() [all …]
|
D | texcompress_s3tc.c | 390 GLubyte rgba[4]; in _mesa_fetch_texel_rgb_dxt1() local 391 fetch_texel_2d_rgb_dxt1(texImage, i, j, k, rgba); in _mesa_fetch_texel_rgb_dxt1() 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() 419 GLubyte rgba[4]; in _mesa_fetch_texel_rgba_dxt1() local 420 fetch_texel_2d_rgba_dxt1(texImage, i, j, k, rgba); in _mesa_fetch_texel_rgba_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() [all …]
|
D | pixeltransfer.c | 43 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], in _mesa_scale_and_bias_rgba() 52 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; in _mesa_scale_and_bias_rgba() 58 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; in _mesa_scale_and_bias_rgba() 64 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; in _mesa_scale_and_bias_rgba() 70 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias; in _mesa_scale_and_bias_rgba() 80 _mesa_map_rgba( const struct gl_context *ctx, GLuint n, GLfloat rgba[][4] ) in _mesa_map_rgba() 92 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_map_rgba() 93 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_map_rgba() 94 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_map_rgba() 95 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_map_rgba() [all …]
|
D | accum.c | 290 GLfloat (*rgba)[4]; in accum_or_load() local 292 rgba = (GLfloat (*)[4]) malloc(width * 4 * sizeof(GLfloat)); in accum_or_load() 293 if (rgba) { in accum_or_load() 298 _mesa_unpack_rgba_row(colorRb->Format, width, colorMap, rgba); in accum_or_load() 302 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 303 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() 304 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 305 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 311 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 312 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() [all …]
|
D | texcompress_fxt1.c | 55 GLint i, GLint j, GLubyte *rgba); 164 GLubyte rgba[4]; in _mesa_fetch_texel_2d_f_rgba_fxt1() local 166 fxt1_decode_1(texImage->Map, texImage->RowStride, i, j, rgba); in _mesa_fetch_texel_2d_f_rgba_fxt1() 167 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() 179 GLubyte rgba[4]; in _mesa_fetch_texel_2d_f_rgb_fxt1() local 181 fxt1_decode_1(texImage->Map, texImage->RowStride, i, j, rgba); in _mesa_fetch_texel_2d_f_rgb_fxt1() 182 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); in _mesa_fetch_texel_2d_f_rgb_fxt1() [all …]
|
D | pixeltransfer.h | 34 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], 41 _mesa_map_rgba(const struct gl_context *ctx, GLuint n, GLfloat rgba[][4]); 45 GLuint n, const GLuint index[], GLfloat rgba[][4]); 58 GLuint n, GLfloat rgba[][4]);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | vg_translate.c | 33 VGuint n, VGfloat rgba[][4], in _vega_pack_rgba_span_float() 44 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() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blend.c | 124 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_transparency_ubyte() local 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ in blend_transparency_ubyte() 143 COPY_4UBV(rgba[i], dest[i]); in blend_transparency_ubyte() 147 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte() 148 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte() 149 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte() 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte() 155 rgba[i][RCOMP] = (GLubyte) r; in blend_transparency_ubyte() 156 rgba[i][GCOMP] = (GLubyte) g; in blend_transparency_ubyte() 157 rgba[i][BCOMP] = (GLubyte) b; in blend_transparency_ubyte() [all …]
|
D | s_texcombine.c | 95 float4_array ccolor[4], rgba; in texture_combine() local 98 GLchan (*rgbaChan)[4] = span->array->rgba; in texture_combine() 101 rgba = (float4_array) malloc(4 * n * sizeof(GLfloat)); in texture_combine() 102 if (!rgba) { in texture_combine() 115 free(rgba); in texture_combine() 121 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); in texture_combine() 122 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); in texture_combine() 123 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); in texture_combine() 124 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); in texture_combine() 152 argRGB[term] = rgba; in texture_combine() [all …]
|
D | s_texfilter.c | 772 GLfloat rgba[4]) in get_border_color() 776 rgba[0] = samp->BorderColor.f[0]; in get_border_color() 777 rgba[1] = samp->BorderColor.f[1]; in get_border_color() 778 rgba[2] = samp->BorderColor.f[2]; in get_border_color() 779 rgba[3] = 1.0F; in get_border_color() 782 rgba[0] = rgba[1] = rgba[2] = 0.0; in get_border_color() 783 rgba[3] = samp->BorderColor.f[3]; in get_border_color() 786 rgba[0] = rgba[1] = rgba[2] = samp->BorderColor.f[0]; in get_border_color() 787 rgba[3] = 1.0; in get_border_color() 790 rgba[0] = rgba[1] = rgba[2] = samp->BorderColor.f[0]; in get_border_color() [all …]
|
D | s_fog.c | 99 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \ 100 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 101 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 116 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \ 117 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 118 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 168 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_fog_rgba_span() local 172 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span() local 176 GLfloat (*rgba)[4] = span->array->attribs[FRAG_ATTRIB_COL0]; in _swrast_fog_rgba_span() local 187 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_fog_rgba_span() local [all …]
|
D | s_span.c | 232 GLubyte (*rgba)[4] = span->array->rgba8; in interpolate_int_colors() local 240 COPY_4UBV(rgba[i], color); in interpolate_int_colors() 253 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors() 254 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors() 255 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors() 256 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors() 267 GLushort (*rgba)[4] = span->array->rgba16; in interpolate_int_colors() local 275 COPY_4V(rgba[i], color); in interpolate_int_colors() 279 GLushort (*rgba)[4] = span->array->rgba16; in interpolate_int_colors() local 291 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors() [all …]
|
D | s_alpha.c | 114 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_alpha_test() local 117 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 120 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_alpha_test() local 123 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test() 126 GLfloat (*rgba)[4] = span->array->attribs[FRAG_ATTRIB_COL0]; in _swrast_alpha_test() local 128 ALPHA_TEST(rgba[i][ACOMP], ;); in _swrast_alpha_test()
|
/external/mesa3d/src/mesa/drivers/windows/gdi/ |
D | wmesa.c | 439 const GLubyte (*rgba)[4] = (const GLubyte (*)[4])values; in write_rgba_span_front() local 460 RGB(rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP])); in write_rgba_span_front() 465 RGB(rgba[i][RCOMP], rgba[i][GCOMP], rgba[i][BCOMP])); in write_rgba_span_front() 482 c.r=rgba[i][RCOMP]; in write_rgba_span_front() 483 c.g=rgba[i][GCOMP]; in write_rgba_span_front() 484 c.b=rgba[i][BCOMP]; in write_rgba_span_front() 485 c.a=rgba[i][ACOMP]; in write_rgba_span_front() 494 c.r=rgba[i][RCOMP]; in write_rgba_span_front() 495 c.g=rgba[i][GCOMP]; in write_rgba_span_front() 496 c.b=rgba[i][BCOMP]; in write_rgba_span_front() [all …]
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_yuv.c | 290 LLVMValueRef rgba; in rgb_to_rgba_aos() local 310 rgba = r; in rgb_to_rgba_aos() 311 rgba = LLVMBuildOr(builder, rgba, g, ""); in rgb_to_rgba_aos() 312 rgba = LLVMBuildOr(builder, rgba, b, ""); in rgb_to_rgba_aos() 313 rgba = LLVMBuildOr(builder, rgba, a, ""); in rgb_to_rgba_aos() 315 rgba = LLVMBuildBitCast(builder, rgba, in rgb_to_rgba_aos() 318 return rgba; in rgb_to_rgba_aos() 333 LLVMValueRef rgba; in uyvy_to_rgba_aos() local 337 rgba = rgb_to_rgba_aos(gallivm, n, r, g, b); in uyvy_to_rgba_aos() 339 return rgba; in uyvy_to_rgba_aos() [all …]
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_tex_sample.c | 757 print_sample(const char *function, const float *rgba) in print_sample() argument 761 … rgba[0], rgba[TGSI_NUM_CHANNELS], rgba[2*TGSI_NUM_CHANNELS], rgba[3*TGSI_NUM_CHANNELS]); in print_sample() 766 print_sample_4(const char *function, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in print_sample_4() 770 rgba[0][0], rgba[1][0], rgba[2][0], rgba[3][0], in print_sample_4() 771 rgba[0][1], rgba[1][1], rgba[2][1], rgba[3][1], in print_sample_4() 772 rgba[0][2], rgba[1][2], rgba[2][2], rgba[3][2], in print_sample_4() 773 rgba[0][3], rgba[1][3], rgba[2][3], rgba[3][3]); in print_sample_4() 786 float *rgba) in img_filter_2d_linear_repeat_POT() argument 828 rgba[TGSI_NUM_CHANNELS*c] = lerp_2d(xw, yw, in img_filter_2d_linear_repeat_POT() 834 print_sample(__FUNCTION__, rgba); in img_filter_2d_linear_repeat_POT() [all …]
|
/external/mesa3d/src/mesa/x86/ |
D | mmx_blend.S | 212 #define GMB_LOAD(rgba, dest, MPP, MQQ) \ argument 213 ONE(MOVD ( REGIND(rgba), MPP )) /* | | | | qa1 | qb1 | qg1 | qr1 */ ;\ 216 TWO(MOVQ ( REGIND(rgba), MPP )) /* qa2 | qb2 | qg2 | qr2 | qa1 | qb1 | qg1 | qr1 */ ;\ 240 #define GMB_STORE(rgba, MSS ) \ argument 241 ONE(MOVD ( MSS, REGIND(rgba) )) /* | | | | sa1 | sb1 | sg1 | sr1 */ ;\ 242 TWO(MOVQ ( MSS, REGIND(rgba) )) /* sa2 | sb2 | sg2 | sr2 | sa1 | sb1 | sg1 | sr1 */ 273 #define MAIN( rgba, dest ) \ argument 274 GMB_LOAD( rgba, dest, MM1, MM2 ) ;\ 279 GMB_STORE( rgba, MM3 ) 294 #define MAIN( rgba, dest ) \ argument [all …]
|
D | mmx.h | 36 GLvoid *rgba, const GLvoid *dest, 41 GLvoid *rgba, const GLvoid *dest, 46 GLvoid *rgba, const GLvoid *dest, 51 GLvoid *rgba, const GLvoid *dest, 56 GLvoid *rgba, const GLvoid *dest,
|
/external/chromium-trace/trace-viewer/tracing/tracing/ui/tracks/ |
D | track.css | 7 background-color: rgba(255, 255, 255, 0.5); 8 border: 1px solid rgba(0, 0, 0, 0.1); 9 color: rgba(0,0,0,0.2); 17 background-color: rgba(255, 255, 255, 1.0); 18 border: 1px solid rgba(0, 0, 0, 0.5); 19 box-shadow: 0 0 .05em rgba(0, 0, 0, 0.4); 20 color: rgba(0, 0, 0, 1);
|
/external/v8/tools/sodium/ |
D | styles.css | 2 background-color: rgba(150, 150, 255, 0.4); 6 background-color: rgba(200, 200, 255, 0.4); 32 background-color: rgba(50, 50, 245, 0.4); 41 background-color: rgba(0, 255, 0, 0.4); 49 background-color: rgba(255, 255, 0, 0.4); 57 background-color: rgba(128, 128, 128, 0.4); 65 background-color: rgba(255, 0, 0, 0.4);
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | ColorRGBA.java | 160 public ColorRGBA(ColorRGBA rgba) { in ColorRGBA() argument 161 this.a = rgba.a; in ColorRGBA() 162 this.r = rgba.r; in ColorRGBA() 163 this.g = rgba.g; in ColorRGBA() 164 this.b = rgba.b; in ColorRGBA() 193 public ColorRGBA set(ColorRGBA rgba) { in set() argument 194 if (rgba == null) { in set() 200 r = rgba.r; in set() 201 g = rgba.g; in set() 202 b = rgba.b; in set() [all …]
|
/external/okhttp/website/static/ |
D | bootstrap-combined.min.css | 9 …rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,… 18 …rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255…
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_pack_color.h | 334 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) in util_pack_color() 343 r = float_to_ubyte(rgba[0]); in util_pack_color() 344 g = float_to_ubyte(rgba[1]); in util_pack_color() 345 b = float_to_ubyte(rgba[2]); in util_pack_color() 346 a = float_to_ubyte(rgba[3]); in util_pack_color() 413 uc->f[0] = rgba[0]; in util_pack_color() 414 uc->f[1] = rgba[1]; in util_pack_color() 415 uc->f[2] = rgba[2]; in util_pack_color() 416 uc->f[3] = rgba[3]; in util_pack_color() 421 uc->f[0] = rgba[0]; in util_pack_color() [all …]
|