| /lvgl-latest/src/libs/thorvg/ |
| D | tvgSwRaster.cpp | 150 static inline bool _blending(const SwSurface* surface) in _blending() argument 152 return (surface->blender) ? true : false; in _blending() 158 static inline bool _compositing(const SwSurface* surface) in _compositing() argument 160 …if (!surface->compositor || (int)surface->compositor->method <= (int)CompositeMethod::ClipPath) re… in _compositing() 165 static inline bool _matting(const SwSurface* surface) in _matting() argument 167 if ((int)surface->compositor->method < (int)CompositeMethod::AddMask) return true; in _matting() 233 static bool _compositeMaskImage(SwSurface* surface, const SwImage* image, const SwBBox& region) in _compositeMaskImage() argument 235 auto dbuffer = &surface->buf8[region.min.y * surface->stride + region.min.x]; in _compositeMaskImage() 244 dbuffer += surface->stride; in _compositeMaskImage() 330 static bool _rasterCompositeMaskedRect(SwSurface* surface, const SwBBox& region, SwMask maskOp, uin… in _rasterCompositeMaskedRect() argument [all …]
|
| D | tvgSwRasterC.h | 66 static bool inline cRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g… in cRasterTranslucentRle() argument 71 if (surface->channelSize == sizeof(uint32_t)) { in cRasterTranslucentRle() 72 auto color = surface->join(r, g, b, a); in cRasterTranslucentRle() 75 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in cRasterTranslucentRle() 84 } else if (surface->channelSize == sizeof(uint8_t)) { in cRasterTranslucentRle() 87 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in cRasterTranslucentRle() 100 static bool inline cRasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint… in cRasterTranslucentRect() argument 106 if (surface->channelSize == sizeof(uint32_t)) { in cRasterTranslucentRect() 107 auto color = surface->join(r, g, b, a); in cRasterTranslucentRect() 108 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in cRasterTranslucentRect() [all …]
|
| D | tvgRawLoader.cpp | 47 if (copy) free(surface.buf32); in ~RawLoader() 62 surface.buf32 = (uint32_t*)malloc(sizeof(uint32_t) * w * h); in open() 63 if (!surface.buf32) return false; in open() 64 memcpy((void*)surface.buf32, data, sizeof(uint32_t) * w * h); in open() 66 else surface.buf32 = const_cast<uint32_t*>(data); in open() 69 surface.stride = w; in open() 70 surface.w = w; in open() 71 surface.h = h; in open() 72 surface.cs = ColorSpace::ARGB8888; in open() 73 surface.channelSize = sizeof(uint32_t); in open() [all …]
|
| D | tvgSwRenderer.cpp | 45 SwSurface* surface = nullptr; member 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() 222 rasterConvertCS(source, surface->cs); 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() 282 if (a > 0) rasterShape(surface, &task->shape, r, g, b, a); in _renderFill() 286 static void _renderStroke(SwShapeTask* task, SwSurface* surface, uint8_t opacity) in _renderStroke() argument 290 rasterGradientStroke(surface, &task->shape, strokeFill, opacity); in _renderStroke() 294 if (a > 0) rasterStroke(surface, &task->shape, r, g, b, a); in _renderStroke() [all …]
|
| D | tvgSwRasterAvx.h | 105 static bool avxRasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g… in avxRasterTranslucentRect() argument 111 if (surface->channelSize == sizeof(uint32_t)) { in avxRasterTranslucentRect() 112 auto color = surface->join(r, g, b, a); in avxRasterTranslucentRect() 113 auto buffer = surface->buf32 + (region.min.y * surface->stride) + region.min.x; in avxRasterTranslucentRect() 121 auto dst = &buffer[y * surface->stride]; in avxRasterTranslucentRect() 149 } else if (surface->channelSize == sizeof(uint8_t)) { in avxRasterTranslucentRect() 150 TVGLOG("SW_ENGINE", "Require AVX Optimization, Channel Size = %d", surface->channelSize); in avxRasterTranslucentRect() 151 auto buffer = surface->buf8 + (region.min.y * surface->stride) + region.min.x; in avxRasterTranslucentRect() 154 auto dst = &buffer[y * surface->stride]; in avxRasterTranslucentRect() 164 static bool avxRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g, uin… in avxRasterTranslucentRle() argument [all …]
|
| D | tvgSwRasterNeon.h | 95 static bool neonRasterTranslucentRle(SwSurface* surface, const SwRle* rle, uint8_t r, uint8_t g, ui… in neonRasterTranslucentRle() argument 100 if (surface->channelSize == sizeof(uint32_t)) { in neonRasterTranslucentRle() 101 auto color = surface->join(r, g, b, a); in neonRasterTranslucentRle() 110 auto dst = &surface->buf32[span->y * surface->stride + span->x]; in neonRasterTranslucentRle() 135 } else if (surface->channelSize == sizeof(uint8_t)) { in neonRasterTranslucentRle() 136 TVGLOG("SW_ENGINE", "Require Neon Optimization, Channel Size = %d", surface->channelSize); in neonRasterTranslucentRle() 139 auto dst = &surface->buf8[span->y * surface->stride + span->x]; in neonRasterTranslucentRle() 152 static bool neonRasterTranslucentRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t … in neonRasterTranslucentRect() argument 158 if (surface->channelSize == sizeof(uint32_t)) { in neonRasterTranslucentRect() 159 auto color = surface->join(r, g, b, a); in neonRasterTranslucentRect() [all …]
|
| D | tvgSwRasterTexmap.h | 79 static bool _rasterMaskedPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBBox… 84 auto maskOp = _getMaskOp(surface->compositor->method); 85 auto direct = _direct(surface->compositor->method); 149 auto cmp = &surface->compositor->image.buf8[y * surface->compositor->image.stride + x1]; 150 auto dst = &surface->buf8[y * surface->stride + x1]; 275 static void _rasterBlendingPolygonImageSegment(SwSurface* surface, const SwImage* image, const SwBB… in _rasterBlendingPolygonImageSegment() argument 281 auto dbuf = surface->buf32; in _rasterBlendingPolygonImageSegment() 284 int32_t dw = surface->stride; in _rasterBlendingPolygonImageSegment() 379 *buf = surface->blender(px, *buf, IA(px)); in _rasterBlendingPolygonImageSegment() 423 *buf = surface->blender(src, *buf, IA(src)); in _rasterBlendingPolygonImageSegment() [all …]
|
| D | tvgPicture.h | 66 RenderSurface* surface = nullptr; //bitmap picture uses member 86 if (surface) { in ~Impl() 98 if (surface) { in update() 107 rd = renderer->prepare(surface, rd, m, clips, opacity, flag); in update() 130 if (paint || surface) return Result::InsufficientCondition; in load() 143 if (paint || surface) return Result::InsufficientCondition; in load() 151 if (paint || surface) return Result::InsufficientCondition; in load() 176 dup->surface = surface; in duplicate() 202 if (surface) return surface->buf32; in data()
|
| D | tvgCanvas.h | 146 auto surface = renderer->mainSurface(); in viewport() local 147 if (surface && surface->w > 0 && surface->h > 0) { in viewport() 148 val.intersect({0, 0, (int32_t)surface->w, (int32_t)surface->h}); in viewport()
|
| D | tvgLoadModule.h | 86 RenderSurface surface; member 95 if (surface.data) return &surface; in bitmap()
|
| D | tvgWgCanvas.cpp | 63 Result WgCanvas::target(void* instance, void* surface, uint32_t w, uint32_t h, void* device) noexce… in target() argument 70 if (!instance || !surface || (w == 0) || (h == 0)) return Result::InvalidArguments; in target() 76 …if (!renderer->target((WGPUInstance)instance, (WGPUSurface)surface, w, h, (WGPUDevice)device)) ret… in target()
|
| D | tvgSwCommon.h | 512 …rs(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity,… 513 …rs(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity,… 530 bool fillGenColorTable(SwFill* fill, const Fill* fdata, const Matrix& transform, SwSurface* surface… 566 bool rasterCompositor(SwSurface* surface); 567 bool rasterGradientShape(SwSurface* surface, SwShape* shape, const Fill* fdata, uint8_t opacity); 568 bool rasterShape(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a); 569 bool rasterImage(SwSurface* surface, SwImage* image, const Matrix& transform, const SwBBox& bbox, u… 570 bool rasterStroke(SwSurface* surface, SwShape* shape, uint8_t r, uint8_t g, uint8_t b, uint8_t a); 571 bool rasterGradientStroke(SwSurface* surface, SwShape* shape, const Fill* fdata, uint8_t opacity); 572 bool rasterClear(SwSurface* surface, uint32_t x, uint32_t y, uint32_t w, uint32_t h, pixel_t val = … [all …]
|
| D | tvgPicture.cpp | 52 if (!surface) { in load() 53 if ((surface = loader->bitmap())) { in load() 82 if (surface) return renderer->renderImage(rd); in render()
|
| D | tvgSwRenderer.h | 43 …RenderData prepare(RenderSurface* surface, RenderData data, const Matrix& transform, Array<RenderD… 75 SwSurface* surface = nullptr; //active surface
|
| D | tvgSwShape.cpp | 635 …rs(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity,… in shapeGenFillColors() argument 637 return fillGenColorTable(shape->fill, fill, transform, surface, opacity, ctable); in shapeGenFillColors() 641 …rs(SwShape* shape, const Fill* fill, const Matrix& transform, SwSurface* surface, uint8_t opacity,… in shapeGenStrokeFillColors() argument 643 return fillGenColorTable(shape->stroke->fill, fill, transform, surface, opacity, ctable); in shapeGenStrokeFillColors()
|
| D | tvgSwFill.cpp | 129 static bool _updateColorTable(SwFill* fill, const Fill* fdata, const SwSurface* surface, uint8_t op… in _updateColorTable() argument 150 auto rgba = surface->join(r, g, b, a); in _updateColorTable() 181 auto rgba2 = surface->join(next->r, next->g, next->b, a2); in _updateColorTable() 828 bool fillGenColorTable(SwFill* fill, const Fill* fdata, const Matrix& transform, SwSurface* surface… in fillGenColorTable() argument 840 if (ctable) return _updateColorTable(fill, fdata, surface, opacity); in fillGenColorTable()
|
| D | tvgRender.h | 316 …virtual RenderData prepare(RenderSurface* surface, RenderData data, const Matrix& transform, Array…
|
| D | thorvg.h | 1802 …Result target(void* instance, void* surface, uint32_t w, uint32_t h, void* device = nullptr) noexc…
|
| /lvgl-latest/src/drivers/wayland/ |
| D | lv_wayland.c | 141 struct wl_surface * surface; member 350 uint32_t serial, struct wl_surface * surface, in pointer_handle_enter() argument 358 if(!surface) { in pointer_handle_enter() 363 app->pointer_obj = wl_surface_get_user_data(surface); in pointer_handle_enter() 448 uint32_t serial, struct wl_surface * surface) in pointer_handle_leave() argument 455 if(!surface || (app->pointer_obj == wl_surface_get_user_data(surface))) { in pointer_handle_leave() 793 uint32_t serial, struct wl_surface * surface, in keyboard_handle_enter() argument 802 if(!surface) { in keyboard_handle_enter() 806 app->keyboard_obj = wl_surface_get_user_data(surface); in keyboard_handle_enter() 811 uint32_t serial, struct wl_surface * surface) in keyboard_handle_leave() argument [all …]
|