Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 14 of 14) sorted by relevance

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_img.c37 const SDL_Texture * texture; member
67 static void draw_img_simple(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_h…
70 static void draw_img_rounded(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_…
74 static SDL_Texture * img_rounded_frag_obtain(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture,
78 static lv_draw_img_rounded_key_t rounded_key_create(const SDL_Texture * texture, lv_coord_t w, lv_c…
81 static void calc_draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv…
91 static void apply_recolor_opa(SDL_Texture * texture, const lv_draw_img_dsc_t * draw_dsc);
107 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &texture_f… in lv_draw_sdl_img_core() local
111 lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header, in lv_draw_sdl_img_core()
118 if(!texture || !header) { in lv_draw_sdl_img_core()
[all …]
Dlv_draw_sdl_texture_cache.c27 SDL_Texture * texture; member
81 return value->texture; in lv_draw_sdl_texture_cache_get_with_userdata()
84 …ture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SDL_Texture * texture) in lv_draw_sdl_texture_cache_put() argument
86 return lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put()
90 … SDL_Texture * texture, void * userdata, void userdata_free(void *), in lv_draw_sdl_texture_cache_put_advanced() argument
95 value->texture = texture; in lv_draw_sdl_texture_cache_put_advanced()
99 if(!texture) { in lv_draw_sdl_texture_cache_put_advanced()
104 LV_LOG_INFO("cache texture %p", texture); in lv_draw_sdl_texture_cache_put_advanced()
109 if(SDL_QueryTexture(texture, &format, &access, &width, &height) != 0) { in lv_draw_sdl_texture_cache_put_advanced()
112 LV_LOG_INFO("cache texture %p, %d*%d@%dbpp", texture, width, height, SDL_BITSPERPIXEL(format)); in lv_draw_sdl_texture_cache_put_advanced()
[all …]
Dlv_draw_sdl_polygon.c38 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords);
81 …SDL_Texture * texture = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID… in lv_draw_sdl_polygon() local
83 SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); in lv_draw_sdl_polygon()
84 dump_masks(texture, &draw_area); in lv_draw_sdl_polygon()
93 SDL_SetTextureColorMod(texture, color.r, color.g, color.b); in lv_draw_sdl_polygon()
94 SDL_SetTextureAlphaMod(texture, draw_dsc->bg_opa); in lv_draw_sdl_polygon()
95 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_polygon()
98 SDL_DestroyTexture(texture); in lv_draw_sdl_polygon()
106 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords) in dump_masks() argument
113 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
[all …]
Dlv_draw_sdl_label.c118 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &glyph_key, sizeof(glyph_key), &glyph_f… in lv_draw_sdl_draw_letter() local
128 texture = SDL_CreateTextureFromSurface(renderer, mask); in lv_draw_sdl_draw_letter()
131 in_cache = lv_draw_sdl_texture_cache_put(ctx, &glyph_key, sizeof(glyph_key), texture); in lv_draw_sdl_draw_letter()
136 if(!texture) { in lv_draw_sdl_draw_letter()
150 SDL_DestroyTexture(texture); in lv_draw_sdl_draw_letter()
160 SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); in lv_draw_sdl_draw_letter()
161 SDL_SetTextureAlphaMod(texture, opa); in lv_draw_sdl_draw_letter()
162 SDL_SetTextureColorMod(texture, color.ch.red, color.ch.green, color.ch.blue); in lv_draw_sdl_draw_letter()
163 SDL_RenderCopy(renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_letter()
169 SDL_DestroyTexture(texture); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_line.c68 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(sdl_ctx, &key, sizeof(key), NULL); in lv_draw_sdl_draw_line() local
69 if(!texture) { in lv_draw_sdl_draw_line()
70 texture = line_texture_create(sdl_ctx, dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line()
71 *in_cache = lv_draw_sdl_texture_cache_put(sdl_ctx, &key, sizeof(key), texture); in lv_draw_sdl_draw_line()
89 SDL_SetTextureColorMod(texture, color.r, color.g, color.b); in lv_draw_sdl_draw_line()
90 SDL_SetTextureAlphaMod(texture, dsc->opa); in lv_draw_sdl_draw_line()
100 SDL_RenderCopyEx(renderer, texture, &srcrect, &dstrect, angle, &center, 0); in lv_draw_sdl_draw_line()
123 …SDL_Texture * texture = SDL_CreateTexture(sdl_ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTU… in line_texture_create() local
126 SDL_SetRenderTarget(sdl_ctx->renderer, texture); in line_texture_create()
127 SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); in line_texture_create()
[all …]
Dlv_draw_sdl_rect.c181 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_bg_frag_obtain() local
182 if(texture == NULL) { in lv_draw_sdl_rect_bg_frag_obtain()
188 texture = lv_draw_sdl_mask_dump_texture(ctx->renderer, &coords_frag, &mask_id, 1); in lv_draw_sdl_rect_bg_frag_obtain()
189 SDL_assert(texture != NULL); in lv_draw_sdl_rect_bg_frag_obtain()
191 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain()
196 return texture; in lv_draw_sdl_rect_bg_frag_obtain()
203 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_frag_obtain() local
204 if(texture == NULL) { in lv_draw_sdl_rect_grad_frag_obtain()
206texture = SDL_CreateTexture(ctx->renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTUREACCESS_TARGET, in lv_draw_sdl_rect_grad_frag_obtain()
208 SDL_assert(texture != NULL); in lv_draw_sdl_rect_grad_frag_obtain()
[all …]
Dlv_draw_sdl_arc.c38 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords, const int16_t * ids, int16_…
107 …SDL_Texture * texture = lv_draw_sdl_composite_texture_obtain(ctx, LV_DRAW_SDL_COMPOSITE_TEXTURE_ID… in lv_draw_sdl_draw_arc() local
109 SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); in lv_draw_sdl_draw_arc()
110 …dump_masks(texture, &draw_area, mask_ids, mask_ids_count, cap_ids[0] != LV_MASK_ID_INV ? cap_ids :… in lv_draw_sdl_draw_arc()
136 SDL_SetTextureColorMod(texture, color.r, color.g, color.b); in lv_draw_sdl_draw_arc()
137 SDL_SetTextureAlphaMod(texture, dsc->opa); in lv_draw_sdl_draw_arc()
138 SDL_RenderCopy(ctx->renderer, texture, &srcrect, &dstrect); in lv_draw_sdl_draw_arc()
142 SDL_DestroyTexture(texture); in lv_draw_sdl_draw_arc()
150 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords, const int16_t * ids, int16_… in dump_masks() argument
158 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
[all …]
Dlv_draw_sdl_texture_cache.h39 SDL_Texture * texture; member
88 …ure_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SDL_Texture * texture);
94 … SDL_Texture * texture, void * userdata, void userdata_free(void *),
Dlv_draw_sdl.c93 …SDL_Texture * texture = SDL_CreateTexture(renderer, LV_DRAW_SDL_TEXTURE_FORMAT, SDL_TEXTUREACCESS_… in lv_draw_sdl_create_screen_texture() local
94 SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); in lv_draw_sdl_create_screen_texture()
95 return texture; in lv_draw_sdl_create_screen_texture()
Dlv_draw_sdl_mask.c75 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, surface); in lv_draw_sdl_mask_dump_texture() local
77 return texture; in lv_draw_sdl_mask_dump_texture()
Dlv_draw_sdl_img.h73 const void * src, int32_t frame_id, SDL_Texture ** texture,
Dlv_draw_sdl_composite.c41 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords);
246 static void dump_masks(SDL_Texture * texture, const lv_area_t * coords) in dump_masks() argument
253 if(SDL_LockTexture(texture, &rect, (void **) &pixels, &pitch) != 0) return; in dump_masks()
276 SDL_UnlockTexture(texture); in dump_masks()
Dlv_draw_sdl_utils.c134 SDL_Texture * texture = SDL_CreateTextureFromSurface(renderer, indexed); in lv_sdl_create_opa_texture() local
136 return texture; in lv_sdl_create_opa_texture()
/lvgl-3.7.0/docs/
DCHANGELOG.md130 - fix(sdl): destroy texture after use if not stored in cache [`4173`](https://github.com/lvgl/lvgl/…
294 - fix(sdl): clear streaming/target texture with FillRect [`3682`](https://github.com/lvgl/lvgl/pull…