Home
last modified time | relevance | path

Searched refs:rgba (Results 1 – 25 of 220) sorted by relevance

123456789

/external/mesa3d/src/mesa/swrast/
Ds_blend.c121 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_transparency_ubyte() local
137 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ in blend_transparency_ubyte()
140 COPY_4UBV(rgba[i], dest[i]); in blend_transparency_ubyte()
144 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte()
145 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte()
146 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte()
147 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte()
152 rgba[i][RCOMP] = (GLubyte) r; in blend_transparency_ubyte()
153 rgba[i][GCOMP] = (GLubyte) g; in blend_transparency_ubyte()
154 rgba[i][BCOMP] = (GLubyte) b; in blend_transparency_ubyte()
[all …]
Ds_texcombine.c95 float4_array ccolor[4], rgba; in texture_combine() local
98 GLchan (*rgbaChan)[4] = span->array->rgba; in texture_combine()
101 rgba = 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 …]
Ds_texfilter.c775 GLfloat rgba[4]) in get_border_color()
779 rgba[0] = samp->BorderColor.f[0]; in get_border_color()
780 rgba[1] = samp->BorderColor.f[1]; in get_border_color()
781 rgba[2] = samp->BorderColor.f[2]; in get_border_color()
782 rgba[3] = 1.0F; in get_border_color()
785 rgba[0] = rgba[1] = rgba[2] = 0.0; in get_border_color()
786 rgba[3] = samp->BorderColor.f[3]; in get_border_color()
789 rgba[0] = rgba[1] = rgba[2] = samp->BorderColor.f[0]; in get_border_color()
790 rgba[3] = 1.0; in get_border_color()
793 rgba[0] = rgba[1] = rgba[2] = samp->BorderColor.f[0]; in get_border_color()
[all …]
Ds_fog.c99 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[VARYING_SLOT_COL0]; in _swrast_fog_rgba_span() local
187 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_fog_rgba_span() local
[all …]
Ds_span.c233 GLubyte (*rgba)[4] = span->array->rgba8; in interpolate_int_colors() local
241 COPY_4UBV(rgba[i], color); in interpolate_int_colors()
254 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors()
255 rgba[i][GCOMP] = FixedToChan(g); in interpolate_int_colors()
256 rgba[i][BCOMP] = FixedToChan(b); in interpolate_int_colors()
257 rgba[i][ACOMP] = FixedToChan(a); in interpolate_int_colors()
268 GLushort (*rgba)[4] = span->array->rgba16; in interpolate_int_colors() local
276 COPY_4V(rgba[i], color); in interpolate_int_colors()
280 GLushort (*rgba)[4] = span->array->rgba16; in interpolate_int_colors() local
292 rgba[i][RCOMP] = FixedToChan(r); in interpolate_int_colors()
[all …]
/external/mesa3d/src/gallium/drivers/ilo/core/
Dilo_state_sampler.c506 float rgba[4]; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE() local
524 memcpy(rgba, info->rgba.f, sizeof(rgba)); in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
527 dw[1] = fui(rgba[0]); in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
528 dw[2] = fui(rgba[1]); in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
529 dw[3] = fui(rgba[2]); in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
530 dw[4] = fui(rgba[3]); in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
533 dw[5] = util_float_to_half(rgba[0]) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
534 util_float_to_half(rgba[1]) << 16; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
535 dw[6] = util_float_to_half(rgba[2]) | in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
536 util_float_to_half(rgba[3]) << 16; in sampler_border_set_gen6_SAMPLER_BORDER_COLOR_STATE()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_image.c209 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in sp_tgsi_load()
252 rgba[c][j] = 0; in sp_tgsi_load()
255 ((int32_t *)rgba[c])[j] = 1; in sp_tgsi_load()
257 rgba[c][j] = 1.0; in sp_tgsi_load()
273 ((int32_t *)rgba[c])[j] = sdata[c]; in sp_tgsi_load()
281 ((uint32_t *)rgba[c])[j] = sdata[c]; in sp_tgsi_load()
289 rgba[c][j] = sdata[c]; in sp_tgsi_load()
296 rgba[c][j] = 0; in sp_tgsi_load()
311 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in sp_tgsi_store()
358 sdata[c] = ((int32_t *)rgba[c])[j]; in sp_tgsi_store()
[all …]
Dsp_buffer.c52 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in sp_tgsi_load()
87 rgba[c][j] = 0; in sp_tgsi_load()
93 ((uint32_t *)rgba[c])[j] = sdata[0]; in sp_tgsi_load()
99 memset(rgba, 0, TGSI_NUM_CHANNELS * TGSI_QUAD_SIZE * 4); in sp_tgsi_load()
110 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in sp_tgsi_store()
147 temp[0] = ((uint32_t *)rgba[c])[j]; in sp_tgsi_store()
164 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], in handle_op_uint()
180 ((uint32_t *)rgba[c])[qi] = sdata[c]; in handle_op_uint()
189 sdata[c] += ((uint32_t *)rgba[c])[qi]; in handle_op_uint()
190 ((uint32_t *)rgba[c])[qi] = temp; in handle_op_uint()
[all …]
Dsp_tex_sample.c985 print_sample(const char *function, const float *rgba) in print_sample() argument
989rgba[0], rgba[TGSI_NUM_CHANNELS], rgba[2*TGSI_NUM_CHANNELS], rgba[3*TGSI_NUM_CHANNELS]); in print_sample()
994 print_sample_4(const char *function, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in print_sample_4()
998 rgba[0][0], rgba[1][0], rgba[2][0], rgba[3][0], in print_sample_4()
999 rgba[0][1], rgba[1][1], rgba[2][1], rgba[3][1], in print_sample_4()
1000 rgba[0][2], rgba[1][2], rgba[2][2], rgba[3][2], in print_sample_4()
1001 rgba[0][3], rgba[1][3], rgba[2][3], rgba[3][3]); in print_sample_4()
1011 float *rgba) in img_filter_2d_linear_repeat_POT() argument
1051 rgba[TGSI_NUM_CHANNELS*c] = lerp_2d(xw, yw, in img_filter_2d_linear_repeat_POT()
1057 print_sample(__FUNCTION__, rgba); in img_filter_2d_linear_repeat_POT()
[all …]
/external/mesa3d/src/mesa/main/
Dpixeltransfer.c45 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], in _mesa_scale_and_bias_rgba()
54 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias; in _mesa_scale_and_bias_rgba()
60 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias; in _mesa_scale_and_bias_rgba()
66 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias; in _mesa_scale_and_bias_rgba()
72 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias; in _mesa_scale_and_bias_rgba()
82 _mesa_map_rgba( const struct gl_context *ctx, GLuint n, GLfloat rgba[][4] ) in _mesa_map_rgba()
94 GLfloat r = CLAMP(rgba[i][RCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
95 GLfloat g = CLAMP(rgba[i][GCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
96 GLfloat b = CLAMP(rgba[i][BCOMP], 0.0F, 1.0F); in _mesa_map_rgba()
97 GLfloat a = CLAMP(rgba[i][ACOMP], 0.0F, 1.0F); in _mesa_map_rgba()
[all …]
Daccum.c277 GLfloat (*rgba)[4]; in accum_or_load() local
279 rgba = malloc(width * 4 * sizeof(GLfloat)); in accum_or_load()
280 if (rgba) { in accum_or_load()
285 _mesa_unpack_rgba_row(colorRb->Format, width, colorMap, rgba); in accum_or_load()
289 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
290 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
291 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load()
292 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load()
298 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load()
299 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load()
[all …]
Dtexcompress_fxt1.c49 GLint i, GLint j, GLubyte *rgba);
1378 fxt1_decode_1HI (const GLubyte *code, GLint t, GLubyte *rgba) in fxt1_decode_1HI() argument
1387 rgba[RCOMP] = rgba[GCOMP] = rgba[BCOMP] = rgba[ACOMP] = 0; in fxt1_decode_1HI()
1404 rgba[RCOMP] = r; in fxt1_decode_1HI()
1405 rgba[GCOMP] = g; in fxt1_decode_1HI()
1406 rgba[BCOMP] = b; in fxt1_decode_1HI()
1407 rgba[ACOMP] = 255; in fxt1_decode_1HI()
1413 fxt1_decode_1CHROMA (const GLubyte *code, GLint t, GLubyte *rgba) in fxt1_decode_1CHROMA() argument
1428 rgba[BCOMP] = UP5(kk); in fxt1_decode_1CHROMA()
1429 rgba[GCOMP] = UP5(kk >> 5); in fxt1_decode_1CHROMA()
[all …]
Dpack.c1350 _mesa_pack_luminance_from_rgba_float(GLuint n, GLfloat rgba[][4], in _mesa_pack_luminance_from_rgba_float()
1361 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1366 dst[i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1373 GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1375 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float()
1379 dst[2*i] = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; in _mesa_pack_luminance_from_rgba_float()
1380 dst[2*i+1] = rgba[i][ACOMP]; in _mesa_pack_luminance_from_rgba_float()
1457 GLuint rgba[][4], bool rgba_is_signed, in _mesa_pack_luminance_from_rgba_integer()
1490 lum64 = (uint64_t) rgba[i][RCOMP] + in _mesa_pack_luminance_from_rgba_integer()
1491 (uint64_t) rgba[i][GCOMP] + in _mesa_pack_luminance_from_rgba_integer()
[all …]
/external/skqp/src/core/
DSkRasterPipeline.cpp88 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
89 SkASSERT(0 <= rgba[0] && rgba[0] <= 1); in append_constant_color()
90 SkASSERT(0 <= rgba[1] && rgba[1] <= 1); in append_constant_color()
91 SkASSERT(0 <= rgba[2] && rgba[2] <= 1); in append_constant_color()
92 SkASSERT(0 <= rgba[3] && rgba[3] <= 1); in append_constant_color()
94 if (rgba[0] == 0 && rgba[1] == 0 && rgba[2] == 0 && rgba[3] == 1) { in append_constant_color()
97 } else if (rgba[0] == 1 && rgba[1] == 1 && rgba[2] == 1 && rgba[3] == 1) { in append_constant_color()
102 Sk4f color = Sk4f::Load(rgba); in append_constant_color()
107 ctx->rgba[0] = (uint16_t)color[0]; in append_constant_color()
108 ctx->rgba[1] = (uint16_t)color[1]; in append_constant_color()
[all …]
/external/skia/src/core/
DSkRasterPipeline.cpp88 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color()
89 SkASSERT(0 <= rgba[0] && rgba[0] <= 1); in append_constant_color()
90 SkASSERT(0 <= rgba[1] && rgba[1] <= 1); in append_constant_color()
91 SkASSERT(0 <= rgba[2] && rgba[2] <= 1); in append_constant_color()
92 SkASSERT(0 <= rgba[3] && rgba[3] <= 1); in append_constant_color()
94 if (rgba[0] == 0 && rgba[1] == 0 && rgba[2] == 0 && rgba[3] == 1) { in append_constant_color()
97 } else if (rgba[0] == 1 && rgba[1] == 1 && rgba[2] == 1 && rgba[3] == 1) { in append_constant_color()
102 Sk4f color = Sk4f::Load(rgba); in append_constant_color()
107 ctx->rgba[0] = (uint16_t)color[0]; in append_constant_color()
108 ctx->rgba[1] = (uint16_t)color[1]; in append_constant_color()
[all …]
/external/skia/src/opts/
DSkSwizzler_opts.h205 uint8x8x4_t rgba = vld4_u8((const uint8_t*) src); in premul_should_swapRB() local
207 uint8x8_t a = rgba.val[3], in premul_should_swapRB()
208 b = rgba.val[2], in premul_should_swapRB()
209 g = rgba.val[1], in premul_should_swapRB()
210 r = rgba.val[0]; in premul_should_swapRB()
219 rgba.val[2] = r; in premul_should_swapRB()
220 rgba.val[1] = g; in premul_should_swapRB()
221 rgba.val[0] = b; in premul_should_swapRB()
223 rgba.val[2] = b; in premul_should_swapRB()
224 rgba.val[1] = g; in premul_should_swapRB()
[all …]
/external/skqp/src/opts/
DSkSwizzler_opts.h205 uint8x8x4_t rgba = vld4_u8((const uint8_t*) src); in premul_should_swapRB() local
207 uint8x8_t a = rgba.val[3], in premul_should_swapRB()
208 b = rgba.val[2], in premul_should_swapRB()
209 g = rgba.val[1], in premul_should_swapRB()
210 r = rgba.val[0]; in premul_should_swapRB()
219 rgba.val[2] = r; in premul_should_swapRB()
220 rgba.val[1] = g; in premul_should_swapRB()
221 rgba.val[0] = b; in premul_should_swapRB()
223 rgba.val[2] = b; in premul_should_swapRB()
224 rgba.val[1] = g; in premul_should_swapRB()
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_yuv.c322 LLVMValueRef rgba; in rgb_to_rgba_aos() local
349 rgba = r; in rgb_to_rgba_aos()
350 rgba = LLVMBuildOr(builder, rgba, g, ""); in rgb_to_rgba_aos()
351 rgba = LLVMBuildOr(builder, rgba, b, ""); in rgb_to_rgba_aos()
352 rgba = LLVMBuildOr(builder, rgba, a, ""); in rgb_to_rgba_aos()
354 rgba = LLVMBuildBitCast(builder, rgba, in rgb_to_rgba_aos()
357 return rgba; in rgb_to_rgba_aos()
372 LLVMValueRef rgba; in uyvy_to_rgba_aos() local
376 rgba = rgb_to_rgba_aos(gallivm, n, r, g, b); in uyvy_to_rgba_aos()
378 return rgba; in uyvy_to_rgba_aos()
[all …]
/external/mesa3d/src/mesa/x86/
Dmmx_blend.S212 #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 …]
/external/okhttp/website/static/
Dbootstrap-combined.min.css9rgba(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,…
18rgba(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/
Du_debug_image.c209 float *rgba; in debug_dump_transfer_bmp() local
214 rgba = MALLOC(transfer->box.width * in debug_dump_transfer_bmp()
218 if (!rgba) in debug_dump_transfer_bmp()
223 rgba); in debug_dump_transfer_bmp()
227 rgba, transfer->box.width); in debug_dump_transfer_bmp()
229 FREE(rgba); in debug_dump_transfer_bmp()
237 float *rgba, unsigned stride) in debug_dump_float_rgba_bmp() argument
244 if (!rgba) in debug_dump_float_rgba_bmp()
274 float *ptr = rgba + (stride * y * 4); in debug_dump_float_rgba_bmp()
293 const ubyte *rgba, unsigned stride) in debug_dump_ubyte_rgba_bmp() argument
[all …]
Du_pack_color.h337 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) in util_pack_color()
346 r = float_to_ubyte(rgba[0]); in util_pack_color()
347 g = float_to_ubyte(rgba[1]); in util_pack_color()
348 b = float_to_ubyte(rgba[2]); in util_pack_color()
349 a = float_to_ubyte(rgba[3]); in util_pack_color()
416 uc->f[0] = rgba[0]; in util_pack_color()
417 uc->f[1] = rgba[1]; in util_pack_color()
418 uc->f[2] = rgba[2]; in util_pack_color()
419 uc->f[3] = rgba[3]; in util_pack_color()
424 uc->f[0] = rgba[0]; in util_pack_color()
[all …]
/external/v8/tools/sodium/
Dstyles.css2 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/skqp/src/jumper/
DSkJumper_stages_lowp.cpp278 r = c->rgba[0]; in STAGE_PP()
279 g = c->rgba[1]; in STAGE_PP()
280 b = c->rgba[2]; in STAGE_PP()
281 a = c->rgba[3]; in STAGE_PP()
505 SI void from_8888(U32 rgba, U16* r, U16* g, U16* b, U16* a) { in from_8888() argument
509 split(rgba, &_01, &_23); in from_8888()
512 rgba = join<U32>(_02, _13); in from_8888()
524 *r = cast_U16(rgba & 65535) & 255; in from_8888()
525 *g = cast_U16(rgba & 65535) >> 8; in from_8888()
526 *b = cast_U16(rgba >> 16) & 255; in from_8888()
[all …]
/external/skia/src/jumper/
DSkJumper_stages_lowp.cpp278 r = c->rgba[0]; in STAGE_PP()
279 g = c->rgba[1]; in STAGE_PP()
280 b = c->rgba[2]; in STAGE_PP()
281 a = c->rgba[3]; in STAGE_PP()
505 SI void from_8888(U32 rgba, U16* r, U16* g, U16* b, U16* a) { in from_8888() argument
509 split(rgba, &_01, &_23); in from_8888()
512 rgba = join<U32>(_02, _13); in from_8888()
524 *r = cast_U16(rgba & 65535) & 255; in from_8888()
525 *g = cast_U16(rgba & 65535) >> 8; in from_8888()
526 *b = cast_U16(rgba >> 16) & 255; in from_8888()
[all …]

123456789