Home
last modified time | relevance | path

Searched refs:ctable (Results 1 – 4 of 4) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgSwFill.cpp113 auto rgbaEnd = _alphaUnblend(fill->ctable[i]); in _applyAA()
114 auto rgbaBegin = _alphaUnblend(fill->ctable[begin]); in _applyAA()
121 fill->ctable[i++] = ALPHA_BLEND((color | 0xff000000), (color >> 24)); in _applyAA()
133 if (!fill->ctable) { in _updateColorTable()
134 fill->ctable = static_cast<uint32_t*>(malloc(GRADIENT_STOP_SIZE * sizeof(uint32_t))); in _updateColorTable()
135 if (!fill->ctable) return false; in _updateColorTable()
161 fill->ctable[i++] = ALPHA_BLEND(rgba | 0xff000000, a); in _updateColorTable()
164 fill->ctable[i] = fill->ctable[i - 1]; in _updateColorTable()
189 fill->ctable[i] = ALPHA_BLEND((color | 0xff000000), (color >> 24)); in _updateColorTable()
202 fill->ctable[i] = rgba; in _updateColorTable()
[all …]
DtvgSwRenderer.cpp152 auto ctable = (flags & RenderUpdateFlag::Gradient) ? true : false; in run() local
153 if (ctable) shapeResetFill(&shape); in run()
154 … if (!shapeGenFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
166 auto ctable = (flags & RenderUpdateFlag::GradientStroke) ? true : false; in run() local
167 if (ctable) shapeResetStrokeFill(&shape); in run()
168 … if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run()
DtvgSwShape.cpp635 …shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity, bool ctable) in shapeGenFillColors() argument
637 return fillGenColorTable(shape->fill, fill, transform, surface, opacity, ctable); in shapeGenFillColors()
641 …shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity, bool ctable) in shapeGenStrokeFillColors() argument
643 return fillGenColorTable(shape->stroke->fill, fill, transform, surface, opacity, ctable); in shapeGenStrokeFillColors()
DtvgSwCommon.h156 uint32_t* ctable; member
512 …hape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity, bool ctable);
513 …hape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity, bool ctable);
530 …ill, const Fill* fdata, const Matrix& transform, SwSurface* surface, uint8_t opacity, bool ctable);