/lvgl-latest/src/libs/thorvg/ |
D | tvgSwRenderer.cpp | 51 uint8_t opacity; member 101 … if (!rshape->stroke->fill && (MULTIPLY(rshape->stroke->color[3], opacity) == 0)) return 0.0f; in validStrokeWidth() 119 if (opacity == 0 && !clipper) { in run() 136 alpha = MULTIPLY(alpha, opacity); in run() 154 … if (!shapeGenFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run() 168 … if (!shapeGenStrokeFillColors(&shape, fill, transform, surface, opacity, ctable)) goto err; in run() 232 …nderUpdateFlag::Image | RenderUpdateFlag::Transform | RenderUpdateFlag::Color)) && (opacity > 0)) { in run() 274 static void _renderFill(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderFill() argument 278 rasterGradientShape(surface, &task->shape, fill, opacity); in _renderFill() 281 a = MULTIPLY(opacity, a); in _renderFill() [all …]
|
D | tvgScene.h | 68 uint8_t opacity; //for composition member 88 bool needComposition(uint8_t opacity) in needComposition() 90 if (opacity == 0 || paints.empty()) return false; in needComposition() 103 if (opacity == 255) return false; in needComposition() 113 …od* renderer, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… in update() 117 if ((needComp = needComposition(opacity))) { in update() 120 this->opacity = opacity; in update() 121 opacity = 255; in update() 124 paint->pImpl->update(renderer, transform, clips, opacity, flag, false); in update() 139 renderer->beginComposite(cmp, CompositeMethod::None, opacity); in render()
|
D | tvgPaint.cpp | 167 ret->pImpl->opacity = opacity; in duplicate() 212 if (opacity == 0) return true; in render() 228 if (cmp) renderer->beginComposite(cmp, compData->method, compData->target->pImpl->opacity); in render() 239 …derMethod* renderer, const Matrix& pm, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… in update() argument 267 …ask && a == 255 && PP(shape)->opacity == 255) || (method == CompositeMethod::InvAlphaMask && (a ==… in update() 298 opacity = MULTIPLY(opacity, this->opacity); in update() 303 PAINT_METHOD(rd, update(renderer, tr.cm, clips, opacity, newFlag, clipper)); in update() 381 opacity = 255; in reset() 497 Result Paint::opacity(uint8_t o) noexcept in opacity() function in Paint 499 if (pImpl->opacity == o) return Result::Success; in opacity() [all …]
|
D | tvgSwRaster.cpp | 60 … uint32_t y, uint32_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity) in operator ()() 62 fillLinear(fill, dst, y, x, len, cmp, alpha, csize, opacity); in operator ()() 89 … uint32_t y, uint32_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity) in operator ()() 91 fillRadial(fill, dst, y, x, len, cmp, alpha, csize, opacity); in operator ()() 700 …ce* surface, const SwImage* image, const Matrix* itransform, const SwBBox& region, uint8_t opacity) in _rasterScaledMaskedRleImage() argument 707 …ce* surface, const SwImage* image, const Matrix* itransform, const SwBBox& region, uint8_t opacity) in _rasterScaledMattedRleImage() argument 722 auto a = MULTIPLY(span->coverage, opacity); in _rasterScaledMattedRleImage() 734 …ce* surface, const SwImage* image, const Matrix* itransform, const SwBBox& region, uint8_t opacity) in _rasterScaledBlendingRleImage() argument 744 auto alpha = MULTIPLY(span->coverage, opacity); in _rasterScaledBlendingRleImage() 765 …ce* surface, const SwImage* image, const Matrix* itransform, const SwBBox& region, uint8_t opacity) in _rasterScaledRleImage() argument [all …]
|
D | tvgSwRenderer.h | 42 …derData data, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… 43 …derData data, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… 62 bool beginComposite(RenderCompositor* cmp, CompositeMethod method, uint8_t opacity) override; 86 …* task, const Matrix& transform, const Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag…
|
D | tvgShape.h | 41 uint8_t opacity; //for composition member 65 renderer->beginComposite(cmp, CompositeMethod::None, opacity); in render() 73 bool needComposition(uint8_t opacity) in needComposition() 75 if (opacity == 0) return false; in needComposition() 82 if (opacity < 255) return true; in needComposition() 88 if (target->pImpl->opacity == 255 || target->pImpl->opacity == 0) { in needComposition() 106 …od* renderer, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… in update() 110 if ((needComp = needComposition(opacity))) { in update() 113 this->opacity = opacity; in update() 114 opacity = 255; in update() [all …]
|
D | tvgSwRasterTexmap.h | 79 …e, const SwBBox* region, int yStart, int yEnd, AASpans* aaSpans, uint8_t opacity, uint8_t dirFlag … 152 if (opacity == 255) { 237 auto tmp = maskOp(MULTIPLY(px, opacity), *cmp, 0); 241 auto tmp = MULTIPLY(px, opacity); 275 …onst SwImage* image, const SwBBox* region, int yStart, int yEnd, AASpans* aaSpans, uint8_t opacity) in _rasterBlendingPolygonImageSegment() argument 345 if (opacity == 255) { in _rasterBlendingPolygonImageSegment() 422 auto src = ALPHA_BLEND(px, opacity); in _rasterBlendingPolygonImageSegment() 452 …image, const SwBBox* region, int yStart, int yEnd, AASpans* aaSpans, uint8_t opacity, bool matting) in _rasterPolygonImageSegment() argument 529 if (opacity == 255) { in _rasterPolygonImageSegment() 615 src = ALPHA_BLEND(px, MULTIPLY(opacity, alpha(cmp))); in _rasterPolygonImageSegment() [all …]
|
D | tvgLottieModel.h | 114 LottieOpacity opacity = 255; member 197 LottieOpacity opacity = 255; member 470 if (!opacity.frames && opacity.value == 255) return true; in mergeable() 480 if (opacity.ix == ix) return &opacity; in property() 494 LottieOpacity opacity = 255; member 506 LottieOpacity opacity = 255; member 511 if (opacity.ix == ix) return &opacity; in property() 575 …if (start.frames || end.frames || height.frames || angle.frames || opacity.frames || colorStops.fr… in prepare() 585 if (opacity.ix == ix) return &opacity; in property() 598 LottieOpacity opacity = 255; member [all …]
|
D | tvgPicture.h | 73 bool needComposition(uint8_t opacity); 94 …od* renderer, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… in update() 107 rd = renderer->prepare(surface, rd, m, clips, opacity, flag); in update() 113 needComp = needComposition(opacity) ? true : false; in update() 114 rd = paint->pImpl->update(renderer, transform, clips, opacity, flag, false); in update()
|
D | tvgSvgSceneBuilder.cpp | 93 …ptr<LinearGradient> _applyLinearGradientProperty(SvgStyleGradient* g, const Box& vBox, int opacity) in _applyLinearGradientProperty() argument 134 stops[i].a = static_cast<uint8_t>((colorStop->a * opacity) / 255); in _applyLinearGradientProperty() 148 …ptr<RadialGradient> _applyRadialGradientProperty(SvgStyleGradient* g, const Box& vBox, int opacity) in _applyRadialGradientProperty() argument 193 stops[i].a = static_cast<uint8_t>((colorStop->a * opacity) / 255); in _applyRadialGradientProperty() 333 … auto linear = _applyLinearGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyProperty() 336 … auto radial = _applyRadialGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyProperty() 344 vg->fill(style->color.r, style->color.g, style->color.b, style->fill.opacity); in _applyProperty() 347 …le->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b, style->fill.opacity); in _applyProperty() 356 if (style->opacity < 255) vg->opacity(style->opacity); in _applyProperty() 377 …o linear = _applyLinearGradientProperty(style->stroke.paint.gradient, bBox, style->stroke.opacity); in _applyProperty() [all …]
|
D | tvgPicture.cpp | 62 bool Picture::Impl::needComposition(uint8_t opacity) in needComposition() argument 65 if (opacity < 255) return false; in needComposition() 71 if (target->pImpl->opacity == 255 || target->pImpl->opacity == 0) return false; in needComposition()
|
D | tvgLottieBuilder.cpp | 107 …orm* transform, float frameNo, bool autoOrient, Matrix& matrix, uint8_t& opacity, LottieExpression… in _updateTransform() argument 112 opacity = 255; in _updateTransform() 146 if (scale.x == 0.0f || scale.y == 0.0f) opacity = 0; in _updateTransform() 147 else opacity = transform->opacity(frameNo, exps); in _updateTransform() 164 _updateTransform(transform, frameNo, layer->autoOrient, matrix, layer->cache.opacity, exps); in updateTransform() 181 uint8_t opacity; in updateTransform() local 185 _updateTransform(transform, frameNo, false, *ctx->transform, opacity, exps); in updateTransform() 192 if (!_updateTransform(transform, frameNo, false, matrix, opacity, exps)) return; in updateTransform() 195 ctx->propagator->opacity(MULTIPLY(opacity, PP(ctx->propagator)->opacity)); in updateTransform() 268 … ctx->propagator->stroke(color.rgb[0], color.rgb[1], color.rgb[2], stroke->opacity(frameNo, exps)); in updateSolidStroke() [all …]
|
D | tvgSvgCssStyle.cpp | 89 to->fill.opacity = from->fill.opacity; in _copyStyle() 123 to->stroke.opacity = from->stroke.opacity; in _copyStyle() 174 if ((from->opacity < 255 && !(to->flags & SvgStyleFlags::Opacity)) || in _copyStyle() 176 to->opacity = from->opacity; in _copyStyle()
|
D | tvgSwFill.cpp | 129 … bool _updateColorTable(SwFill* fill, const Fill* fdata, const SwSurface* surface, uint8_t opacity) in _updateColorTable() argument 144 auto a = MULTIPLY(pColors->a, opacity); in _updateColorTable() 178 auto a2 = MULTIPLY(next->a, opacity); in _updateColorTable() 371 … uint32_t y, uint32_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity) in fillRadial() argument 379 if (opacity == 255) { in fillRadial() 389 *dst = opBlendNormal(_pixel(fill, x0), *dst, MULTIPLY(opacity, alpha(cmp))); in fillRadial() 398 if (opacity == 255) { in fillRadial() 407 … *dst = opBlendNormal(_pixel(fill, sqrtf(det) - b), *dst, MULTIPLY(opacity, alpha(cmp))); in fillRadial() 550 … uint32_t y, uint32_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity) in fillLinear() argument 558 if (opacity == 255) { in fillLinear() [all …]
|
D | tvgSwCommon.h | 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); 536 …nt8_t* dst, uint32_t y, uint32_t x, uint32_t len, SwMask maskOp, uint8_t opacity); … 537 …nt32_t y, uint32_t x, uint32_t len, uint8_t* cmp, SwMask maskOp, uint8_t opacity); … 540 …2_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity); //matting v… 546 …2_t x, uint32_t len, uint8_t* cmp, SwAlpha alpha, uint8_t csize, uint8_t opacity); //matting v… 567 bool rasterGradientShape(SwSurface* surface, SwShape* shape, const Fill* fdata, uint8_t opacity); 569 …(SwSurface* surface, SwImage* image, const Matrix& transform, const SwBBox& bbox, uint8_t opacity); 571 bool rasterGradientStroke(SwSurface* surface, SwShape* shape, const Fill* fdata, uint8_t opacity);
|
D | tvgRender.h | 89 uint8_t opacity; member 315 …derData data, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… 316 …derData data, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… 333 virtual bool beginComposite(RenderCompositor* cmp, CompositeMethod method, uint8_t opacity) = 0;
|
D | tvgPaint.h | 81 uint8_t opacity; member 175 …derMethod* renderer, const Matrix& pm, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag…
|
D | tvgText.h | 113 …od* renderer, const Matrix& transform, Array<RenderData>& clips, uint8_t opacity, RenderUpdateFlag… in update() 135 return PP(shape)->update(renderer, transform, clips, opacity, pFlag, false); in update()
|
D | tvgSvgLoaderCommon.h | 474 int opacity; member 482 int opacity; member 498 int opacity; member
|
D | tvgLottieModel.cpp | 278 auto opacity = this->opacity(frameNo); in fill() local 279 if (opacity == 0) return nullptr; in fill() 317 if (opacity < 255) { in fill() 321 const_cast<Fill::ColorStop*>(&colorStops[i])->a = MULTIPLY(colorStops[i].a, opacity); in fill()
|
D | tvgCapi.cpp | 206 TVG_API Tvg_Result tvg_paint_set_opacity(Tvg_Paint* paint, uint8_t opacity) in tvg_paint_set_opacity() argument 209 return (Tvg_Result) reinterpret_cast<Paint*>(paint)->opacity(opacity); in tvg_paint_set_opacity() 213 TVG_API Tvg_Result tvg_paint_get_opacity(const Tvg_Paint* paint, uint8_t* opacity) in tvg_paint_get_opacity() argument 215 if (!paint || !opacity) return TVG_RESULT_INVALID_ARGUMENT; in tvg_paint_get_opacity() 216 *opacity = reinterpret_cast<const Paint*>(paint)->opacity(); in tvg_paint_get_opacity()
|
/lvgl-latest/ |
D | library.properties | 6 paragraph=Powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity…
|
/lvgl-latest/docs/details/main-components/ |
D | color.rst | 135 To describe opacity the :cpp:type:`lv_opa_t` type is created from ``uint8_t``. 138 - :cpp:enumerator:`LV_OPA_TRANSP` Value: 0, means no opacity making the color 144 opacity)
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_vg_paint.h | 126 void nema_vg_paint_set_opacity(NEMA_VG_PAINT_HANDLE paint, float opacity);
|
/lvgl-latest/docs/details/widgets/ |
D | canvas.rst | 68 Canvas to blue with 50% opacity. Note that if the current color format 70 ignored. Similarly, if opacity is not supported
|