/third_party/mesa3d/src/mesa/swrast/ |
D | s_blend.c | 121 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 …]
|
D | s_texcombine.c | 96 float4_array ccolor[4], rgba; in texture_combine() local 99 GLchan (*rgbaChan)[4] = span->array->rgba; in texture_combine() 102 rgba = malloc(4 * n * sizeof(GLfloat)); in texture_combine() 103 if (!rgba) { in texture_combine() 116 free(rgba); in texture_combine() 122 rgba[i][RCOMP] = CHAN_TO_FLOAT(rgbaChan[i][RCOMP]); in texture_combine() 123 rgba[i][GCOMP] = CHAN_TO_FLOAT(rgbaChan[i][GCOMP]); in texture_combine() 124 rgba[i][BCOMP] = CHAN_TO_FLOAT(rgbaChan[i][BCOMP]); in texture_combine() 125 rgba[i][ACOMP] = CHAN_TO_FLOAT(rgbaChan[i][ACOMP]); in texture_combine() 153 argRGB[term] = rgba; in texture_combine() [all …]
|
D | s_texfilter.c | 775 GLfloat rgba[4]) in get_border_color() 779 rgba[0] = samp->Attrib.state.border_color.f[0]; in get_border_color() 780 rgba[1] = samp->Attrib.state.border_color.f[1]; in get_border_color() 781 rgba[2] = samp->Attrib.state.border_color.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->Attrib.state.border_color.f[3]; in get_border_color() 789 rgba[0] = rgba[1] = rgba[2] = samp->Attrib.state.border_color.f[0]; in get_border_color() 790 rgba[3] = 1.0; in get_border_color() 793 rgba[0] = rgba[1] = rgba[2] = samp->Attrib.state.border_color.f[0]; in get_border_color() [all …]
|
D | s_fog.c | 100 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \ 101 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 102 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 117 rgba[i][RCOMP] = (TYPE) (f * rgba[i][RCOMP] + oneMinusF * rFog); \ 118 rgba[i][GCOMP] = (TYPE) (f * rgba[i][GCOMP] + oneMinusF * gFog); \ 119 rgba[i][BCOMP] = (TYPE) (f * rgba[i][BCOMP] + oneMinusF * bFog); \ 169 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_fog_rgba_span() local 173 GLushort (*rgba)[4] = span->array->rgba16; in _swrast_fog_rgba_span() local 177 GLfloat (*rgba)[4] = span->array->attribs[VARYING_SLOT_COL0]; in _swrast_fog_rgba_span() local 188 GLubyte (*rgba)[4] = span->array->rgba8; in _swrast_fog_rgba_span() local [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkColorSpaceXformSteps.cpp | 106 void SkColorSpaceXformSteps::apply(float* rgba) const { in apply() 111 float invA = is_finite(1.0f / rgba[3]) ? 1.0f / rgba[3] : 0; in apply() 112 rgba[0] *= invA; in apply() 113 rgba[1] *= invA; in apply() 114 rgba[2] *= invA; in apply() 120 rgba[0] = skcms_TransferFunction_eval(&tf, rgba[0]); in apply() 121 rgba[1] = skcms_TransferFunction_eval(&tf, rgba[1]); in apply() 122 rgba[2] = skcms_TransferFunction_eval(&tf, rgba[2]); in apply() 125 float temp[3] = { rgba[0], rgba[1], rgba[2] }; in apply() 127 rgba[i] = src_to_dst_matrix[ i] * temp[0] + in apply() [all …]
|
D | SkRasterPipeline.cpp | 102 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color() 104 SkASSERT(0 <= rgba[3] && rgba[3] <= 1); in append_constant_color() 106 if (rgba[0] == 0 && rgba[1] == 0 && rgba[2] == 0 && rgba[3] == 1) { in append_constant_color() 108 } else if (rgba[0] == 1 && rgba[1] == 1 && rgba[2] == 1 && rgba[3] == 1) { in append_constant_color() 112 Sk4f color = Sk4f::Load(rgba); in append_constant_color() 117 if (0 <= rgba[0] && rgba[0] <= rgba[3] && in append_constant_color() 118 0 <= rgba[1] && rgba[1] <= rgba[3] && in append_constant_color() 119 0 <= rgba[2] && rgba[2] <= rgba[3]) { in append_constant_color() 122 ctx->rgba[0] = (uint16_t)color[0]; in append_constant_color() 123 ctx->rgba[1] = (uint16_t)color[1]; in append_constant_color() [all …]
|
D | SkDraw_atlas.cpp | 36 static void load_color(SkRasterPipeline_UniformColorCtx* ctx, const float rgba[]) { in load_color() argument 38 ctx->rgba[0] = SkScalarRoundToInt(rgba[0]*255); ctx->r = rgba[0]; in load_color() 39 ctx->rgba[1] = SkScalarRoundToInt(rgba[1]*255); ctx->g = rgba[1]; in load_color() 40 ctx->rgba[2] = SkScalarRoundToInt(rgba[2]*255); ctx->b = rgba[2]; in load_color() 41 ctx->rgba[3] = SkScalarRoundToInt(rgba[3]*255); ctx->a = rgba[3]; in load_color()
|
/third_party/mesa3d/src/mesa/main/ |
D | pixeltransfer.c | 45 _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 …]
|
D | accum.c | 233 GLfloat (*rgba)[4]; in accum_or_load() local 235 rgba = malloc(width * 4 * sizeof(GLfloat)); in accum_or_load() 236 if (rgba) { in accum_or_load() 241 _mesa_unpack_rgba_row(colorRb->Format, width, colorMap, rgba); in accum_or_load() 245 acc[i * 4 + 0] = (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 246 acc[i * 4 + 1] = (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() 247 acc[i * 4 + 2] = (GLshort) (rgba[i][BCOMP] * scale); in accum_or_load() 248 acc[i * 4 + 3] = (GLshort) (rgba[i][ACOMP] * scale); in accum_or_load() 254 acc[i * 4 + 0] += (GLshort) (rgba[i][RCOMP] * scale); in accum_or_load() 255 acc[i * 4 + 1] += (GLshort) (rgba[i][GCOMP] * scale); in accum_or_load() [all …]
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_image.c | 209 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() 271 ((uint32_t *)rgba[c])[j] = sdata[c]; in sp_tgsi_load() 277 rgba[c][j] = 0; in sp_tgsi_load() 292 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in sp_tgsi_store() 338 sdata[c] = ((uint32_t *)rgba[c])[j]; in sp_tgsi_store() 357 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], in handle_op_uint() 371 ((uint32_t *)rgba[c])[qi] = sdata[c]; in handle_op_uint() [all …]
|
/third_party/flutter/skia/src/opts/ |
D | SkSwizzler_opts.h | 196 uint8x8x4_t rgba = vld4_u8((const uint8_t*) src); in premul_should_swapRB() local 198 uint8x8_t a = rgba.val[3], in premul_should_swapRB() 199 b = rgba.val[2], in premul_should_swapRB() 200 g = rgba.val[1], in premul_should_swapRB() 201 r = rgba.val[0]; in premul_should_swapRB() 210 rgba.val[2] = r; in premul_should_swapRB() 211 rgba.val[1] = g; in premul_should_swapRB() 212 rgba.val[0] = b; in premul_should_swapRB() 214 rgba.val[2] = b; in premul_should_swapRB() 215 rgba.val[1] = g; in premul_should_swapRB() [all …]
|
/third_party/skia/src/core/ |
D | SkColorSpaceXformSteps.cpp | 96 void SkColorSpaceXformSteps::apply(float* rgba) const { in apply() 101 float invA = sk_ieee_float_divide(1.0f, rgba[3]); in apply() 103 rgba[0] *= invA; in apply() 104 rgba[1] *= invA; in apply() 105 rgba[2] *= invA; in apply() 108 rgba[0] = skcms_TransferFunction_eval(&srcTF, rgba[0]); in apply() 109 rgba[1] = skcms_TransferFunction_eval(&srcTF, rgba[1]); in apply() 110 rgba[2] = skcms_TransferFunction_eval(&srcTF, rgba[2]); in apply() 113 float temp[3] = { rgba[0], rgba[1], rgba[2] }; in apply() 115 rgba[i] = src_to_dst_matrix[ i] * temp[0] + in apply() [all …]
|
D | SkRasterPipeline.cpp | 108 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color() 110 SkASSERT(0 <= rgba[3] && rgba[3] <= 1); in append_constant_color() 112 if (rgba[0] == 0 && rgba[1] == 0 && rgba[2] == 0 && rgba[3] == 1) { in append_constant_color() 114 } else if (rgba[0] == 1 && rgba[1] == 1 && rgba[2] == 1 && rgba[3] == 1) { in append_constant_color() 118 Sk4f color = Sk4f::Load(rgba); in append_constant_color() 123 if (0 <= rgba[0] && rgba[0] <= rgba[3] && in append_constant_color() 124 0 <= rgba[1] && rgba[1] <= rgba[3] && in append_constant_color() 125 0 <= rgba[2] && rgba[2] <= rgba[3]) { in append_constant_color() 128 ctx->rgba[0] = (uint16_t)color[0]; in append_constant_color() 129 ctx->rgba[1] = (uint16_t)color[1]; in append_constant_color() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_yuv.c | 322 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 …]
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/ |
D | MultiplyAlpha.hlsl | 21 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 28 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 40 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 47 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 58 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 65 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 76 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 84 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 95 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 103 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/ |
D | MultiplyAlpha.hlsl | 21 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 28 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 40 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 47 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 58 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 65 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 76 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 84 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 95 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; 103 float4 color = TextureF.Sample(Sampler, inTexCoord).rgba; [all …]
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
D | jdcolext-neon.c | 139 uint8x16x4_t rgba; in jsimd_ycc_rgb_convert_neon() local 141 rgba.val[RGB_RED] = vcombine_u8(vqmovun_s16(r_l), vqmovun_s16(r_h)); in jsimd_ycc_rgb_convert_neon() 142 rgba.val[RGB_GREEN] = vcombine_u8(vqmovun_s16(g_l), vqmovun_s16(g_h)); in jsimd_ycc_rgb_convert_neon() 143 rgba.val[RGB_BLUE] = vcombine_u8(vqmovun_s16(b_l), vqmovun_s16(b_h)); in jsimd_ycc_rgb_convert_neon() 145 rgba.val[RGB_ALPHA] = vdupq_n_u8(0xFF); in jsimd_ycc_rgb_convert_neon() 147 vst4q_u8(outptr, rgba); in jsimd_ycc_rgb_convert_neon() 208 uint8x8x4_t rgba; in jsimd_ycc_rgb_convert_neon() local 210 rgba.val[RGB_RED] = vqmovun_s16(r); in jsimd_ycc_rgb_convert_neon() 211 rgba.val[RGB_GREEN] = vqmovun_s16(g); in jsimd_ycc_rgb_convert_neon() 212 rgba.val[RGB_BLUE] = vqmovun_s16(b); in jsimd_ycc_rgb_convert_neon() [all …]
|
/third_party/mesa3d/src/mesa/x86/ |
D | mmx_blend.S | 213 #define GMB_LOAD(rgba, dest, MPP, MQQ) \ argument 214 ONE(MOVD ( REGIND(rgba), MPP )) /* | | | | qa1 | qb1 | qg1 | qr1 */ ;\ 217 TWO(MOVQ ( REGIND(rgba), MPP )) /* qa2 | qb2 | qg2 | qr2 | qa1 | qb1 | qg1 | qr1 */ ;\ 241 #define GMB_STORE(rgba, MSS ) \ argument 242 ONE(MOVD ( MSS, REGIND(rgba) )) /* | | | | sa1 | sb1 | sg1 | sr1 */ ;\ 243 TWO(MOVQ ( MSS, REGIND(rgba) )) /* sa2 | sb2 | sg2 | sr2 | sa1 | sb1 | sg1 | sr1 */ 274 #define MAIN( rgba, dest ) \ argument 275 GMB_LOAD( rgba, dest, MM1, MM2 ) ;\ 280 GMB_STORE( rgba, MM3 ) 295 #define MAIN( rgba, dest ) \ argument [all …]
|
/third_party/ffmpeg/libavutil/tests/ |
D | parseutils.c | 79 uint8_t rgba[4]; in test_av_parse_color() local 122 if (av_parse_color(rgba, color_names[i], -1, NULL) >= 0) in test_av_parse_color() 124 color_names[i], rgba[0], rgba[1], rgba[2], rgba[3]); in test_av_parse_color() 223 const uint8_t *rgba; in test_av_get_known_color_name() local 227 color = av_get_known_color_name(i, &rgba); in test_av_get_known_color_name() 230 color, rgba[0], rgba[1], rgba[2], rgba[3]); in test_av_get_known_color_name()
|
/third_party/skia/gm/ |
D | imagefromyuvtextures.cpp | 81 auto rgba = *bmp.getAddr32(i, j); in CreatePlanes() local 82 auto r = (rgba & 0x000000ff) >> 0; in CreatePlanes() 83 auto g = (rgba & 0x0000ff00) >> 8; in CreatePlanes() 84 auto b = (rgba & 0x00ff0000) >> 16; in CreatePlanes() 85 auto a = (rgba & 0xff000000) >> 24; in CreatePlanes() 95 int rgba[] = {0, 0, 0, 0}; in CreatePlanes() local 102 rgba[0] += (src & 0x000000ff) >> 0; in CreatePlanes() 103 rgba[1] += (src & 0x0000ff00) >> 8; in CreatePlanes() 104 rgba[2] += (src & 0x00ff0000) >> 16; in CreatePlanes() 105 rgba[3] += (src & 0xff000000) >> 24; in CreatePlanes() [all …]
|
/third_party/skia/src/opts/ |
D | SkSwizzler_opts.h | 160 uint8x8x4_t rgba = vld4_u8((const uint8_t*) src); in premul_should_swapRB() local 162 uint8x8_t a = rgba.val[3], in premul_should_swapRB() 163 b = rgba.val[2], in premul_should_swapRB() 164 g = rgba.val[1], in premul_should_swapRB() 165 r = rgba.val[0]; in premul_should_swapRB() 174 rgba.val[2] = r; in premul_should_swapRB() 175 rgba.val[1] = g; in premul_should_swapRB() 176 rgba.val[0] = b; in premul_should_swapRB() 178 rgba.val[2] = b; in premul_should_swapRB() 179 rgba.val[1] = g; in premul_should_swapRB() [all …]
|
/third_party/ffmpeg/tests/ref/lavf/ |
D | rgba.pam | 1 2ed31ca8d8de560afb3e0fd7a873cde5 *tests/data/images/rgba.pam/02.rgba.pam 2 tests/data/images/rgba.pam/%02d.rgba.pam CRC=0xf07d29cd 3 405573 tests/data/images/rgba.pam/02.rgba.pam
|
D | rgba.xwd | 1 1cdb43599c956dc8563f1e09fac5df00 *tests/data/images/rgba.xwd/02.rgba.xwd 2 tests/data/images/rgba.xwd/%02d.rgba.xwd CRC=0xf07d29cd 3 405615 tests/data/images/rgba.xwd/02.rgba.xwd
|
/third_party/mesa3d/src/intel/isl/ |
D | isl_format_layout.csv | 67 R32G32B32A32_FLOAT , 128, 1, 1, 1, sf32, sf32, sf32, sf32, , , , rgba, line… 68 R32G32B32A32_SINT , 128, 1, 1, 1, si32, si32, si32, si32, , , , rgba, line… 69 R32G32B32A32_UINT , 128, 1, 1, 1, ui32, ui32, ui32, ui32, , , , rgba, line… 70 R32G32B32A32_UNORM , 128, 1, 1, 1, un32, un32, un32, un32, , , , rgba, line… 71 R32G32B32A32_SNORM , 128, 1, 1, 1, sn32, sn32, sn32, sn32, , , , rgba, line… 73 R32G32B32X32_FLOAT , 128, 1, 1, 1, sf32, sf32, sf32, x32, , , , rgba, line… 74 R32G32B32A32_SSCALED , 128, 1, 1, 1, ss32, ss32, ss32, ss32, , , , rgba, line… 75 R32G32B32A32_USCALED , 128, 1, 1, 1, us32, us32, us32, us32, , , , rgba, line… 76 R32G32B32A32_SFIXED , 128, 1, 1, 1, sx32, sx32, sx32, sx32, , , , rgba, line… 86 R16G16B16A16_UNORM , 64, 1, 1, 1, un16, un16, un16, un16, , , , rgba, line… [all …]
|
/third_party/mesa3d/.gitlab-ci/windows/ |
D | quick_gl.txt | 202 spec/!opengl 1.4/gl-1.4-rgba-mipmap-texture-with-rgb-visual: skip 832 spec/arb_gpu_shader5/texturegather/fs-rgba-0-float-2d: skip 833 spec/arb_gpu_shader5/texturegather/fs-rgba-0-float-2darray: skip 834 spec/arb_gpu_shader5/texturegather/fs-rgba-0-float-2drect: skip 835 spec/arb_gpu_shader5/texturegather/fs-rgba-0-float-cube: skip 836 spec/arb_gpu_shader5/texturegather/fs-rgba-0-float-cubearray: skip 837 spec/arb_gpu_shader5/texturegather/fs-rgba-0-int-2d: skip 838 spec/arb_gpu_shader5/texturegather/fs-rgba-0-int-2darray: skip 839 spec/arb_gpu_shader5/texturegather/fs-rgba-0-int-2drect: skip 840 spec/arb_gpu_shader5/texturegather/fs-rgba-0-int-cube: skip [all …]
|