• Home
  • Raw
  • Download

Lines Matching refs:rgba

121    GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;  in blend_transparency_ubyte()  local
137 const GLint t = rgba[i][ACOMP]; /* t is in [0, 255] */ in blend_transparency_ubyte()
140 COPY_4UBV(rgba[i], dest[i]); in blend_transparency_ubyte()
144 const GLint r = DIV255((rgba[i][RCOMP] - dest[i][RCOMP]) * t) + dest[i][RCOMP]; in blend_transparency_ubyte()
145 const GLint g = DIV255((rgba[i][GCOMP] - dest[i][GCOMP]) * t) + dest[i][GCOMP]; in blend_transparency_ubyte()
146 const GLint b = DIV255((rgba[i][BCOMP] - dest[i][BCOMP]) * t) + dest[i][BCOMP]; in blend_transparency_ubyte()
147 const GLint a = DIV255((rgba[i][ACOMP] - dest[i][ACOMP]) * t) + dest[i][ACOMP]; in blend_transparency_ubyte()
152 rgba[i][RCOMP] = (GLubyte) r; in blend_transparency_ubyte()
153 rgba[i][GCOMP] = (GLubyte) g; in blend_transparency_ubyte()
154 rgba[i][BCOMP] = (GLubyte) b; in blend_transparency_ubyte()
155 rgba[i][ACOMP] = (GLubyte) a; in blend_transparency_ubyte()
166 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_transparency_ushort() local
182 const GLint t = rgba[i][ACOMP]; in blend_transparency_ushort()
185 COPY_4V(rgba[i], dest[i]); in blend_transparency_ushort()
189 GLushort r = (GLushort) ((rgba[i][RCOMP] - dest[i][RCOMP]) * tt + dest[i][RCOMP]); in blend_transparency_ushort()
190 GLushort g = (GLushort) ((rgba[i][GCOMP] - dest[i][GCOMP]) * tt + dest[i][GCOMP]); in blend_transparency_ushort()
191 GLushort b = (GLushort) ((rgba[i][BCOMP] - dest[i][BCOMP]) * tt + dest[i][BCOMP]); in blend_transparency_ushort()
192 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]); in blend_transparency_ushort()
193 ASSIGN_4V(rgba[i], r, g, b, a); in blend_transparency_ushort()
204 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src; in blend_transparency_float() local
220 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] */ in blend_transparency_float()
223 COPY_4V(rgba[i], dest[i]); in blend_transparency_float()
226 GLfloat r = (rgba[i][RCOMP] - dest[i][RCOMP]) * t + dest[i][RCOMP]; in blend_transparency_float()
227 GLfloat g = (rgba[i][GCOMP] - dest[i][GCOMP]) * t + dest[i][GCOMP]; in blend_transparency_float()
228 GLfloat b = (rgba[i][BCOMP] - dest[i][BCOMP]) * t + dest[i][BCOMP]; in blend_transparency_float()
229 GLfloat a = (rgba[i][ACOMP] - dest[i][ACOMP]) * t + dest[i][ACOMP]; in blend_transparency_float()
230 ASSIGN_4V(rgba[i], r, g, b, a); in blend_transparency_float()
255 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_add() local
259 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
260 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add()
261 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add()
262 GLint a = rgba[i][ACOMP] + dest[i][ACOMP]; in blend_add()
263 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 ); in blend_add()
264 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 ); in blend_add()
265 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 ); in blend_add()
266 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 ); in blend_add()
271 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_add() local
275 GLint r = rgba[i][RCOMP] + dest[i][RCOMP]; in blend_add()
276 GLint g = rgba[i][GCOMP] + dest[i][GCOMP]; in blend_add()
277 GLint b = rgba[i][BCOMP] + dest[i][BCOMP]; in blend_add()
278 GLint a = rgba[i][ACOMP] + dest[i][ACOMP]; in blend_add()
279 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 ); in blend_add()
280 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 ); in blend_add()
281 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 ); in blend_add()
282 rgba[i][ACOMP] = (GLshort) MIN2( a, 255 ); in blend_add()
287 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src; in blend_add() local
293 rgba[i][RCOMP] += dest[i][RCOMP]; in blend_add()
294 rgba[i][GCOMP] += dest[i][GCOMP]; in blend_add()
295 rgba[i][BCOMP] += dest[i][BCOMP]; in blend_add()
296 rgba[i][ACOMP] += dest[i][ACOMP]; in blend_add()
318 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_min() local
322 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
323 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
324 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_min()
325 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_min()
330 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_min() local
334 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
335 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
336 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_min()
337 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_min()
342 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src; in blend_min() local
347 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_min()
348 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_min()
349 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_min()
350 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_min()
371 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_max() local
375 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max()
376 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max()
377 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max()
378 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max()
383 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_max() local
387 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max()
388 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max()
389 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max()
390 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max()
395 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src; in blend_max() local
400 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] ); in blend_max()
401 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] ); in blend_max()
402 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] ); in blend_max()
403 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] ); in blend_max()
423 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_modulate() local
428 rgba[i][RCOMP] = DIV255(rgba[i][RCOMP] * dest[i][RCOMP]); in blend_modulate()
429 rgba[i][GCOMP] = DIV255(rgba[i][GCOMP] * dest[i][GCOMP]); in blend_modulate()
430 rgba[i][BCOMP] = DIV255(rgba[i][BCOMP] * dest[i][BCOMP]); in blend_modulate()
431 rgba[i][ACOMP] = DIV255(rgba[i][ACOMP] * dest[i][ACOMP]); in blend_modulate()
436 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_modulate() local
440 rgba[i][RCOMP] = (rgba[i][RCOMP] * dest[i][RCOMP] + 65535) >> 16; in blend_modulate()
441 rgba[i][GCOMP] = (rgba[i][GCOMP] * dest[i][GCOMP] + 65535) >> 16; in blend_modulate()
442 rgba[i][BCOMP] = (rgba[i][BCOMP] * dest[i][BCOMP] + 65535) >> 16; in blend_modulate()
443 rgba[i][ACOMP] = (rgba[i][ACOMP] * dest[i][ACOMP] + 65535) >> 16; in blend_modulate()
448 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src; in blend_modulate() local
453 rgba[i][RCOMP] = rgba[i][RCOMP] * dest[i][RCOMP]; in blend_modulate()
454 rgba[i][GCOMP] = rgba[i][GCOMP] * dest[i][GCOMP]; in blend_modulate()
455 rgba[i][BCOMP] = rgba[i][BCOMP] * dest[i][BCOMP]; in blend_modulate()
456 rgba[i][ACOMP] = rgba[i][ACOMP] * dest[i][ACOMP]; in blend_modulate()
472 GLfloat rgba[][4], GLfloat dest[][4], in blend_general_float()
480 const GLfloat Rs = rgba[i][RCOMP]; in blend_general_float()
481 const GLfloat Gs = rgba[i][GCOMP]; in blend_general_float()
482 const GLfloat Bs = rgba[i][BCOMP]; in blend_general_float()
483 const GLfloat As = rgba[i][ACOMP]; in blend_general_float()
800 rgba[i][RCOMP] = MAX2( r, 0.0F ); in blend_general_float()
801 rgba[i][GCOMP] = MAX2( g, 0.0F ); in blend_general_float()
802 rgba[i][BCOMP] = MAX2( b, 0.0F ); in blend_general_float()
803 rgba[i][ACOMP] = CLAMP( a, 0.0F, 1.0F ); in blend_general_float()
805 ASSIGN_4V(rgba[i], r, g, b, a); in blend_general_float()
831 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src; in blend_general() local
837 rgbaF[i][RCOMP] = UBYTE_TO_FLOAT(rgba[i][RCOMP]); in blend_general()
838 rgbaF[i][GCOMP] = UBYTE_TO_FLOAT(rgba[i][GCOMP]); in blend_general()
839 rgbaF[i][BCOMP] = UBYTE_TO_FLOAT(rgba[i][BCOMP]); in blend_general()
840 rgbaF[i][ACOMP] = UBYTE_TO_FLOAT(rgba[i][ACOMP]); in blend_general()
852 _mesa_unclamped_float_rgba_to_ubyte(rgba[i], rgbaF[i]); in blend_general()
856 GLushort (*rgba)[4] = (GLushort (*)[4]) src; in blend_general() local
862 rgbaF[i][RCOMP] = USHORT_TO_FLOAT(rgba[i][RCOMP]); in blend_general()
863 rgbaF[i][GCOMP] = USHORT_TO_FLOAT(rgba[i][GCOMP]); in blend_general()
864 rgbaF[i][BCOMP] = USHORT_TO_FLOAT(rgba[i][BCOMP]); in blend_general()
865 rgbaF[i][ACOMP] = USHORT_TO_FLOAT(rgba[i][ACOMP]); in blend_general()
877 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][RCOMP], rgbaF[i][RCOMP]); in blend_general()
878 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][GCOMP], rgbaF[i][GCOMP]); in blend_general()
879 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][BCOMP], rgbaF[i][BCOMP]); in blend_general()
880 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][ACOMP], rgbaF[i][ACOMP]); in blend_general()
1005 span->array->rgba, rbPixels, span->array->ChanType); in _swrast_blend_span()