Lines Matching refs:alpha

88 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest,
92 if (alpha > 0) {
93 if (bottom[3] == 0 || alpha == 255) {
97 dest[3] = alpha;
105 gc1, gc2, gc3, alpha,
115 blend_colors(uint8* bottom, uint8 alpha,
119 if (alpha > 0) {
120 if (bottom[3] == 0 || alpha == 255) {
124 bottom[3] = alpha;
132 gc1, gc2, gc3, alpha,
140 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest,
143 if (alpha > 0) {
144 if (bottom[3] == 0 || alpha == 255) {
148 dest[3] = alpha;
151 c1, c2, c3, alpha,
161 blend_colors(uint8* bottom, uint8 alpha, uint8 c1, uint8 c2, uint8 c3)
163 if (alpha > 0) {
164 if (bottom[3] == 0 || alpha == 255) {
168 bottom[3] = alpha;
171 c1, c2, c3, alpha,
181 uint8 alpha = (source[3] * alphaOverride) / 255;
182 if (alpha > 0) {
183 if (bottom[3] == 0 || alpha == 255) {
187 bottom[3] = alpha;
190 source[0], source[1], source[2], alpha,
232 blend_pixels(uint8* bottom, uint8* top, uint8 alpha)
234 if (alpha > 0) {
235 if (alpha == 255) {
249 uint8 mergeAlpha = bottom[3] ? (top[3] * alpha) / 255 : 255;
254 bottom[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
261 blend_pixels_copy(uint8* bottom, uint8* top, uint8* dest, uint8 alpha)
263 if (alpha > 0) {
264 if (alpha == 255) {
278 uint8 mergeAlpha = bottom[3] ? (top[3] * alpha) / 255 : 255;
283 dest[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
297 uint8 alpha = (top[3] * alphaOverride) / 255;
298 if (alpha > 0) {
299 if (alpha == 255) {
313 uint8 mergeAlpha = bottom[3] ? alpha : 255;
318 bottom[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
327 uint8 alpha = (top[3] * alphaOverride) / 255;
328 if (alpha > 0) {
329 if (alpha == 255) {
343 uint8 mergeAlpha = bottom[3] ? alpha : 255;
348 dest[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
363 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest,
366 if (alpha > 0) {
367 if (bottom[3] == 0 || alpha == 255) {
371 dest[3] = alpha;
374 uint32 destAlpha = 255 - alpha;
375 dest[0] = (uint8)((bottom[0] * destAlpha + c1 * alpha) / 255);
376 dest[1] = (uint8)((bottom[1] * destAlpha + c2 * alpha) / 255);
377 dest[2] = (uint8)((bottom[2] * destAlpha + c3 * alpha) / 255);
380 uint8 alphaRest = 255 - alpha;
383 uint32 alphaSrc = 255 * alpha;
397 blend_colors(uint8* bottom, uint8 alpha, uint8 c1, uint8 c2, uint8 c3)
399 if (alpha > 0) {
400 if (bottom[3] == 0 || alpha == 255) {
404 bottom[3] = alpha;
407 uint32 destAlpha = 255 - alpha;
408 bottom[0] = (uint8)((bottom[0] * destAlpha + c1 * alpha) / 255);
409 bottom[1] = (uint8)((bottom[1] * destAlpha + c2 * alpha) / 255);
410 bottom[2] = (uint8)((bottom[2] * destAlpha + c3 * alpha) / 255);
412 uint8 alphaRest = 255 - alpha;
415 uint32 alphaSrc = 255 * alpha;
429 uint8 alpha = (source[3] * alphaOverride) / 255;
430 if (alpha > 0) {
431 if (bottom[3] == 0 || alpha == 255) {
435 bottom[3] = alpha;
438 uint32 destAlpha = 255 - alpha;
439 bottom[0] = (uint8)((bottom[0] * destAlpha + source[0] * alpha) / 255);
440 bottom[1] = (uint8)((bottom[1] * destAlpha + source[1] * alpha) / 255);
441 bottom[2] = (uint8)((bottom[2] * destAlpha + source[2] * alpha) / 255);
443 uint8 alphaRest = 255 - alpha;
446 uint32 alphaSrc = 255 * alpha;
517 blend_pixels(uint8* bottom, uint8* top, uint8 alpha)
519 if (alpha > 0) {
520 if (alpha == 255) {
526 uint8 mergeAlpha = bottom[3] ? (top[3] * alpha) / 255 : 255;
531 bottom[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
538 blend_pixels_copy(uint8* bottom, uint8* top, uint8* dest, uint8 alpha)
540 if (alpha > 0) {
541 if (alpha == 255) {
547 uint8 mergeAlpha = bottom[3] ? (top[3] * alpha) / 255 : 255;
552 dest[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
566 uint8 alpha = (top[3] * alphaOverride) / 255;
567 if (alpha > 0) {
568 if (alpha == 255) {
574 uint8 mergeAlpha = bottom[3] ? alpha : 255;
579 bottom[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;
588 uint8 alpha = (top[3] * alphaOverride) / 255;
589 if (alpha > 0) {
590 if (alpha == 255) {
596 uint8 mergeAlpha = bottom[3] ? alpha : 255;
601 dest[3] = (bottom[3] * (255 - alpha) + top[3] * alpha) / 255;