Home
last modified time | relevance | path

Searched refs:CompositeMethod (Results 1 – 18 of 18) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgRender.h88 CompositeMethod method;
333 virtual bool beginComposite(RenderCompositor* cmp, CompositeMethod method, uint8_t opacity) = 0;
340 static inline bool MASK_REGION_MERGING(CompositeMethod method) in MASK_REGION_MERGING()
343 case CompositeMethod::AlphaMask: in MASK_REGION_MERGING()
344 case CompositeMethod::InvAlphaMask: in MASK_REGION_MERGING()
345 case CompositeMethod::LumaMask: in MASK_REGION_MERGING()
346 case CompositeMethod::InvLumaMask: in MASK_REGION_MERGING()
347 case CompositeMethod::SubtractMask: in MASK_REGION_MERGING()
348 case CompositeMethod::IntersectMask: in MASK_REGION_MERGING()
351 case CompositeMethod::AddMask: in MASK_REGION_MERGING()
[all …]
DtvgPaint.h48 CompositeMethod method;
142 bool composite(Paint* source, Paint* target, CompositeMethod method) in composite()
145 …if ((!target && method != CompositeMethod::None) || (target && method == CompositeMethod::None)) r… in composite()
153 if (!target && method == CompositeMethod::None) { in composite()
159 if (!target && method == CompositeMethod::None) return true; in composite()
DtvgPaint.cpp159 if (ret) ret->composite(nullptr, CompositeMethod::None); in duplicate()
223 if (renderer->beginComposite(cmp, CompositeMethod::None, 255)) { in render()
267 …if ((method == CompositeMethod::AlphaMask && a == 255 && PP(shape)->opacity == 255) || (method == in update()
467 Result Paint::composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept in composite()
470 if (target && method == CompositeMethod::ClipPath) return clip(std::move(target)); in composite()
480 CompositeMethod Paint::composite(const Paint** target) const noexcept in composite()
489 return CompositeMethod::ClipPath; in composite()
492 return CompositeMethod::None; in composite()
DtvgLottieParser.cpp72 CompositeMethod LottieParser::getMaskMethod(bool inversed) in getMaskMethod()
75 if (!mode) return CompositeMethod::None; in getMaskMethod()
79 if (inversed) return CompositeMethod::InvAlphaMask; in getMaskMethod()
80 else return CompositeMethod::AddMask; in getMaskMethod()
82 case 's': return CompositeMethod::SubtractMask; in getMaskMethod()
83 case 'i': return CompositeMethod::IntersectMask; in getMaskMethod()
84 case 'f': return CompositeMethod::DifferenceMask; in getMaskMethod()
85 case 'l': return CompositeMethod::LightenMask; in getMaskMethod()
86 case 'd': return CompositeMethod::DarkenMask; in getMaskMethod()
87 default: return CompositeMethod::None; in getMaskMethod()
[all …]
DtvgScene.h97 … if (compMethod != CompositeMethod::None && compMethod != CompositeMethod::ClipPath) return true; in needComposition()
139 renderer->beginComposite(cmp, CompositeMethod::None, opacity); in render()
DtvgLottieParser.h50 CompositeMethod getMatteType();
54 CompositeMethod getMaskMethod(bool inversed);
DtvgPicture.cpp70 if (!target || method == tvg::CompositeMethod::ClipPath) return false; in needComposition()
87 renderer->beginComposite(cmp, CompositeMethod::None, 255); in render()
DtvgShape.h65 renderer->beginComposite(cmp, CompositeMethod::None, opacity); in render()
87 if (!target || method == CompositeMethod::ClipPath) return false; in needComposition()
95 … if (method == CompositeMethod::LumaMask || method == CompositeMethod::InvLumaMask) { in needComposition()
DtvgSwRenderer.h62 bool beginComposite(RenderCompositor* cmp, CompositeMethod method, uint8_t opacity) override;
DtvgLottieBuilder.cpp1157 …= (pMethod == CompositeMethod::SubtractMask || pMethod == CompositeMethod::InvAlphaMask) ? Composi… in updateMaskings()
1160 if (layer->masks.count == 1 && compMethod == CompositeMethod::AlphaMask && opacity == 255) { in updateMaskings()
1178 if (method == CompositeMethod::None) continue; in updateMaskings()
1181 …if (pMethod == method && (method == CompositeMethod::SubtractMask || method == CompositeMethod::Di… in updateMaskings()
1207 …} else if (layer->matteType == CompositeMethod::AlphaMask || layer->matteType == CompositeMethod::… in updateMatte()
1371 if (child->matteType != CompositeMethod::None) { in _buildComposition()
Dthorvg.h168 enum class CompositeMethod enum
379 Result composite(std::unique_ptr<Paint> target, CompositeMethod method) noexcept;
454 CompositeMethod composite(const Paint** target) const noexcept;
DtvgSwRaster.cpp160 …if (!surface->compositor || (int)surface->compositor->method <= (int)CompositeMethod::ClipPath) re… in _compositing()
167 if ((int)surface->compositor->method < (int)CompositeMethod::AddMask) return true; in _matting()
212 static inline bool _direct(CompositeMethod method) in _direct()
214 …if (method == CompositeMethod::SubtractMask || method == CompositeMethod::IntersectMask || method … in _direct()
219 static inline SwMask _getMaskOp(CompositeMethod method) in _getMaskOp()
222 case CompositeMethod::AddMask: return _opMaskAdd; in _getMaskOp()
223 case CompositeMethod::SubtractMask: return _opMaskSubtract; in _getMaskOp()
224 case CompositeMethod::DifferenceMask: return _opMaskDifference; in _getMaskOp()
225 case CompositeMethod::IntersectMask: return _opMaskIntersect; in _getMaskOp()
226 case CompositeMethod::LightenMask: return _opMaskLighten; in _getMaskOp()
[all …]
DtvgSwRenderer.cpp508 bool SwRenderer::beginComposite(RenderCompositor* cmp, CompositeMethod method, uint8_t opacity) in beginComposite()
517 if (p->method != CompositeMethod::None) { in beginComposite()
641 if (p->method == CompositeMethod::None) { in endComposite()
DtvgLottieModel.h115 CompositeMethod method;
794 CompositeMethod matteType = CompositeMethod::None;
DtvgCapi.cpp231 …rpret_cast<Paint*>(paint)->composite(unique_ptr<Paint>((Paint*)(target)), (CompositeMethod)method); in tvg_paint_set_composite_method()
238 …*reinterpret_cast<CompositeMethod*>(method) = reinterpret_cast<const Paint*>(paint)->composite(rei… in tvg_paint_get_composite_method()
DtvgSvgSceneBuilder.cpp305 paint->composite(std::move(comp), CompositeMethod::LumaMask); in _applyComposition()
307 paint->composite(std::move(comp), CompositeMethod::AlphaMask); in _applyComposition()
DtvgSwCommon.h258 SwAlpha alpha(CompositeMethod method) in alpha()
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_tvg.cpp668 TVG_CHECK_RETURN_VG_ERROR(picture->composite(std::move(shape), CompositeMethod::ClipPath)); in vg_lite_blit_rect()
1147 TVG_CHECK_RETURN_VG_ERROR(picture->composite(std::move(shape), CompositeMethod::ClipPath)); in vg_lite_draw_pattern()
2461 TVG_CHECK_RETURN_RESULT(shape->composite(std::move(cilp), CompositeMethod::ClipPath)); in shape_append_path()