/third_party/mesa3d/src/mesa/main/ |
H A D | pixeltransfer.c | 45 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], in _mesa_scale_and_bias_rgba() argument 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[][ 164 _mesa_apply_rgba_transfer_ops(struct gl_context *ctx, GLbitfield transferOps, GLuint n, GLfloat rgba[][4]) _mesa_apply_rgba_transfer_ops() argument [all...] |
H A D | accum.c | 233 GLfloat (*rgba)[4]; in accum_or_load() 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[ in accum_or_load() [all...] |
H A D | texcompress_s3tc_tmp.h | 58 GLchan *rgba = (GLchan *) texel; in dxt135_decode_imageblock() local 67 rgba[ACOMP] = CHAN_MAX; in dxt135_decode_imageblock() 70 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color0) ); in dxt135_decode_imageblock() 71 rgba[GCOMP] = UBYTE_TO_CHAN( EXP6TO8G(color0) ); in dxt135_decode_imageblock() 72 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color0) ); in dxt135_decode_imageblock() 75 rgba[RCOMP] = UBYTE_TO_CHAN( EXP5TO8R(color1) ); in dxt135_decode_imageblock() 76 rgba[GCOMP] = UBYTE_TO_CHAN( EXP6TO8G(color1) ); in dxt135_decode_imageblock() 77 rgba[BCOMP] = UBYTE_TO_CHAN( EXP5TO8B(color1) ); in dxt135_decode_imageblock() 81 rgba[RCOMP] = UBYTE_TO_CHAN( ((EXP5TO8R(color0) * 2 + EXP5TO8R(color1)) / 3) ); in dxt135_decode_imageblock() 82 rgba[GCOM in dxt135_decode_imageblock() 141 GLchan *rgba = (GLchan *) texel; fetch_2d_texel_rgba_dxt3() local 155 GLchan *rgba = (GLchan *) texel; fetch_2d_texel_rgba_dxt5() local [all...] |
H A D | pixeltransfer.h | 37 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], 44 _mesa_map_rgba(const struct gl_context *ctx, GLuint n, GLfloat rgba[][4]); 48 GLuint n, const GLuint index[], GLfloat rgba[][4]); 61 GLuint n, GLfloat rgba[][4]);
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A 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[ in handle_op_uint() 203 sp_tgsi_load(const struct tgsi_image *image, const struct tgsi_image_params *params, const int s[TGSI_QUAD_SIZE], const int t[TGSI_QUAD_SIZE], const int r[TGSI_QUAD_SIZE], const int sample[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_tgsi_load() argument 286 sp_tgsi_store(const struct tgsi_image *image, const struct tgsi_image_params *params, const int s[TGSI_QUAD_SIZE], const int t[TGSI_QUAD_SIZE], const int r[TGSI_QUAD_SIZE], const int sample[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_tgsi_store() argument 348 handle_op_uint(const struct pipe_image_view *iview, const struct tgsi_image_params *params, bool just_read, char *data_ptr, uint qi, unsigned stride, enum tgsi_opcode opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) handle_op_uint() argument 465 handle_op_int(const struct pipe_image_view *iview, const struct tgsi_image_params *params, bool just_read, char *data_ptr, uint qi, unsigned stride, enum tgsi_opcode opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) handle_op_int() argument 579 handle_op_r32f_xchg(const struct pipe_image_view *iview, const struct tgsi_image_params *params, bool just_read, char *data_ptr, uint qi, unsigned stride, enum tgsi_opcode opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) handle_op_r32f_xchg() argument 617 sp_tgsi_op(const struct tgsi_image *image, const struct tgsi_image_params *params, enum tgsi_opcode opcode, const int s[TGSI_QUAD_SIZE], const int t[TGSI_QUAD_SIZE], const int r[TGSI_QUAD_SIZE], const int sample[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_tgsi_op() argument [all...] |
H A D | sp_tex_sample.c | 707 * \param rgba the quad to put the texel/color into 1121 print_sample(const char *function, const float *rgba) in print_sample() argument 1125 rgba[0], rgba[TGSI_NUM_CHANNELS], rgba[2*TGSI_NUM_CHANNELS], rgba[3*TGSI_NUM_CHANNELS]); in print_sample() 1130 print_sample_4(const char *function, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) in print_sample_4() argument 1134 rgba[0][0], rgba[1][0], rgba[ in print_sample_4() 1144 img_filter_2d_linear_repeat_POT(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_linear_repeat_POT() argument 1199 img_filter_2d_nearest_repeat_POT(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_nearest_repeat_POT() argument 1234 img_filter_2d_nearest_clamp_POT(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_nearest_clamp_POT() argument 1277 img_filter_1d_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_1d_nearest() argument 1308 img_filter_1d_array_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_1d_array_nearest() argument 1340 img_filter_2d_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_nearest() argument 1374 img_filter_2d_array_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_array_nearest() argument 1409 img_filter_cube_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_cube_nearest() argument 1452 img_filter_cube_array_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_cube_array_nearest() argument 1487 img_filter_3d_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_3d_nearest() argument 1519 img_filter_1d_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_1d_linear() argument 1551 img_filter_1d_array_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_1d_array_linear() argument 1649 img_filter_2d_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_linear() argument 1694 img_filter_2d_array_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_2d_array_linear() argument 1740 img_filter_cube_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_cube_linear() argument 1805 img_filter_cube_array_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_cube_array_linear() argument 1873 img_filter_3d_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const struct img_filter_args *args, float *rgba) img_filter_3d_linear() argument 2087 mip_filter_linear(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], int gather_comp, const float lod[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_linear() argument 2170 mip_filter_nearest(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], int gather_component, const float lod[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_nearest() argument 2229 mip_filter_none(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], int gather_component, const float lod[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_none() argument 2277 mip_filter_none_no_filter_select(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], int gather_comp, const float lod_in[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_none_no_filter_select() argument 2339 img_filter_2d_ewa(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], const uint faces[TGSI_QUAD_SIZE], const int8_t *offset, unsigned level, const float dudx, const float dvdx, const float dudy, const float dvdy, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) img_filter_2d_ewa() argument 2546 mip_filter_linear_aniso(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], UNUSED int gather_comp, const float lod_in[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_linear_aniso() argument 2678 mip_filter_linear_2d_linear_repeat_POT( const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, img_filter_func min_filter, img_filter_func mag_filter, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], int gather_comp, const float lod[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) mip_filter_linear_2d_linear_repeat_POT() argument 2769 sample_compare(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const float c0[TGSI_QUAD_SIZE], enum tgsi_sampler_control control, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sample_compare() argument 3180 sample_mip(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], const float c0[TGSI_QUAD_SIZE], int gather_comp, const float lod[TGSI_QUAD_SIZE], const struct filter_args *filt_args, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sample_mip() argument 3356 sp_get_texels(const struct sp_sampler_view *sp_sview, const int v_i[TGSI_QUAD_SIZE], const int v_j[TGSI_QUAD_SIZE], const int v_k[TGSI_QUAD_SIZE], const int lod[TGSI_QUAD_SIZE], const int8_t offset[3], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_get_texels() argument 3700 sp_tgsi_get_samples(struct tgsi_sampler *tgsi_sampler, const unsigned sview_index, const unsigned sampler_index, const float s[TGSI_QUAD_SIZE], const float t[TGSI_QUAD_SIZE], const float p[TGSI_QUAD_SIZE], const float c0[TGSI_QUAD_SIZE], const float lod_in[TGSI_QUAD_SIZE], float derivs[3][2][TGSI_QUAD_SIZE], const int8_t offset[3], enum tgsi_sampler_control control, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_tgsi_get_samples() argument 3826 sp_tgsi_get_texel(struct tgsi_sampler *tgsi_sampler, const unsigned sview_index, const int i[TGSI_QUAD_SIZE], const int j[TGSI_QUAD_SIZE], const int k[TGSI_QUAD_SIZE], const int lod[TGSI_QUAD_SIZE], const int8_t offset[3], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) sp_tgsi_get_texel() argument [all...] |
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_format_yuv.c | 322 LLVMValueRef rgba; in rgb_to_rgba_aos() local 348 rgba = r; in rgb_to_rgba_aos() 349 rgba = LLVMBuildOr(builder, rgba, g, ""); in rgb_to_rgba_aos() 350 rgba = LLVMBuildOr(builder, rgba, b, ""); in rgb_to_rgba_aos() 351 rgba = LLVMBuildOr(builder, rgba, a, ""); in rgb_to_rgba_aos() 353 rgba = LLVMBuildBitCast(builder, rgba, in rgb_to_rgba_aos() 371 LLVMValueRef rgba; uyvy_to_rgba_aos() local 392 LLVMValueRef rgba; yuyv_to_rgba_aos() local 412 LLVMValueRef rgba; rgbg_to_rgba_aos() local 431 LLVMValueRef rgba; grgb_to_rgba_aos() local 449 LLVMValueRef rgba; grbr_to_rgba_aos() local 468 LLVMValueRef rgba; rgrb_to_rgba_aos() local 492 LLVMValueRef rgba; lp_build_fetch_subsampled_rgba_aos() local [all...] |
H A D | lp_bld_format_s3tc.c | 410 LLVMValueRef rgba, r, g, b, rgblo, glo; in color_expand_565_to_8888() local 445 rgba = LLVMBuildOr(builder, r, b, ""); in color_expand_565_to_8888() 446 rgba = LLVMBuildAnd(builder, rgba, rbhimask, ""); in color_expand_565_to_8888() 447 rgblo = LLVMBuildLShr(builder, rgba, lp_build_const_int_vec(gallivm, type, 5), ""); in color_expand_565_to_8888() 451 rgba = LLVMBuildOr(builder, rgba, g, ""); in color_expand_565_to_8888() 452 rgba = LLVMBuildOr(builder, rgba, rgblo, ""); in color_expand_565_to_8888() 454 return rgba; in color_expand_565_to_8888() 572 LLVMValueRef rgba, a, colors0, colors1, col0, col1, const2; s3tc_dxt1_full_to_rgba_aos() local 769 LLVMValueRef rgba, tmp, tmp2; s3tc_dxt3_to_rgba_aos() local 1056 LLVMValueRef rgba, alpha; s3tc_dxt5_full_to_rgba_aos() local 1269 LLVMValueRef rgba, tmp, a, sel_mask, indices, code, const2; s3tc_decode_block_dxt1() local 2198 LLVMValueRef rgba; lp_build_fetch_s3tc_rgba_aos() local 2439 LLVMValueRef rgba; rgtc1_to_rgba_aos() local 2467 LLVMValueRef rgba; rgtc2_to_rgba_aos() local 2494 LLVMValueRef rgba, temp; latc1_to_rgba_aos() local 2526 LLVMValueRef rgba, temp; latc2_to_rgba_aos() local 2563 LLVMValueRef rgba; lp_build_fetch_rgtc_rgba_aos() local [all...] |
/third_party/skia/src/core/ |
H A 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[ in apply() [all...] |
H A D | SkRasterPipeline.cpp | 108 void SkRasterPipeline::append_constant_color(SkArenaAlloc* alloc, const float rgba[4]) { in append_constant_color() argument 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[ in append_constant_color() [all...] |
H A D | SkDraw_atlas.cpp | 43 static void load_color(SkRasterPipeline_UniformColorCtx* ctx, const float rgba[]) { in load_color() argument 45 ctx->rgba[0] = SkScalarRoundToInt(rgba[0]*255); ctx->r = rgba[0]; in load_color() 46 ctx->rgba[1] = SkScalarRoundToInt(rgba[1]*255); ctx->g = rgba[1]; in load_color() 47 ctx->rgba[2] = SkScalarRoundToInt(rgba[2]*255); ctx->b = rgba[ in load_color() [all...] |
/third_party/ffmpeg/libavutil/tests/ |
H A 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[ in test_av_get_known_color_name() [all...] |
/third_party/skia/gm/ |
H A 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[ in CreatePlanes() [all...] |
H A D | skbug_9819.cpp | 17 SkBitmap rgba, in DEF_SIMPLE_GM() local 19 rgba.allocPixels(info.makeColorType(kRGBA_8888_SkColorType)); in DEF_SIMPLE_GM() 23 rgba.eraseColor(yellow); in DEF_SIMPLE_GM() 28 c->drawImage(rgba.asImage(), 0,0); in DEF_SIMPLE_GM()
|
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
H A 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 in jsimd_ycc_rgb_convert_neon() 275 uint8x8x4_t rgba; jsimd_ycc_rgb_convert_neon() local [all...] |
/third_party/skia/src/opts/ |
H A 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 in premul_should_swapRB() 205 uint8x16x4_t rgba = vld4q_u8((const uint8_t*) src); RGBA_to_BGRA() local 219 uint8x8x4_t rgba = vld4_u8((const uint8_t*) src); RGBA_to_BGRA() local 247 uint8x16x4_t rgba; expand_grayA() local 270 uint8x8x4_t rgba; expand_grayA() local 442 __m512i rgba = _mm512_loadu_si512((const __m512i*) src); RGBA_to_BGRA() local 716 __m256i rgba = _mm256_loadu_si256((const __m256i*) src); RGBA_to_BGRA() local 961 __m128i rgba = _mm_loadu_si128((const __m128i*) src); RGBA_to_BGRA() local 1144 uint8x16x4_t rgba; gray_to_RGB1() local 1161 uint8x8x4_t rgba; gray_to_RGB1() local 1286 uint8x16x4_t rgba; insert_alpha_should_swaprb() local 1309 uint8x8x4_t rgba; insert_alpha_should_swaprb() local 1357 __m128i rgba = _mm_or_si128(_mm_shuffle_epi8(rgb, expand), alphaMask); insert_alpha_should_swaprb() local [all...] |
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_clear.c | 188 float rgba[4]; in try_clear() local 191 rgba[0] = (float) color->i[0]; in try_clear() 192 rgba[1] = (float) color->i[1]; in try_clear() 193 rgba[2] = (float) color->i[2]; in try_clear() 194 rgba[3] = (float) color->i[3]; in try_clear() 197 rgba[0] = color->f[0]; in try_clear() 198 rgba[1] = color->f[1]; in try_clear() 199 rgba[2] = color->f[2]; in try_clear() 200 rgba[3] = color->f[3]; in try_clear() 214 ret = SVGA3D_vgpu10_ClearRenderTargetView(svga->swc, rtv, rgba); in try_clear() 393 float rgba[4]; svga_clear_texture() local [all...] |
/third_party/skia/tests/ |
H A D | SRGBTest.cpp | 79 SkColor4f rgba[kSteps]; in DEF_TEST() local 92 rgba[i] = expected(i); in DEF_TEST() 95 SkRasterPipeline_MemoryCtx ptr = { rgba, 0 }; in DEF_TEST() 120 rgba[i].fR, rgba[i].fG, rgba[i].fB, in DEF_TEST() 123 REPORTER_ASSERT(r, close(rgba[i].fR, want.fR)); in DEF_TEST() 124 REPORTER_ASSERT(r, close(rgba[i].fG, want.fG)); in DEF_TEST() 125 REPORTER_ASSERT(r, close(rgba[i].fB, want.fB)); in DEF_TEST()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_debug_image.c | 209 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() 224 rgba); in debug_dump_transfer_bmp() 228 rgba, transfer->box.width); in debug_dump_transfer_bmp() 230 FREE(rgba); in debug_dump_transfer_bmp() 238 float *rgba, unsigned stride) in debug_dump_float_rgba_bmp() 245 if (!rgba) in debug_dump_float_rgba_bmp() 275 float *ptr = rgba + (stride * y * 4); in debug_dump_float_rgba_bmp() 294 const ubyte *rgba, unsigne in debug_dump_ubyte_rgba_bmp() 236 debug_dump_float_rgba_bmp(const char *filename, unsigned width, unsigned height, float *rgba, unsigned stride) debug_dump_float_rgba_bmp() argument 292 debug_dump_ubyte_rgba_bmp(const char *filename, unsigned width, unsigned height, const ubyte *rgba, unsigned stride) debug_dump_ubyte_rgba_bmp() argument [all...] |
H A D | u_pack_color.h | 331 * Note rgba outside [0,1] will be clamped for int pixel formats. 336 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) in util_pack_color() argument 345 r = float_to_ubyte(rgba[0]); in util_pack_color() 346 g = float_to_ubyte(rgba[1]); in util_pack_color() 347 b = float_to_ubyte(rgba[2]); in util_pack_color() 348 a = float_to_ubyte(rgba[3]); in util_pack_color() 415 uc->f[0] = rgba[0]; in util_pack_color() 416 uc->f[1] = rgba[1]; in util_pack_color() 417 uc->f[2] = rgba[2]; in util_pack_color() 418 uc->f[3] = rgba[ in util_pack_color() [all...] |
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_pixeltransfer.c | 71 float rgba[4]; in load_color_map_texture() local 72 rgba[0] = ctx->PixelMaps.RtoR.Map[j * rSize / texSize]; in load_color_map_texture() 73 rgba[1] = ctx->PixelMaps.GtoG.Map[i * gSize / texSize]; in load_color_map_texture() 74 rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize]; in load_color_map_texture() 75 rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize]; in load_color_map_texture() 76 util_pack_color(rgba, pt->format, &uc); in load_color_map_texture()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderSampling.cpp | 232 Pointer<Float> rgba = out; in emitSamplerRoutine() local 233 rgba[0 * SIMD::Width + i] = Pointer<Float>(&sample.x)[i]; in emitSamplerRoutine() 234 rgba[1 * SIMD::Width + i] = Pointer<Float>(&sample.y)[i]; in emitSamplerRoutine() 235 rgba[2 * SIMD::Width + i] = Pointer<Float>(&sample.z)[i]; in emitSamplerRoutine() 236 rgba[3 * SIMD::Width + i] = Pointer<Float>(&sample.w)[i]; in emitSamplerRoutine() 241 Pointer<SIMD::Float> rgba = out; in emitSamplerRoutine() local 242 rgba[0] = sample.x; in emitSamplerRoutine() 243 rgba[1] = sample.y; in emitSamplerRoutine() 244 rgba[2] = sample.z; in emitSamplerRoutine() 245 rgba[ in emitSamplerRoutine() 255 Pointer<SIMD::Float> rgba = out; emitSamplerRoutine() local [all...] |
/third_party/skia/third_party/skcms/src/ |
H A D | Transform_inl.h | 219 SI U64 swap_endian_16x4(const U64& rgba) { in swap_endian_16x4() argument 220 return (rgba & 0x00ff00ff00ff00ff) << 8 in swap_endian_16x4() 221 | (rgba & 0xff00ff00ff00ff00) >> 8; in swap_endian_16x4() 678 U32 rgba = gather_32(grid_8, ix); in sample_clut_8() local 680 *r = cast<F>((rgba >> 0) & 0xff) * (1/255.0f); in sample_clut_8() 681 *g = cast<F>((rgba >> 8) & 0xff) * (1/255.0f); in sample_clut_8() 682 *b = cast<F>((rgba >> 16) & 0xff) * (1/255.0f); in sample_clut_8() 683 *a = cast<F>((rgba >> 24) & 0xff) * (1/255.0f); in sample_clut_8() 876 U32 rgba = load<U32>(src + 4*i); in exec_ops() local 878 r = cast<F>((rgba >> in exec_ops() 887 U32 rgba = gather_32(palette, ix); exec_ops() local 896 U32 rgba = load<U32>(src + 4*i); exec_ops() local 928 const uint16_t* rgba = (const uint16_t*)ptr; // cast to const uint16_t* to be safe. exec_ops() local 979 const uint16_t* rgba = (const uint16_t*)ptr; // cast to const uint16_t* to be safe. exec_ops() local 1029 const uint16_t* rgba = (const uint16_t*)ptr; // cast to const uint16_t* to be safe. exec_ops() local 1080 const float* rgba = (const float*)ptr; // cast to const float* to be safe. exec_ops() local 1350 uint16_t* rgba = (uint16_t*)ptr; // for this cast to uint16_t* to be safe. exec_ops() local 1408 uint16_t* rgba = (uint16_t*)ptr; // for this cast to uint16_t* to be safe. exec_ops() local 1466 uint16_t* rgba = (uint16_t*)ptr; // for this cast to uint16_t* to be safe. exec_ops() local 1530 float* rgba = (float*)ptr; // for this cast to float* to be safe. exec_ops() local [all...] |
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | image_enc.c | 148 uint8_t* const rgb = buffer->u.RGBA.rgba; in WebPWritePNG() 187 png_bytep row = buffer->u.RGBA.rgba; in WebPWritePNG() 227 const uint8_t* row = buffer->u.RGBA.rgba; in WritePPMPAM() 265 const uint8_t* rgba = buffer->u.RGBA.rgba; in WebPWrite16bAsPGM() local 270 if (fout == NULL || buffer == NULL || rgba == NULL) return 0; in WebPWrite16bAsPGM() 274 if (fwrite(rgba, width, bytes_per_px, fout) != bytes_per_px) { in WebPWrite16bAsPGM() 277 rgba += stride; in WebPWrite16bAsPGM() 300 const uint8_t* rgba = buffer->u.RGBA.rgba; in WebPWriteBMP() local 367 const uint8_t* rgba = buffer->u.RGBA.rgba; WebPWriteTIFF() local [all...] |
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/ |
H A D | enc_dec_fuzzer.cc | 103 uint8_t* const rgba = WebPDecodeBGRA(out_data, out_size, &w, &h); in LLVMFuzzerTestOneInput() local 104 if (rgba == nullptr || w != pic.width || h != pic.height) { in LLVMFuzzerTestOneInput() 106 WebPFree(rgba); in LLVMFuzzerTestOneInput() 114 const uint32_t* src1 = (const uint32_t*)rgba; in LLVMFuzzerTestOneInput() 128 WebPFree(rgba); in LLVMFuzzerTestOneInput() 137 WebPFree(rgba); in LLVMFuzzerTestOneInput()
|