/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
Color.java | 40 private final float[] rgba = new float[4];
field in class:Color 49 this.rgba[0] = (r & 255) / 256f;
50 this.rgba[1] = (g & 255) / 256f;
51 this.rgba[2] = (b & 255) / 256f;
52 this.rgba[3] = (a & 255) / 256f;
60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1);
61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1);
62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1);
63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1);
71 this.rgba[3] = a; [all...] |
/frameworks/base/tests/RenderScriptTests/SceneGraph/res/raw/ |
texture.glsl | 4 lowp vec4 col = texture2D(UNI_color, varTex0).rgba;
|
/packages/wallpapers/MagicSmoke/res/raw/ |
pf5tex.glslf | 11 lowp vec4 col = mix(UNI_clearColor, tex.rgba, tex.a); 14 col = mix(col, tex.rgba, tex.a); 17 col = mix(col, tex.rgba, tex.a); 20 col = mix(col, tex.rgba, tex.a); 23 col = mix(col, tex.rgba, tex.a);
|
pf4tex.glslf | 10 lowp vec4 col = mix(UNI_clearColor, tex.rgba, tex.a); 13 col = mix(col, tex.rgba, tex.a); 16 col = mix(col, tex.rgba, tex.a); 19 col = mix(col, tex.rgba, tex.a);
|
/external/chromium-trace/trace-viewer/src/tracing/tracks/ |
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/chromium_org/third_party/mesa/src/src/mesa/main/ |
pack_tmp.h | 28 SRC_TYPE rgba[][4], 36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); 42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); 48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); 61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); 67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); 68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); 69 dst[i*3+2] = SRC_CONVERT(rgba[i][BCOMP]) [all...] |
pack.c | 531 _mesa_pack_rgba_span_from_uints(struct gl_context *ctx, GLuint n, GLuint rgba[][4], 539 pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 542 pack_int_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 545 pack_ushort_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 548 pack_short_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 551 pack_ubyte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 554 pack_byte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) 561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) 562 | (CLAMP(rgba[i][BCOMP], 0, 3) ) [all...] |
texcompress_s3tc.c | 231 /* convert image to RGBA/GLubyte */ 284 /* convert image to RGBA/GLubyte */ 336 /* convert image to RGBA/GLubyte */ 390 GLubyte rgba[4]; local 391 fetch_texel_2d_rgb_dxt1(texImage, i, j, k, rgba); 392 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); 393 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); 394 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); 395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 419 GLubyte rgba[4] local 448 GLubyte rgba[4]; local 477 GLubyte rgba[4]; local 491 GLubyte rgba[4]; local 504 GLubyte rgba[4]; local 517 GLubyte rgba[4]; local 530 GLubyte rgba[4]; local [all...] |
pixeltransfer.c | 40 * Apply scale and bias factors to an array of RGBA pixels. 43 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], 52 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; 58 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; 64 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; 70 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias [all...] |
/external/mesa3d/src/mesa/main/ |
pack_tmp.h | 28 SRC_TYPE rgba[][4], 36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); 42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); 48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); 61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); 67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); 68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); 69 dst[i*3+2] = SRC_CONVERT(rgba[i][BCOMP]) [all...] |
pack.c | 531 _mesa_pack_rgba_span_from_uints(struct gl_context *ctx, GLuint n, GLuint rgba[][4], 539 pack_uint_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 542 pack_int_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 545 pack_ushort_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 548 pack_short_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 551 pack_ubyte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 554 pack_byte_from_uint_rgba(ctx, dstAddr, dstFormat, rgba, n); 560 dst[i] = (CLAMP(rgba[i][RCOMP], 0, 7) << 5) 561 | (CLAMP(rgba[i][GCOMP], 0, 7) << 2) 562 | (CLAMP(rgba[i][BCOMP], 0, 3) ) [all...] |
texcompress_s3tc.c | 231 /* convert image to RGBA/GLubyte */ 284 /* convert image to RGBA/GLubyte */ 336 /* convert image to RGBA/GLubyte */ 390 GLubyte rgba[4]; local 391 fetch_texel_2d_rgb_dxt1(texImage, i, j, k, rgba); 392 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); 393 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOMP]); 394 texel[BCOMP] = UBYTE_TO_FLOAT(rgba[BCOMP]); 395 texel[ACOMP] = UBYTE_TO_FLOAT(rgba[ACOMP]); 419 GLubyte rgba[4] local 448 GLubyte rgba[4]; local 477 GLubyte rgba[4]; local 491 GLubyte rgba[4]; local 504 GLubyte rgba[4]; local 517 GLubyte rgba[4]; local 530 GLubyte rgba[4]; local [all...] |
pixeltransfer.c | 40 * Apply scale and bias factors to an array of RGBA pixels. 43 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], 52 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; 58 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; 64 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; 70 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
vg_translate.c | 33 VGuint n, VGfloat rgba[][4], 44 r = float_to_ubyte(rgba[i][0]); 45 g = float_to_ubyte(rgba[i][1]); 46 b = float_to_ubyte(rgba[i][2]); 57 r = float_to_ubyte(rgba[i][0]); 58 g = float_to_ubyte(rgba[i][1]); 59 b = float_to_ubyte(rgba[i][2]); 60 a = float_to_ubyte(rgba[i][3]); 70 r = float_to_ubyte(rgba[i][0]); 71 g = float_to_ubyte(rgba[i][1]) [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
vg_translate.c | 33 VGuint n, VGfloat rgba[][4], 44 r = float_to_ubyte(rgba[i][0]); 45 g = float_to_ubyte(rgba[i][1]); 46 b = float_to_ubyte(rgba[i][2]); 57 r = float_to_ubyte(rgba[i][0]); 58 g = float_to_ubyte(rgba[i][1]); 59 b = float_to_ubyte(rgba[i][2]); 60 a = float_to_ubyte(rgba[i][3]); 70 r = float_to_ubyte(rgba[i][0]); 71 g = float_to_ubyte(rgba[i][1]) [all...] |
/frameworks/base/tests/RenderScriptTests/MiscSamples/res/raw/ |
multitexf.glsl | 5 lowp vec4 col0 = texture2D(UNI_Tex0, t0).rgba; 6 lowp vec4 col1 = texture2D(UNI_Tex1, t0*4.0).rgba; 7 lowp vec4 col2 = texture2D(UNI_Tex2, t0).rgba;
|
/frameworks/base/tests/RenderScriptTests/PerfTest/res/raw/ |
multitexf.glsl | 5 lowp vec4 col0 = texture2D(UNI_Tex0, t0).rgba; 6 lowp vec4 col1 = texture2D(UNI_Tex1, t0*4.0).rgba; 7 lowp vec4 col2 = texture2D(UNI_Tex2, t0).rgba;
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_blend.c | 124 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ 143 COPY_4UBV(rgba[i], dest[i]); 147 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; 148 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; 149 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; 155 rgba[i][RCOMP] = (GLubyte) r; 156 rgba[i][GCOMP] = (GLubyte) g; 157 rgba[i][BCOMP] = (GLubyte) b [all...] |
s_texcombine.c | 86 * span->array->rgba: incoming/result fragment colors 103 float4_array ccolor[4], rgba; local 106 GLchan (*rgbaChan)[4] = span->array->rgba; 109 rgba = (float4_array) malloc(4 * n * sizeof(GLfloat)); 110 if (!rgba) { 123 free(rgba); 129 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); 130 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); 131 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); 132 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]) [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_blend.c | 124 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; 140 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ 143 COPY_4UBV(rgba[i], dest[i]); 147 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; 148 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; 149 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; 150 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; 155 rgba[i][RCOMP] = (GLubyte) r; 156 rgba[i][GCOMP] = (GLubyte) g; 157 rgba[i][BCOMP] = (GLubyte) b [all...] |
s_texcombine.c | 78 * span->array->rgba: incoming/result fragment colors 95 float4_array ccolor[4], rgba; local 98 GLchan (*rgbaChan)[4] = span->array->rgba; 101 rgba = (float4_array) malloc(4 * n * sizeof(GLfloat)); 102 if (!rgba) { 115 free(rgba); 121 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); 122 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); 123 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); 124 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]) [all...] |
/external/chromium_org/chrome/browser/resources/ntp_android/ |
mostvisited.css | 29 background: rgba(51, 181, 229, 0.4); 44 -webkit-box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.2); 50 from(rgba(0, 0, 0, 0.05)), 51 to(rgba(0, 0, 0, 0.05))), 56 from(rgba(255, 255, 255, 0)), 57 to(rgba(255, 255, 255, 1.0))), 62 from(rgba(255, 255, 255, 0)), 63 to(rgba(255, 255, 255, 1.0))); 80 from(rgba(0, 0, 0, 0)), 81 to(rgba(0, 0, 0, 0.05))) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
colorspace.cpp | 26 // RGBA helper struct allows access as int and individual channels 28 union Rgba { 44 // Convert YUV to RGBA 46 static inline Rgba convertYuvToRgba(int32 y, int32 u, int32 v) { 47 Rgba color; 59 Rgba* const pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); 66 Rgba* pOutColor = pOutput; 100 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input)) [all...] |
/external/chromium_org/chrome/browser/resources/local_ntp/ |
instant_iframe_validation.js | 30 * Validates a RGBA color component. It must be a number between 0 and 255. 31 * @param {number} component An RGBA component. 40 * Converts an Array of color components into RGBA format "rgba(R,G,B,A)". 41 * @param {Array.<number>} rgbaColor Array of rgba color components. 42 * @return {?string} CSS color in RGBA format or null if invalid. 51 return 'rgba(' +
|
/external/chromium_org/chrome/browser/resources/net_internals/ |
waterfall_view.css | 38 background-color: rgba(255, 255, 255, 0.8); 56 border-color: rgba(255, 0, 0, 0.8); 63 background: -webkit-linear-gradient(top, #EEE, rgba(0, 0, 0, 0.5)); 67 background: -webkit-linear-gradient(top, #EEE, rgba(200, 200, 200, 0.5)); 71 background: -webkit-linear-gradient(top, #EEE, rgba(255, 0, 0, 0.5)); 75 background: -webkit-linear-gradient(top, #EEE, rgba(0, 0, 255, 0.5)); 79 background: -webkit-linear-gradient(top, #EEE, rgba(0, 255, 0, 0.5)); 83 background: -webkit-linear-gradient(top, #EEE, rgba(122, 122, 0, 0.5)); 87 background: -webkit-linear-gradient(top, #EEE, rgba(0, 122, 122, 0.5)); 91 background: -webkit-linear-gradient(top, #EEE, rgba(122, 0, 122, 0.5)) [all...] |