Home | History | Annotate | Download | only in swrast

Lines Matching refs:rgba

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[i][BCOMP] = (GLubyte) b;
158 rgba[i][ACOMP] = (GLubyte) a;
169 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
185 const GLint t = rgba[i][ACOMP];
188 COPY_4V(rgba[i], dest[i]);
192 GLushort r = (GLushort) ((rgba[i][RCOMP] - dest[i][RCOMP]) * tt + dest[i][RCOMP]);
193 GLushort g = (GLushort) ((rgba[i][GCOMP] - dest[i][GCOMP]) * tt + dest[i][GCOMP]);
194 GLushort b = (GLushort) ((rgba[i][BCOMP] - dest[i][BCOMP]) * tt + dest[i][BCOMP]);
195 GLushort a = (GLushort) ((rgba[i][ACOMP] - dest[i][ACOMP]) * tt + dest[i][ACOMP]);
196 ASSIGN_4V(rgba[i], r, g, b, a);
207 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src;
223 const GLfloat t = rgba[i][ACOMP]; /* t in [0, 1] */
226 COPY_4V(rgba[i], dest[i]);
229 GLfloat r = (rgba[i][RCOMP] - dest[i][RCOMP]) * t + dest[i][RCOMP];
230 GLfloat g = (rgba[i][GCOMP] - dest[i][GCOMP]) * t + dest[i][GCOMP];
231 GLfloat b = (rgba[i][BCOMP] - dest[i][BCOMP]) * t + dest[i][BCOMP];
232 GLfloat a = (rgba[i][ACOMP] - dest[i][ACOMP]) * t + dest[i][ACOMP];
233 ASSIGN_4V(rgba[i], r, g, b, a);
258 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
262 GLint r = rgba[i][RCOMP] + dest[i][RCOMP];
263 GLint g = rgba[i][GCOMP] + dest[i][GCOMP];
264 GLint b = rgba[i][BCOMP] + dest[i][BCOMP];
265 GLint a = rgba[i][ACOMP] + dest[i][ACOMP];
266 rgba[i][RCOMP] = (GLubyte) MIN2( r, 255 );
267 rgba[i][GCOMP] = (GLubyte) MIN2( g, 255 );
268 rgba[i][BCOMP] = (GLubyte) MIN2( b, 255 );
269 rgba[i][ACOMP] = (GLubyte) MIN2( a, 255 );
274 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
278 GLint r = rgba[i][RCOMP] + dest[i][RCOMP];
279 GLint g = rgba[i][GCOMP] + dest[i][GCOMP];
280 GLint b = rgba[i][BCOMP] + dest[i][BCOMP];
281 GLint a = rgba[i][ACOMP] + dest[i][ACOMP];
282 rgba[i][RCOMP] = (GLshort) MIN2( r, 255 );
283 rgba[i][GCOMP] = (GLshort) MIN2( g, 255 );
284 rgba[i][BCOMP] = (GLshort) MIN2( b, 255 );
285 rgba[i][ACOMP] = (GLshort) MIN2( a, 255 );
290 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src;
296 rgba[i][RCOMP] += dest[i][RCOMP];
297 rgba[i][GCOMP] += dest[i][GCOMP];
298 rgba[i][BCOMP] += dest[i][BCOMP];
299 rgba[i][ACOMP] += dest[i][ACOMP];
321 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
325 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] );
326 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] );
327 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] );
328 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] );
333 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
337 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] );
338 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] );
339 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] );
340 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] );
345 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src;
350 rgba[i][RCOMP] = MIN2( rgba[i][RCOMP], dest[i][RCOMP] );
351 rgba[i][GCOMP] = MIN2( rgba[i][GCOMP], dest[i][GCOMP] );
352 rgba[i][BCOMP] = MIN2( rgba[i][BCOMP], dest[i][BCOMP] );
353 rgba[i][ACOMP] = MIN2( rgba[i][ACOMP], dest[i][ACOMP] );
374 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
378 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] );
379 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] );
380 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] );
381 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] );
386 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
390 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] );
391 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] );
392 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] );
393 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] );
398 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src;
403 rgba[i][RCOMP] = MAX2( rgba[i][RCOMP], dest[i][RCOMP] );
404 rgba[i][GCOMP] = MAX2( rgba[i][GCOMP], dest[i][GCOMP] );
405 rgba[i][BCOMP] = MAX2( rgba[i][BCOMP], dest[i][BCOMP] );
406 rgba[i][ACOMP] = MAX2( rgba[i][ACOMP], dest[i][ACOMP] );
426 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
431 rgba[i][RCOMP] = DIV255(rgba[i][RCOMP] * dest[i][RCOMP]);
432 rgba[i][GCOMP] = DIV255(rgba[i][GCOMP] * dest[i][GCOMP]);
433 rgba[i][BCOMP] = DIV255(rgba[i][BCOMP] * dest[i][BCOMP]);
434 rgba[i][ACOMP] = DIV255(rgba[i][ACOMP] * dest[i][ACOMP]);
439 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
443 rgba[i][RCOMP] = (rgba[i][RCOMP] * dest[i][RCOMP] + 65535) >> 16;
444 rgba[i][GCOMP] = (rgba[i][GCOMP] * dest[i][GCOMP] + 65535) >> 16;
445 rgba[i][BCOMP] = (rgba[i][BCOMP] * dest[i][BCOMP] + 65535) >> 16;
446 rgba[i][ACOMP] = (rgba[i][ACOMP] * dest[i][ACOMP] + 65535) >> 16;
451 GLfloat (*rgba)[4] = (GLfloat (*)[4]) src;
456 rgba[i][RCOMP] = rgba[i][RCOMP] * dest[i][RCOMP];
457 rgba[i][GCOMP] = rgba[i][GCOMP] * dest[i][GCOMP];
458 rgba[i][BCOMP] = rgba[i][BCOMP] * dest[i][BCOMP];
459 rgba[i][ACOMP] = rgba[i][ACOMP] * dest[i][ACOMP];
470 * \param rgba array of incoming (and modified) pixels
475 GLfloat rgba[][4], GLfloat dest[][4],
483 const GLfloat Rs = rgba[i][RCOMP];
484 const GLfloat Gs = rgba[i][GCOMP];
485 const GLfloat Bs = rgba[i][BCOMP];
486 const GLfloat As = rgba[i][ACOMP];
803 rgba[i][RCOMP] = MAX2( r, 0.0F );
804 rgba[i][GCOMP] = MAX2( g, 0.0F );
805 rgba[i][BCOMP] = MAX2( b, 0.0F );
806 rgba[i][ACOMP] = CLAMP( a, 0.0F, 1.0F );
808 ASSIGN_4V(rgba[i], r, g, b, a);
834 GLubyte (*rgba)[4] = (GLubyte (*)[4]) src;
840 rgbaF[i][RCOMP] = UBYTE_TO_FLOAT(rgba[i][RCOMP]);
841 rgbaF[i][GCOMP] = UBYTE_TO_FLOAT(rgba[i][GCOMP]);
842 rgbaF[i][BCOMP] = UBYTE_TO_FLOAT(rgba[i][BCOMP]);
843 rgbaF[i][ACOMP] = UBYTE_TO_FLOAT(rgba[i][ACOMP]);
855 _mesa_unclamped_float_rgba_to_ubyte(rgba[i], rgbaF[i]);
859 GLushort (*rgba)[4] = (GLushort (*)[4]) src;
865 rgbaF[i][RCOMP] = USHORT_TO_FLOAT(rgba[i][RCOMP]);
866 rgbaF[i][GCOMP] = USHORT_TO_FLOAT(rgba[i][GCOMP]);
867 rgbaF[i][BCOMP] = USHORT_TO_FLOAT(rgba[i][BCOMP]);
868 rgbaF[i][ACOMP] = USHORT_TO_FLOAT(rgba[i][ACOMP]);
880 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][RCOMP], rgbaF[i][RCOMP]);
881 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][GCOMP], rgbaF[i][GCOMP]);
882 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][BCOMP], rgbaF[i][BCOMP]);
883 UNCLAMPED_FLOAT_TO_USHORT(rgba[i][ACOMP], rgbaF[i][ACOMP]);
1008 span->array->rgba, rbPixels, span->array->ChanType);