Searched defs:rgba (Results 1 - 25 of 81) sorted by relevance

1234

/external/skia/src/core/
H A DSkHalf.h41 static inline Sk4f SkHalfToFloat_finite_ftz(uint64_t rgba) { argument
42 Sk4h hs = Sk4h::Load(&rgba);
/external/mesa3d/src/mesa/state_tracker/
H A Dst_atom_pixeltransfer.c71 float rgba[4]; local
72 rgba[0] = ctx->PixelMaps.RtoR.Map[j * rSize / texSize];
73 rgba[1] = ctx->PixelMaps.GtoG.Map[i * gSize / texSize];
74 rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize];
75 rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize];
76 util_pack_color(rgba, pt->format, &uc);
/external/skia/tests/
H A DSkRasterPipelineTest.cpp209 uint32_t rgba[64]; local
211 rgba[i] = (4*i+0) << 0
217 void* ptr = rgba;
229 if (rgba[i] != want) {
230 ERRORF(r, "got %08x, want %08x\n", rgba[i], want);
236 uint32_t rgba[2*2] = {0,0,0,0}; local
248 // Write out to rgba, with row stride = 2 pixels.
249 SkJumper_MemoryCtx ctx = { rgba, 2 };
254 REPORTER_ASSERT(r, ((rgba[0] >> 0) & 0xff) == 0);
255 REPORTER_ASSERT(r, ((rgba[
[all...]
/external/webp/src/dsp/
H A Dupsampling_mips_dsp_r2.c120 uint8_t* const rgba) {
123 rgba[0] = r;
124 rgba[1] = g;
125 rgba[2] = b;
126 rgba[3] = 0xff;
119 YuvToRgba(uint8_t y, uint8_t u, uint8_t v, uint8_t* const rgba) argument
H A Dalpha_processing_neon.c42 static void ApplyAlphaMultiply_NEON(uint8_t* rgba, int alpha_first, argument
46 uint32_t* const rgbx = (uint32_t*)rgba;
64 uint8_t* const rgb = rgba + (alpha_first ? 1 : 0);
65 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3);
74 rgba += stride;
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_pack_color.h332 * Note rgba outside [0,1] will be clamped for int pixel formats.
337 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) argument
346 r = float_to_ubyte(rgba[0]);
347 g = float_to_ubyte(rgba[1]);
348 b = float_to_ubyte(rgba[2]);
349 a = float_to_ubyte(rgba[3]);
416 uc->f[0] = rgba[0];
417 uc->f[1] = rgba[1];
418 uc->f[2] = rgba[2];
419 uc->f[3] = rgba[
[all...]
H A Du_debug_image.c209 float *rgba; local
214 rgba = MALLOC(transfer->box.width *
218 if (!rgba)
223 rgba);
227 rgba, transfer->box.width);
229 FREE(rgba);
237 float *rgba, unsigned stride)
244 if (!rgba)
274 float *ptr = rgba + (stride * y * 4);
293 const ubyte *rgba, unsigne
235 debug_dump_float_rgba_bmp(const char *filename, unsigned width, unsigned height, float *rgba, unsigned stride) argument
291 debug_dump_ubyte_rgba_bmp(const char *filename, unsigned width, unsigned height, const ubyte *rgba, unsigned stride) argument
[all...]
/external/mesa3d/src/gallium/drivers/ilo/core/
H A Dilo_state_sampler.h61 } rgba; member in struct:ilo_state_sampler_border_info
H A Dilo_state_sampler.c506 float rgba[4]; local
524 memcpy(rgba, info->rgba.f, sizeof(rgba));
527 dw[1] = fui(rgba[0]);
528 dw[2] = fui(rgba[1]);
529 dw[3] = fui(rgba[2]);
530 dw[4] = fui(rgba[3]);
533 dw[5] = util_float_to_half(rgba[0]) |
534 util_float_to_half(rgba[
[all...]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_clear.c36 pack_rgba(enum pipe_format format, const float *rgba) argument
39 util_pack_color(rgba, format, &uc);
H A Dnv30_state_validate.c178 float *rgba = nv30->blend_colour.color; local
185 PUSH_DATA (push, (util_float_to_half(rgba[0]) << 0) |
186 (util_float_to_half(rgba[1]) << 16));
188 PUSH_DATA (push, (util_float_to_half(rgba[2]) << 0) |
189 (util_float_to_half(rgba[3]) << 16));
197 PUSH_DATA (push, (float_to_ubyte(rgba[3]) << 24) |
198 (float_to_ubyte(rgba[0]) << 16) |
199 (float_to_ubyte(rgba[1]) << 8) |
200 (float_to_ubyte(rgba[2]) << 0));
/external/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_buffer.c52 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
87 rgba[c][j] = 0;
93 ((uint32_t *)rgba[c])[j] = sdata[0];
99 memset(rgba, 0, TGSI_NUM_CHANNELS * TGSI_QUAD_SIZE * 4);
110 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
147 temp[0] = ((uint32_t *)rgba[c])[j];
164 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE],
180 ((uint32_t *)rgba[c])[qi] = sdata[c];
189 sdata[c] += ((uint32_t *)rgba[c])[qi];
190 ((uint32_t *)rgba[
49 sp_tgsi_load(const struct tgsi_buffer *buffer, const struct tgsi_buffer_params *params, const int s[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
107 sp_tgsi_store(const struct tgsi_buffer *buffer, const struct tgsi_buffer_params *params, const int s[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
158 handle_op_uint(const struct pipe_shader_buffer *bview, bool just_read, unsigned char *data_ptr, uint qi, unsigned opcode, unsigned writemask, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
282 sp_tgsi_op(const struct tgsi_buffer *buffer, const struct tgsi_buffer_params *params, unsigned opcode, const int s[TGSI_QUAD_SIZE], float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
[all...]
H A Dsp_image.c209 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
252 rgba[c][j] = 0;
255 ((int32_t *)rgba[c])[j] = 1;
257 rgba[c][j] = 1.0;
273 ((int32_t *)rgba[c])[j] = sdata[c];
281 ((uint32_t *)rgba[c])[j] = sdata[c];
289 rgba[c][j] = sdata[c];
296 rgba[c][j] = 0;
311 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
358 sdata[c] = ((int32_t *)rgba[
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]) argument
305 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]) argument
381 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, unsigned opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
498 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, unsigned opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE], float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
612 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, unsigned opcode, int s, int t, float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]) argument
650 sp_tgsi_op(const struct tgsi_image *image, const struct tgsi_image_params *params, unsigned 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]) argument
[all...]
/external/mesa3d/src/gallium/state_trackers/nine/
H A Dnine_dump.c331 float rgba[4]; local
371 d3dcolor_to_rgba(rgba, value);
373 rgba[0],rgba[1],rgba[2],rgba[3]);
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A Dradeon_maos_verts.c55 union emit_union { float f; GLuint ui; radeon_color_t rgba; }; member in union:emit_union
/external/mesa3d/src/mesa/swrast/
H A Ds_fragprog.c87 GLfloat rgba[4]; local
94 &lambda, &rgba);
95 swizzle_texel(rgba, color, texObj->_Swizzle);
127 GLfloat rgba[4]; local
142 &lambda, &rgba);
143 swizzle_texel(rgba, color, texObj->_Swizzle);
H A Ds_blend.c121 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
137 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */
140 COPY_4UBV(rgba[i], dest[i]);
144 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP];
145 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP];
146 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP];
147 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP];
152 rgba[i][RCOMP] = (GLubyte) r;
153 rgba[i][GCOMP] = (GLubyte) g;
154 rgba[
471 blend_general_float(struct gl_context *ctx, GLuint n, const GLubyte mask[], GLfloat rgba[][4], GLfloat dest[][4], GLenum chanType) argument
[all...]
H A Ds_copypix.c153 GLvoid *rgba = span.array->attribs[VARYING_SLOT_COL0]; local
158 memcpy(rgba, p, width * sizeof(GLfloat) * 4);
164 width, srcx, sy, rgba );
169 (GLfloat (*)[4]) rgba);
178 _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span, rgba);
H A Ds_span.h86 GLchan (*rgba)[4]; /** either == rgba8 or rgba16 */ member in struct:sw_span_arrays
205 GLuint n, GLint x, GLint y, GLvoid *rgba);
H A Ds_texcombine.c78 * span->array->rgba: incoming/result fragment colors
95 float4_array ccolor[4], rgba; local
98 GLchan (*rgbaChan)[4] = span->array->rgba;
101 rgba = 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[
[all...]
H A Ds_zoom.c164 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba8;
166 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->rgba16;
168 zoomed.array->rgba = (GLchan (*)[4]) zoomed.array->attribs[VARYING_SLOT_COL0];
211 const GLubyte (*rgba)[4] = (const GLubyte (*)[4]) src;
217 COPY_4UBV(zoomed.array->rgba8[i], rgba[j]);
221 const GLushort (*rgba)[4] = (const GLushort (*)[4]) src;
227 COPY_4V(zoomed.array->rgba16[i], rgba[j]);
231 const GLfloat (*rgba)[4] = (const GLfloat (*)[4]) src;
237 COPY_4V(zoomed.array->attribs[VARYING_SLOT_COL0][i], rgba[j]);
314 memcpy(rgbaSave, zoomed.array->rgba, zoome
331 _swrast_write_zoomed_rgba_span(struct gl_context *ctx, GLint imgX, GLint imgY, const SWspan *span, const GLvoid *rgba) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_format_yuv.c322 LLVMValueRef rgba; local
349 rgba = r;
350 rgba = LLVMBuildOr(builder, rgba, g, "");
351 rgba = LLVMBuildOr(builder, rgba, b, "");
352 rgba = LLVMBuildOr(builder, rgba, a, "");
354 rgba = LLVMBuildBitCast(builder, rgba,
372 LLVMValueRef rgba; local
393 LLVMValueRef rgba; local
413 LLVMValueRef rgba; local
432 LLVMValueRef rgba; local
450 LLVMValueRef rgba; local
469 LLVMValueRef rgba; local
493 LLVMValueRef rgba; local
[all...]
/external/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_test_format.c97 LLVMValueRef rgba; local
124 rgba = lp_build_fetch_rgba_aos(gallivm, desc, type, TRUE,
127 LLVMBuildStore(builder, rgba, rgba_ptr);
/external/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_draw.c481 pack_rgba(enum pipe_format format, const float *rgba) argument
484 util_pack_color(rgba, format, &uc);
/external/mesa3d/src/mesa/main/
H A Dpixeltransfer.c45 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], argument
54 rgba[i][RCOMP] = rgba[i][RCOMP] * rScale + rBias;
60 rgba[i][GCOMP] = rgba[i][GCOMP] * gScale + gBias;
66 rgba[i][BCOMP] = rgba[i][BCOMP] * bScale + bBias;
72 rgba[i][ACOMP] = rgba[i][ACOMP] * aScale + aBias;
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]) argument
[all...]

Completed in 1421 milliseconds

1234