Lines Matching refs:sample

273    GLchan sample[4];  /* the filtered texture sample */  in affine_span()  local
283 sample[RCOMP] = tex00[2]; \ in affine_span()
284 sample[GCOMP] = tex00[1]; \ in affine_span()
285 sample[BCOMP] = tex00[0]; \ in affine_span()
286 sample[ACOMP] = CHAN_MAX; in affine_span()
289 sample[RCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
290 sample[GCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span()
291 sample[BCOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]);\ in affine_span()
292 sample[ACOMP] = CHAN_MAX; in affine_span()
295 sample[RCOMP] = tex00[3]; \ in affine_span()
296 sample[GCOMP] = tex00[2]; \ in affine_span()
297 sample[BCOMP] = tex00[1]; \ in affine_span()
298 sample[ACOMP] = tex00[0]; in affine_span()
301 sample[RCOMP] = ilerp_2d(sf, tf, tex00[3], tex01[3], tex10[3], tex11[3]);\ in affine_span()
302 sample[GCOMP] = ilerp_2d(sf, tf, tex00[2], tex01[2], tex10[2], tex11[2]);\ in affine_span()
303 sample[BCOMP] = ilerp_2d(sf, tf, tex00[1], tex01[1], tex10[1], tex11[1]);\ in affine_span()
304 sample[ACOMP] = ilerp_2d(sf, tf, tex00[0], tex01[0], tex10[0], tex11[0]) in affine_span()
307 dest[RCOMP] = span->red * (sample[RCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
308 dest[GCOMP] = span->green * (sample[GCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
309 dest[BCOMP] = span->blue * (sample[BCOMP] + 1u) >> (FIXED_SHIFT + 8); \ in affine_span()
310 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1u) >> (FIXED_SHIFT + 8) in affine_span()
313 dest[RCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->red + \ in affine_span()
314 ((sample[ACOMP] + 1) * sample[RCOMP] << FIXED_SHIFT)) \ in affine_span()
316 dest[GCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->green + \ in affine_span()
317 ((sample[ACOMP] + 1) * sample[GCOMP] << FIXED_SHIFT)) \ in affine_span()
319 dest[BCOMP] = ((CHAN_MAX - sample[ACOMP]) * span->blue + \ in affine_span()
320 ((sample[ACOMP] + 1) * sample[BCOMP] << FIXED_SHIFT)) \ in affine_span()
325 dest[RCOMP] = ((CHAN_MAX - sample[RCOMP]) * span->red \ in affine_span()
326 + (sample[RCOMP] + 1) * info->er) >> (FIXED_SHIFT + 8); \ in affine_span()
327 dest[GCOMP] = ((CHAN_MAX - sample[GCOMP]) * span->green \ in affine_span()
328 + (sample[GCOMP] + 1) * info->eg) >> (FIXED_SHIFT + 8); \ in affine_span()
329 dest[BCOMP] = ((CHAN_MAX - sample[BCOMP]) * span->blue \ in affine_span()
330 + (sample[BCOMP] + 1) * info->eb) >> (FIXED_SHIFT + 8); \ in affine_span()
331 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1) >> (FIXED_SHIFT + 8) in affine_span()
333 #define REPLACE COPY_CHAN4(dest, sample) in affine_span()
337 GLint rSum = FixedToInt(span->red) + (GLint) sample[RCOMP]; \ in affine_span()
338 GLint gSum = FixedToInt(span->green) + (GLint) sample[GCOMP]; \ in affine_span()
339 GLint bSum = FixedToInt(span->blue) + (GLint) sample[BCOMP]; \ in affine_span()
343 dest[ACOMP] = span->alpha * (sample[ACOMP] + 1) >> (FIXED_SHIFT + 8); \ in affine_span()
350 dest[0] = sample[0]; \ in affine_span()
351 dest[1] = sample[1]; \ in affine_span()
352 dest[2] = sample[2]; \ in affine_span()
610 GLchan sample[4]; /* the filtered texture sample */ in fast_persp_span() local