Lines Matching refs:sw
41 static void /* LV_ATTRIBUTE_FAST_MEM */ shadow_blur_corner(lv_coord_t size, lv_coord_t sw, uint16_t…
946 lv_coord_t sw, lv_coord_t r) in shadow_draw_corner_buf() argument
948 int32_t sw_ori = sw; in shadow_draw_corner_buf()
953 sh_area.x2 = sw / 2 + r - 1 - ((sw & 1) ? 0 : 1); in shadow_draw_corner_buf()
954 sh_area.y1 = sw / 2 + 1; in shadow_draw_corner_buf()
964 if(sw_ori == 1) sw = 1; in shadow_draw_corner_buf()
965 else sw = sw_ori >> 1; in shadow_draw_corner_buf()
979 sh_ups_tmp_buf[0] = (mask_line[0] << SHADOW_UPSCALE_SHIFT) / sw; in shadow_draw_corner_buf()
982 else sh_ups_tmp_buf[i] = (mask_line[i] << SHADOW_UPSCALE_SHIFT) / sw; in shadow_draw_corner_buf()
992 if(sw == 1) { in shadow_draw_corner_buf()
1001 shadow_blur_corner(size, sw, sh_buf); in shadow_draw_corner_buf()
1011 sw += sw_ori & 1; in shadow_draw_corner_buf()
1012 if(sw > 1) { in shadow_draw_corner_buf()
1014 uint32_t max_v_div = (LV_OPA_COVER << SHADOW_UPSCALE_SHIFT) / sw; 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()
1032 static void LV_ATTRIBUTE_FAST_MEM shadow_blur_corner(lv_coord_t size, lv_coord_t sw, uint16_t * sh_… in shadow_blur_corner() argument
1034 int32_t s_left = sw >> 1; in shadow_blur_corner()
1035 int32_t s_right = (sw >> 1); in shadow_blur_corner()
1036 if((sw & 1) == 0) s_left--; in shadow_blur_corner()
1047 int32_t v = sh_ups_tmp_buf[size - 1] * sw; in shadow_blur_corner()
1069 uint32_t max_v_div = max_v / sw; in shadow_blur_corner()
1073 else sh_ups_buf[i] = sh_ups_buf[i] / sw; in shadow_blur_corner()
1078 int32_t v = sh_ups_tmp_buf[0] * sw; in shadow_blur_corner()