Lines Matching refs:sh_buf
39 …oid /* LV_ATTRIBUTE_FAST_MEM */ shadow_draw_corner_buf(const lv_area_t * coords, uint16_t * sh_buf,
479 lv_opa_t * sh_buf; in draw_shadow() local
484 sh_buf = lv_mem_buf_get(corner_size * corner_size); in draw_shadow()
485 lv_memcpy(sh_buf, sh_cache, corner_size * corner_size); in draw_shadow()
489 sh_buf = lv_mem_buf_get(corner_size * corner_size * sizeof(uint16_t)); in draw_shadow()
490 shadow_draw_corner_buf(&core_area, (uint16_t *)sh_buf, dsc->shadow_width, r_sh); in draw_shadow()
494 lv_memcpy(sh_cache, sh_buf, corner_size * corner_size); in draw_shadow()
500 sh_buf = lv_mem_buf_get(corner_size * corner_size * sizeof(uint16_t)); in draw_shadow()
501 shadow_draw_corner_buf(&core_area, (uint16_t *)sh_buf, dsc->shadow_width, r_sh); in draw_shadow()
550 sh_buf_tmp = sh_buf; in draw_shadow()
593 sh_buf_tmp = sh_buf; in draw_shadow()
633 sh_buf_tmp = sh_buf; in draw_shadow()
680 sh_buf_tmp = sh_buf; in draw_shadow()
735 sh_buf_tmp = sh_buf; in draw_shadow()
763 sh_buf_tmp = sh_buf ; in draw_shadow()
792 sh_buf_tmp = sh_buf; in draw_shadow()
831 sh_buf_tmp = sh_buf; in draw_shadow()
876 sh_buf_tmp = sh_buf; in draw_shadow()
934 lv_mem_buf_release(sh_buf); in draw_shadow()
945 …atic void LV_ATTRIBUTE_FAST_MEM shadow_draw_corner_buf(const lv_area_t * coords, uint16_t * sh_buf, in shadow_draw_corner_buf() argument
970 uint16_t * sh_ups_tmp_buf = (uint16_t *)sh_buf; in shadow_draw_corner_buf()
994 lv_opa_t * res_buf = (lv_opa_t *)sh_buf; in shadow_draw_corner_buf()
996 res_buf[i] = (sh_buf[i] >> SHADOW_UPSCALE_SHIFT); in shadow_draw_corner_buf()
1001 shadow_blur_corner(size, sw, sh_buf); in shadow_draw_corner_buf()
1006 lv_opa_t * res_buf = (lv_opa_t *)sh_buf; in shadow_draw_corner_buf()
1008 res_buf[x] = sh_buf[x]; in shadow_draw_corner_buf()
1016 if(sh_buf[i] == 0) continue; in shadow_draw_corner_buf()
1017 else if(sh_buf[i] == LV_OPA_COVER) sh_buf[i] = max_v_div; in shadow_draw_corner_buf()
1018 else sh_buf[i] = (sh_buf[i] << SHADOW_UPSCALE_SHIFT) / sw; in shadow_draw_corner_buf()
1021 shadow_blur_corner(size, sw, sh_buf); in shadow_draw_corner_buf()
1024 lv_opa_t * res_buf = (lv_opa_t *)sh_buf; in shadow_draw_corner_buf()
1026 res_buf[x] = sh_buf[x]; in shadow_draw_corner_buf()