Lines Matching defs:sample
274 GLchan sample[4]; /* the filtered texture sample */
284 sample[RCOMP] = tex00[2]; \
285 sample[GCOMP] = tex00[1]; \
286 sample[BCOMP] = tex00[0]; \
287 sample[ACOMP] = CHAN_MAX;
290 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\
291 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\
292 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\
293 sample[ACOMP] = CHAN_MAX;
296 sample[RCOMP] = tex00[3]; \
297 sample[GCOMP] = tex00[2]; \
298 sample[BCOMP] = tex00[1]; \
299 sample[ACOMP] = tex00[0];
302 sample[RCOMP] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]);\
303 sample[GCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\
304 sample[BCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\
305 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0])
308 dest[RCOMP] = span->red * (sample[RCOMP] + 1u) >> (FIXED_SHIFT + 8); \
309 dest[GCOMP] = span->green * (sample[GCOMP] + 1u) >> (FIXED_SHIFT + 8); \
310 dest[BCOMP] = span->blue * (sample[BCOMP] + 1u) >> (FIXED_SHIFT + 8); \
311 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8)
314 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \
315 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) \
317 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \
318 ((sample[ACOMP] + 1) * sample[GCOMP] << FIXED_SHIFT)) \
320 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \
321 ((sample[ACOMP] + 1) * sample[BCOMP] << FIXED_SHIFT)) \
326 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \
327 + (sample[RCOMP] + 1) * info->er) >> (FIXED_SHIFT + 8); \
328 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \
329 + (sample[GCOMP] + 1) * info->eg) >> (FIXED_SHIFT + 8); \
330 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \
331 + (sample[BCOMP] + 1) * info->eb) >> (FIXED_SHIFT + 8); \
332 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1) >> (FIXED_SHIFT + 8)
334 #define REPLACE COPY_CHAN4(dest, sample)
338 GLint rSum = FixedToInt(span->red) + (GLint) sample[RCOMP]; \
339 GLint gSum = FixedToInt(span->green) + (GLint) sample[GCOMP]; \
340 GLint bSum = FixedToInt(span->blue) + (GLint) sample[BCOMP]; \
344 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1) >> (FIXED_SHIFT + 8); \
351 dest[0] = sample[0]; \
352 dest[1] = sample[1]; \
353 dest[2] = sample[2]; \
611 GLchan sample[4]; /* the filtered texture sample */