Home
last modified time | relevance | path

Searched refs:srtot (Results 1 – 2 of 2) sorted by relevance

/third_party/pixman/pixman/
Dpixman-bits-image.c194 static force_inline void accum_32(unsigned int *satot, unsigned int *srtot, in accum_32() argument
200 *srtot += (int)RED_8 (pixel) * f; in accum_32()
206 static force_inline void reduce_32(unsigned int satot, unsigned int srtot, in reduce_32() argument
213 srtot = (srtot + 0x8000) >> 16; in reduce_32()
218 srtot = CLIP (srtot, 0, 0xff); in reduce_32()
222 *ret = ((satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot)); in reduce_32()
225 static force_inline void accum_float(unsigned int *satot, unsigned int *srtot, in accum_float() argument
232 *srtot += pixel->r * f; in accum_float()
237 static force_inline void reduce_float(unsigned int satot, unsigned int srtot, in reduce_float() argument
244 ret->r = CLIP (srtot / 65536.f, 0.f, 1.f); in reduce_float()
[all …]
Dpixman-fast-path.c2747 int satot, srtot, sgtot, sbtot; in bits_image_fetch_separable_convolution_affine() local
2772 satot = srtot = sgtot = sbtot = 0; in bits_image_fetch_separable_convolution_affine()
2820 srtot += (int)RED_8 (pixel) * f; in bits_image_fetch_separable_convolution_affine()
2830 srtot = (srtot + 0x8000) >> 16; in bits_image_fetch_separable_convolution_affine()
2835 srtot = CLIP (srtot, 0, 0xff); in bits_image_fetch_separable_convolution_affine()
2839 buffer[k] = (satot << 24) | (srtot << 16) | (sgtot << 8) | (sbtot << 0); in bits_image_fetch_separable_convolution_affine()