Lines Matching refs:w
43 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h);
48 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h);
64 static uint32_t compute_key(const lv_grad_dsc_t * g, lv_coord_t size, lv_coord_t w) in compute_key() argument
68 …return (v.value ^ size ^ (w >> 1)); /*Yes, this is correct, it's like a hash that changes if the w… in compute_key()
77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size()
157 static lv_grad_t * allocate_item(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h) in allocate_item() argument
159 lv_coord_t size = g->dir == LV_GRAD_DIR_HOR ? w : h; in allocate_item()
160 lv_coord_t map_size = LV_MAX(w, h); /* The map is being used horizontally (width) unless in allocate_item()
167 req_size += ALIGN(w * sizeof(lv_scolor24_t)); in allocate_item()
198 item->key = compute_key(g, size, w); in allocate_item()
211 item->w = w; in allocate_item()
222 item->w = w; in allocate_item()
249 lv_grad_t * lv_gradient_get(const lv_grad_dsc_t * g, lv_coord_t w, lv_coord_t h) in lv_gradient_get() argument
262 lv_coord_t size = g->dir == LV_GRAD_DIR_HOR ? w : h; in lv_gradient_get()
263 uint32_t key = compute_key(g, size, w); in lv_gradient_get()
271 item = allocate_item(g, w, h); in lv_gradient_get()
283 lv_memset_00(item->error_acc, w * sizeof(lv_scolor24_t)); in lv_gradient_get()