Lines Matching refs:header
67 …img_simple(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_header_t * header,
70 …mg_rounded(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_header_t * header,
75 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius,
81 static void calc_draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv…
106 lv_draw_sdl_img_header_t * header = NULL; in lv_draw_sdl_img_core() local
108 (void **) &header); in lv_draw_sdl_img_core()
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()
148 draw_img_rounded(ctx, texture, header, draw_dsc, &t_coords, &t_clip, radius); in lv_draw_sdl_img_core()
151 draw_img_simple(ctx, texture, header, draw_dsc, &t_coords, &t_clip); in lv_draw_sdl_img_core()
158 if(!header->managed) { in lv_draw_sdl_img_core()
161 lv_mem_free(header); in lv_draw_sdl_img_core()
167 static void calc_draw_part(SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, const lv… in calc_draw_part() argument
171 if(SDL_RectEmpty(&header->rect)) { in calc_draw_part()
179 x = header->rect.x; in calc_draw_part()
180 y = header->rect.y; in calc_draw_part()
181 w = header->rect.w; in calc_draw_part()
182 h = header->rect.h; in calc_draw_part()
201 lv_draw_sdl_img_header_t ** header, bool * texture_in_cache) in lv_draw_sdl_img_load_texture() argument
226 *header = lv_mem_alloc(sizeof(lv_draw_sdl_img_header_t)); in lv_draw_sdl_img_load_texture()
227 SDL_memcpy(&(*header)->base, &cdsc->dec_dsc.header, sizeof(lv_img_header_t)); in lv_draw_sdl_img_load_texture()
228 (*header)->rect = rect; in lv_draw_sdl_img_load_texture()
229 (*header)->managed = (tex_flags & LV_DRAW_SDL_CACHE_FLAG_MANAGED) != 0; in lv_draw_sdl_img_load_texture()
230 …_in_cache = lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_size, *texture, *header, SDL_free, in lv_draw_sdl_img_load_texture()
249 bool chroma_keyed = dsc->header.cf == (uint32_t) LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED; in upload_img_texture()
250 int h = (int) dsc->header.h; in upload_img_texture()
251 int w = (int) dsc->header.w; in upload_img_texture()
270 lv_coord_t h = (lv_coord_t) dsc->header.h; in upload_img_texture_fallback()
271 lv_coord_t w = (lv_coord_t) dsc->header.w; in upload_img_texture_fallback()
310 …img_simple(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, in draw_img_simple() argument
324 calc_draw_part(texture, header, coords, clip, &src_rect, &dst_rect); in draw_img_simple()
331 …mg_rounded(lv_draw_sdl_ctx_t * ctx, SDL_Texture * texture, const lv_draw_sdl_img_header_t * header, in draw_img_rounded() argument
338 …SDL_Texture * frag = img_rounded_frag_obtain(ctx, texture, header, w, h, real_radius, &frag_in_cac… in draw_img_rounded()
347 calc_draw_part(texture, header, coords, NULL, &src_rect, &dst_rect); in draw_img_rounded()
400 … const lv_draw_sdl_img_header_t * header, int w, int h, lv_coord_t radius, in img_rounded_frag_obtain() argument
463 calc_draw_part(texture, header, &coords, NULL, &srcrect, &dstrect); in img_rounded_frag_obtain()