Lines Matching refs:r

139 static inline uint32_t _abgrJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a)  in _abgrJoin()  argument
141 return (a << 24 | b << 16 | g << 8 | r); in _abgrJoin()
145 static inline uint32_t _argbJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _argbJoin() argument
147 return (a << 24 | r << 16 | g << 8 | b); in _argbJoin()
330 …MaskedRect(SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t … in _rasterCompositeMaskedRect() argument
349 …MaskedRect(SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t … in _rasterDirectMaskedRect() argument
370 static bool _rasterMaskedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMaskedRect() argument
378 …(surface->compositor->method)) return _rasterDirectMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
379 else return _rasterCompositeMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect()
384 static bool _rasterMattedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMattedRect() argument
396 auto color = surface->join(r, g, b, a); in _rasterMattedRect()
421 static bool _rasterBlendingRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uin… in _rasterBlendingRect() argument
427 auto color = surface->join(r, g, b, a); in _rasterBlendingRect()
440 static bool _rasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, … in _rasterTranslucentRect() argument
443 return avxRasterTranslucentRect(surface, region, r, g, b, a); in _rasterTranslucentRect()
445 return neonRasterTranslucentRect(surface, region, r, g, b, a); in _rasterTranslucentRect()
447 return cRasterTranslucentRect(surface, region, r, g, b, a); in _rasterTranslucentRect()
452 static bool _rasterSolidRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8_… in _rasterSolidRect() argument
459 auto color = surface->join(r, g, b, 255); in _rasterSolidRect()
477 static bool _rasterRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8_t b, … in _rasterRect() argument
480 if (_matting(surface)) return _rasterMattedRect(surface, region, r, g, b, a); in _rasterRect()
481 else return _rasterMaskedRect(surface, region, r, g, b, a); in _rasterRect()
483 return _rasterBlendingRect(surface, region, r, g, b, a); in _rasterRect()
485 if (a == 255) return _rasterSolidRect(surface, region, r, g, b); in _rasterRect()
486 else return _rasterTranslucentRect(surface, region, r, g, b, a); in _rasterRect()
496 static bool _rasterCompositeMaskedRle(SwSurface* surface, SwRle* rle, SwMask maskOp, uint8_t r, uin… in _rasterCompositeMaskedRle() argument
516 static bool _rasterDirectMaskedRle(SwSurface* surface, SwRle* rle, SwMask maskOp, uint8_t r, uint8_… in _rasterDirectMaskedRle() argument
537 static bool _rasterMaskedRle(SwSurface* surface, SwRle* rle, uint8_t r, uint8_t g, uint8_t b, uint8… in _rasterMaskedRle() argument
545 …if (_direct(surface->compositor->method)) return _rasterDirectMaskedRle(surface, rle, maskOp, r, g… in _rasterMaskedRle()
546 else return _rasterCompositeMaskedRle(surface, rle, maskOp, r, g, b, a); in _rasterMaskedRle()
551 static bool _rasterMattedRle(SwSurface* surface, SwRle* rle, uint8_t r, uint8_t g, uint8_t b, uint8… in _rasterMattedRle() argument
563 auto color = surface->join(r, g, b, a); in _rasterMattedRle()
591 static bool _rasterBlendingRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g, uint8_t … in _rasterBlendingRle() argument
596 auto color = surface->join(r, g, b, a); in _rasterBlendingRle()
615 static bool _rasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g, uint8… in _rasterTranslucentRle() argument
618 return avxRasterTranslucentRle(surface, rle, r, g, b, a); in _rasterTranslucentRle()
620 return neonRasterTranslucentRle(surface, rle, r, g, b, a); in _rasterTranslucentRle()
622 return cRasterTranslucentRle(surface, rle, r, g, b, a); in _rasterTranslucentRle()
627 static bool _rasterSolidRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g, uint8_t b) in _rasterSolidRle() argument
633 auto color = surface->join(r, g, b, 255); in _rasterSolidRle()
664 static bool _rasterRle(SwSurface* surface, SwRle* rle, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _rasterRle() argument
669 if (_matting(surface)) return _rasterMattedRle(surface, rle, r, g, b, a); in _rasterRle()
670 else return _rasterMaskedRle(surface, rle, r, g, b, a); in _rasterRle()
672 return _rasterBlendingRle(surface, rle, r, g, b, a); in _rasterRle()
674 if (a == 255) return _rasterSolidRle(surface, rle, r, g, b); in _rasterRle()
675 else return _rasterTranslucentRle(surface, rle, r, g, b, a); in _rasterRle()
1698 uint16_t r = ((buffer[x] >> 8) & 0xff00) / a; in rasterUnpremultiply() local
1701 if (r > 0xff) r = 0xff; in rasterUnpremultiply()
1704 buffer[x] = (a << 24) | (r << 16) | (g << 8) | (b); in rasterUnpremultiply()
1739 return a > 0 ? rasterShape(surface, shape, color->r, color->g, color->b, a) : true; in rasterGradientShape()
1760 return a > 0 ? rasterStroke(surface, shape, color->r, color->g, color->b, a) : true; in rasterGradientStroke()
1771 bool rasterShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in rasterShape() argument
1774 r = MULTIPLY(r, a); in rasterShape()
1778 if (shape->fastTrack) return _rasterRect(surface, shape->bbox, r, g, b, a); in rasterShape()
1779 else return _rasterRle(surface, shape->rle, r, g, b, a); in rasterShape()
1783 bool rasterStroke(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a) in rasterStroke() argument
1786 r = MULTIPLY(r, a); in rasterStroke()
1791 return _rasterRle(surface, shape->strokeRle, r, g, b, a); in rasterStroke()