/external/mesa3d/src/mesa/main/ |
H A D | 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[ 25 FN_NAME(struct gl_context *ctx, DST_TYPE *dst, GLenum dstFormat, SRC_TYPE rgba[][4], int n) argument [all...] |
H A D | pixeltransfer.c | 43 _mesa_scale_and_bias_rgba(GLuint n, GLfloat rgba[][4], argument 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; 80 _mesa_map_rgba( const struct gl_context *ctx, GLuint n, GLfloat rgba[][ 162 _mesa_apply_rgba_transfer_ops(struct gl_context *ctx, GLbitfield transferOps, GLuint n, GLfloat rgba[][4]) argument [all...] |
H A D | readpix.c | 328 void *rgba; local 345 rgba = malloc(width * MAX_PIXEL_BYTES); 346 if (!rgba) 351 _mesa_unpack_uint_rgba_row(rbFormat, width, map, (GLuint (*)[4]) rgba); 352 _mesa_rebase_rgba_uint(width, (GLuint (*)[4]) rgba, 355 _mesa_pack_rgba_span_from_uints(ctx, width, (GLuint (*)[4]) rgba, format, 358 _mesa_pack_rgba_span_from_ints(ctx, width, (GLint (*)[4]) rgba, format, 362 _mesa_unpack_rgba_row(rbFormat, width, map, (GLfloat (*)[4]) rgba); 363 _mesa_rebase_rgba_float(width, (GLfloat (*)[4]) rgba, 365 _mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba, forma [all...] |
H A D | texcompress_s3tc.c | 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 420 fetch_texel_2d_rgba_dxt1(texImage, i, j, k, rgba); 421 texel[RCOMP] = UBYTE_TO_FLOAT(rgba[RCOMP]); 422 texel[GCOMP] = UBYTE_TO_FLOAT(rgba[GCOM 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...] |
/external/opencv3/modules/cudaimgproc/perf/ |
H A D | perf_mean_shift.cpp | 62 cv::Mat rgba; local 63 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); 70 const cv::cuda::GpuMat d_src(rgba); 98 cv::Mat rgba; local 99 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); 106 const cv::cuda::GpuMat d_src(rgba); 132 cv::Mat rgba; local 133 cv::cvtColor(img, rgba, cv::COLOR_BGR2BGRA); 141 const cv::cuda::GpuMat d_src(rgba);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | api_paint.c | 100 void vegaSetColor(VGPaint paint, VGuint rgba) argument 116 paint_set_colori(p, rgba); 127 VGuint rgba = 0; local 131 return rgba; 136 return rgba;
|
H A D | 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[ 32 _vega_pack_rgba_span_float(struct vg_context *ctx, VGuint n, VGfloat rgba[][4], VGImageFormat dstFormat, void *dstAddr) argument 454 _vega_unpack_float_span_rgba(struct vg_context *ctx, VGuint n, VGuint offset, const void * data, VGImageFormat dataFormat, VGfloat rgba[][4]) argument [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
H A D | ImageProcessor.java | 265 static private String splitError (int x, int y, int[] rgba, String name) { argument 266 throw new RuntimeException("Invalid " + name + " ninepatch split pixel at " + x + ", " + y + ", rgba: " + rgba[0] + ", " 267 + rgba[1] + ", " + rgba[2] + ", " + rgba[3]); 386 int[] rgba = new int[4]; 400 raster.getPixel(x, y, rgba); 401 if (rgba[3] == breakA) return next; 403 if (!startPoint && (rgba[ [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_pack_color.h | 331 * Note rgba outside [0,1] will be clamped for int pixel formats. 334 util_pack_color(const float rgba[4], enum pipe_format format, union util_color *uc) argument 343 r = float_to_ubyte(rgba[0]); 344 g = float_to_ubyte(rgba[1]); 345 b = float_to_ubyte(rgba[2]); 346 a = float_to_ubyte(rgba[3]); 413 uc->f[0] = rgba[0]; 414 uc->f[1] = rgba[1]; 415 uc->f[2] = rgba[2]; 416 uc->f[3] = rgba[ [all...] |
/external/mesa3d/src/gallium/drivers/nv30/ |
H A D | nv30_clear.c | 36 pack_rgba(enum pipe_format format, const float *rgba) argument 39 util_pack_color(rgba, format, &uc);
|
H A D | nv30_state_validate.c | 181 float *rgba = nv30->blend_colour.color; local 188 PUSH_DATA (push, (util_float_to_half(rgba[0]) << 0) | 189 (util_float_to_half(rgba[1]) << 16)); 191 PUSH_DATA (push, (util_float_to_half(rgba[2]) << 0) | 192 (util_float_to_half(rgba[3]) << 16)); 200 PUSH_DATA (push, (float_to_ubyte(rgba[3]) << 24) | 201 (float_to_ubyte(rgba[0]) << 16) | 202 (float_to_ubyte(rgba[1]) << 8) | 203 (float_to_ubyte(rgba[2]) << 0));
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
H A D | radeon_maos_verts.c | 54 union emit_union { float f; GLuint ui; radeon_color_t rgba; }; member in union:emit_union
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_pixeltransfer.c | 119 float rgba[4]; local 120 rgba[0] = ctx->PixelMaps.RtoR.Map[j * rSize / texSize]; 121 rgba[1] = ctx->PixelMaps.GtoG.Map[i * gSize / texSize]; 122 rgba[2] = ctx->PixelMaps.BtoB.Map[j * bSize / texSize]; 123 rgba[3] = ctx->PixelMaps.AtoA.Map[i * aSize / texSize]; 124 util_pack_color(rgba, pt->format, &uc); 213 /* TEX temp.rg, colorTemp.rgba, texture[1], 2D; */
|
/external/mesa3d/src/mesa/swrast/ |
H A D | s_fragprog.c | 86 GLfloat rgba[4]; local 93 &lambda, &rgba); 94 swizzle_texel(rgba, color, texObj->_Swizzle); 127 GLfloat rgba[4]; local 142 &lambda, &rgba); 143 swizzle_texel(rgba, color, texObj->_Swizzle);
|
H A D | 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[ 474 blend_general_float(struct gl_context *ctx, GLuint n, const GLubyte mask[], GLfloat rgba[][4], GLfloat dest[][4], GLenum chanType) argument [all...] |
H A D | s_copypix.c | 164 GLvoid *rgba = span.array->attribs[FRAG_ATTRIB_COL0]; local 169 memcpy(rgba, p, width * sizeof(GLfloat) * 4); 175 width, srcx, sy, rgba ); 180 (GLfloat (*)[4]) rgba); 189 _swrast_write_zoomed_rgba_span(ctx, destx, desty, &span, rgba);
|
H A D | s_drawpix.c | 454 GLfloat *rgba = (GLfloat *) span.array->attribs[FRAG_ATTRIB_COL0]; local 467 _mesa_unpack_color_span_float(ctx, spanWidth, GL_RGBA, rgba, 480 _swrast_write_zoomed_rgba_span(ctx, imgX, imgY, &span, rgba);
|
H A D | s_span.h | 86 GLchan (*rgba)[4]; /** either == rgba8 or rgba16 */ member in struct:sw_span_arrays 205 GLuint n, GLint x, GLint y, GLvoid *rgba);
|
H A D | 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[ [all...] |
/external/opencv3/3rdparty/libwebp/dsp/ |
H A D | upsampling.c | 253 static void ApplyAlphaMultiply(uint8_t* rgba, int alpha_first, argument 256 uint8_t* const rgb = rgba + (alpha_first ? 1 : 0); 257 const uint8_t* const alpha = rgba + (alpha_first ? 0 : 3); 268 rgba += stride;
|
/external/skia/tools/skiaserve/ |
H A D | Request.cpp | 20 static void write_png(const png_bytep rgba, png_uint_32 width, png_uint_32 height, SkWStream& out) { argument 34 const png_bytep src = rgba + y * width * 4;
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_format_aos.c | 257 * @param rgba 4 float vector with the unpacked components. 265 LLVMValueRef rgba) 296 unswizzled = LLVMBuildShuffleVector(builder, rgba, 263 lp_build_pack_rgba_aos(struct gallivm_state *gallivm, const struct util_format_description *desc, LLVMValueRef rgba) argument
|
H A D | lp_bld_format_soa.c | 261 LLVMValueRef *rgba) 287 rgba[chan] = input; 296 * \param type the desired return type for 'rgba'. The vector length 348 * convert texels to float rgba 258 lp_build_rgba8_to_f32_soa(struct gallivm_state *gallivm, struct lp_type dst_type, LLVMValueRef packed, LLVMValueRef *rgba) argument
|
H A D | lp_bld_format_yuv.c | 290 LLVMValueRef rgba; local 310 rgba = r; 311 rgba = LLVMBuildOr(builder, rgba, g, ""); 312 rgba = LLVMBuildOr(builder, rgba, b, ""); 313 rgba = LLVMBuildOr(builder, rgba, a, ""); 315 rgba = LLVMBuildBitCast(builder, rgba, 333 LLVMValueRef rgba; local 354 LLVMValueRef rgba; local 374 LLVMValueRef rgba; local 393 LLVMValueRef rgba; local 411 LLVMValueRef rgba; local 430 LLVMValueRef rgba; local 454 LLVMValueRef rgba; local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_test_format.c | 94 LLVMValueRef rgba; local 115 rgba = lp_build_fetch_rgba_aos(gallivm, desc, type, 118 LLVMBuildStore(builder, rgba, rgba_ptr);
|