/external/chromium_org/gpu/tools/compositor_model_bench/ |
H A D | shaders.cc | 178 uniform float alpha; local 187 gl_FragColor = vec4(rgb, 1.0) * alpha; 197 uniform float alpha; local 204 texColor.w) * alpha; 214 uniform float alpha; local 217 gl_FragColor = texColor * alpha; 326 GLint alpha = glGetUniformLocationARB(program, "alpha"); local 327 glUniform1fARB(alpha, 0.9); 336 GLint alpha local [all...] |
/external/chromium_org/skia/ext/ |
H A D | convolver.cc | 215 unsigned char alpha = ClampTo8(accum[3]); local 217 // Make sure the alpha channel doesn't come out smaller than any of the 218 // color channels. We use premultipled alpha channels, so this should 226 if (alpha < max_color_channel) 229 out_row[byte_offset + 3] = alpha; 231 // No alpha channel, the image is opaque.
|
H A D | vector_canvas_unittest.cc | 209 // Flag to signal if the comparison functions should ignore the alpha channel. 319 BYTE alpha = SkColorGetA(color); local 320 if (!alpha) { 323 BYTE alpha_offset = alpha / 2; 326 (SkColorGetR(color) * 255 + alpha_offset) / alpha, 327 (SkColorGetG(color) * 255 + alpha_offset) / alpha, 328 (SkColorGetB(color) * 255 + alpha_offset) / alpha); 815 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("alpha")));
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
H A D | FilterEffect.cpp | 243 // Iterate over each pixel, checking alpha and adjusting color components if necessary 247 // Clamp each component to alpha, and increment the pixel location 253 // Increment for alpha 380 int alpha = sourceComponent[3]; local 381 if (alpha) { 382 destinationComponent[0] = static_cast<int>(sourceComponent[0]) * 255 / alpha; 383 destinationComponent[1] = static_cast<int>(sourceComponent[1]) * 255 / alpha; 384 destinationComponent[2] = static_cast<int>(sourceComponent[2]) * 255 / alpha; 390 destinationComponent[3] = alpha; 414 int alpha local [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/ |
H A D | formatutils.cpp | 287 static InternalFormat RGBAFormat(GLuint red, GLuint green, GLuint blue, GLuint alpha, GLuint shared, argument 297 formatInfo.alphaBits = alpha; 299 formatInfo.pixelBytes = (red + green + blue + alpha + shared) / 8; 300 formatInfo.componentCount = ((red > 0) ? 1 : 0) + ((green > 0) ? 1 : 0) + ((blue > 0) ? 1 : 0) + ((alpha > 0) ? 1 : 0); 311 static InternalFormat LUMAFormat(GLuint luminance, GLuint alpha, GLenum format, GLenum type, GLenum componentType, argument 318 formatInfo.alphaBits = alpha; 319 formatInfo.pixelBytes = (luminance + alpha) / 8; 320 formatInfo.componentCount = ((luminance > 0) ? 1 : 0) + ((alpha > 0) ? 1 : 0); 452 // Luminance alpha formats
|
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/d3d9/ |
H A D | Image9.cpp | 650 unsigned char alpha = (signed short)argb >> 15; local 654 dest[x + 3] = alpha;
|
H A D | renderer9_utils.cpp | 51 gl::unorm<8>(color.alpha)); 183 DWORD ConvertColorMask(bool red, bool green, bool blue, bool alpha) argument 188 (alpha ? D3DCOLORWRITEENABLE_ALPHA : 0);
|
/external/chromium_org/third_party/libwebp/dec/ |
H A D | io.c | 149 const uint8_t* alpha = io->a; local 156 if (alpha != NULL) { 158 memcpy(dst, alpha, mb_w * sizeof(*dst)); 159 alpha += io->width; 163 // the user requested alpha, but there is none, set it to opaque. 173 const uint8_t** alpha, int* const num_rows) { 185 // Fortunately, *alpha data is persistent, so we can go back 186 // one row and finish alpha blending, now that the fancy upscaler 188 *alpha -= io->width; 199 const uint8_t* alpha local 172 GetAlphaSourceRow(const VP8Io* const io, const uint8_t** alpha, int* const num_rows) argument 232 const uint8_t* alpha = io->a; local [all...] |
/external/chromium_org/third_party/libwebp/enc/ |
H A D | analysis.c | 92 const int alpha = 255 * (centers[n] - mid) / (max - min); local 94 enc->dqm_[n].alpha_ = clip(alpha, -127, 127); 104 #define ALPHA_SCALE (2 * MAX_ALPHA) // scaling factor for alpha. 106 #define IS_BETTER_ALPHA(alpha, best_alpha) ((alpha) > (best_alpha)) 108 static int FinalAlphaValue(int alpha) { argument 109 alpha = MAX_ALPHA - alpha; 110 return clip(alpha, 0, MAX_ALPHA); 116 int alpha; local 211 const int alpha = mb->alpha_; local 245 int alpha; local 277 int alpha; local 311 int alpha; local 325 MBAnalyze(VP8EncIterator* const it, int alphas[MAX_ALPHA + 1], int* const alpha, int* const uv_alpha) argument 392 int alpha, uv_alpha; member in struct:__anon13266 [all...] |
H A D | picture_csp.c | 38 // Returns true if alpha[] has non-0xff values. 39 static int CheckNonOpaque(const uint8_t* alpha, int width, int height, argument 41 if (alpha == NULL) return 0; 45 if (alpha[x] != 0xff) return 1; // TODO(skal): check 4/8 bytes at a time. 47 alpha += y_step; 52 // Checking for the presence of non-opaque alpha. 64 if (argb[x] < 0xff000000u) return 1; // test any alpha values != 0xff 315 // Insert alpha values if needed, in replacement for the default 0xff ones.
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | api_filters.c | 678 VGubyte blue, green, red, alpha; local 682 alpha = (rgba & 0x000000ff)>> 0; 684 red << 8 | alpha;
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | es1_conversion.c | 45 _es_ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha) argument 50 (GLclampf) (alpha / 65536.0f)); 86 _es_Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) argument 91 (GLfloat) (alpha / 255.0f)); 95 _es_Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha) argument 100 (GLfloat) (alpha / 65536.0f));
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
H A D | s_blit.c | 388 GLfloat red, green, blue, alpha; local 414 alpha = lerp_2d(colWeight, rowWeight, 421 dstColor[dstCol][ACOMP] = IFLOOR(alpha); 445 GLfloat red, green, blue, alpha; local 471 alpha = lerp_2d(colWeight, rowWeight, 478 dstColor[dstCol][ACOMP] = alpha;
|
/external/chromium_org/third_party/opus/src/src/ |
H A D | analysis.c | 217 float alpha, alphaE, alphaE2; local 228 alpha = 1.f/IMIN(20, 1+tonal->count); 457 tonal->cmean[i] = (1-alpha)*tonal->cmean[i] + alpha*BFCC[i]; 467 tonal->std[i] = (1-alpha)*tonal->std[i] + alpha*features[i]*features[i];
|
/external/chromium_org/third_party/skia/bench/ |
H A D | MathBench.cpp | 153 static inline uint32_t QMul64(uint32_t value, U8CPU alpha) { argument 154 SkASSERT((uint8_t)alpha == alpha); 159 tmp *= alpha;
|
H A D | nanobench.cpp | 263 SkAlphaType alpha; member in struct:Config 311 #define CPU_CONFIG(name, backend, color, alpha) \ 313 Config config = { #name, Benchmark::backend, color, alpha, 0, kBogusGLContextType }; \ 358 config.color, config.alpha);
|
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkScalerContext.cpp | 358 static uint8_t pack_8_to_1(const uint8_t alpha[8]) { argument 362 bits |= convert_8_to_1(alpha[i]); 579 // now we need to extract the alpha-channel from the glyph's image
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkAlphaThresholdFilter.cpp | 365 U8CPU alpha = SkColorGetA(source); local 366 if (alpha == 0) 367 alpha = 1; 368 float scale = (float)innerThreshold / alpha;
|
H A D | SkArithmeticMode.cpp | 108 static bool needsUnpremul(int alpha) { argument 109 return 0 != alpha && 0xFF != alpha;
|
/external/chromium_org/third_party/skia/src/images/ |
H A D | SkImageDecoder_libwebp.cpp | 54 static bool webp_parse_header(SkStream* stream, int* width, int* height, int* alpha) { argument 79 *alpha = features.has_alpha; 119 * If the image does not have alpha, there is no need to premultiply.
|
/external/chromium_org/third_party/skia/src/ports/ |
H A D | SkFontHost_FreeType_common.cpp | 258 static uint8_t pack_8_to_1(const uint8_t alpha[8]) { argument 262 bits |= convert_8_to_1(alpha[i]);
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/aecm/ |
H A D | aecm_core_c.c | 43 //Q15 alpha = 0.99439986968132 const Factor for magnitude approximation 47 //Q15 alpha = 0.94234827210087 const Factor for magnitude approximation 51 //Q15 alpha = 0.82247698684306 const Factor for magnitude approximation 188 uint16_t alpha = 0; local 223 // magn ~= alpha * max(|imag|,|real|) + beta * min(|imag|,|real|) 225 // The parameters alpha and beta are stored in Q15 244 alpha = kAlpha1; 248 alpha = kAlpha2; 252 alpha = kAlpha3; 255 tmp16no1 = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(max_value, alpha, 1 [all...] |
/external/chromium_org/ui/gfx/android/ |
H A D | scroller.cc | 69 const float alpha = static_cast<float>(i) / NUM_SAMPLES; local 77 if (ApproxEquals(tx, alpha)) 79 if (tx > alpha) 92 if (ApproxEquals(dy, alpha)) 94 if (dy > alpha)
|
/external/chromium_org/ui/gfx/codec/ |
H A D | png_codec_unittest.cc | 35 // Set use_transparency to write data into the alpha channel, otherwise it will 36 // be filled with 0xff. With the alpha channel stripped, this should yield the 82 // Creates a grayscale image without an alpha channel. 93 // Creates a grayscale image with an alpha channel. 101 px[1] = x % 256; // alpha 335 // Create an image with known values, alpha must be opaque because it will be 395 int alpha = original_trans_chunk[palette_pixel]; local 401 EXPECT_EQ(alpha, rgba_pixel[3]); 483 int alpha = original_trans_chunk[palette_pixel]; local 489 EXPECT_EQ(alpha, rgba_pixe [all...] |
/external/chromium_org/ui/gfx/ |
H A D | color_analysis.cc | 140 int alpha = SkGetPackedA32(*in); local 141 if (alpha != 0 && alpha != 255) 398 // SkBitmap uses pre-multiplied alpha but the KMean clustering function 399 // above uses non-pre-multiplied alpha. Transform the bitmap before we 443 int alpha = SkGetPackedA32(*current_color); local 444 if (alpha != 0 && alpha != 255) 526 int alpha = SkGetPackedA32(source_color_row[x]); local 527 if (alpha ! 558 int alpha = SkGetPackedA32(source_color_row[x]); local [all...] |