Lines Matching refs:scanline

2790 static void stbtt__fill_active_edges(unsigned char *scanline, int len, stbtt__active_edge *e, int m…  in stbtt__fill_active_edges()  argument
2809scanline[i] = scanline[i] + (stbtt_uint8) ((x1 - x0) * max_weight >> STBTT_FIXSHIFT); in stbtt__fill_active_edges()
2812scanline[i] = scanline[i] + (stbtt_uint8) (((STBTT_FIX - (x0 & STBTT_FIXMASK)) * max_weight) >> ST… in stbtt__fill_active_edges()
2817scanline[j] = scanline[j] + (stbtt_uint8) (((x1 & STBTT_FIXMASK) * max_weight) >> STBTT_FIXSHIFT); in stbtt__fill_active_edges()
2822 scanline[i] = scanline[i] + (stbtt_uint8) max_weight; in stbtt__fill_active_edges()
2839 unsigned char scanline_data[512], *scanline; in stbtt__rasterize_sorted_edges() local
2842 scanline = (unsigned char *) STBTT_malloc(result->w, userdata); in stbtt__rasterize_sorted_edges()
2844 scanline = scanline_data; in stbtt__rasterize_sorted_edges()
2850 STBTT_memset(scanline, 0, result->w); in stbtt__rasterize_sorted_edges()
2918 stbtt__fill_active_edges(scanline, result->w, active, max_weight); in stbtt__rasterize_sorted_edges()
2922 STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); in stbtt__rasterize_sorted_edges()
2928 if (scanline != scanline_data) in stbtt__rasterize_sorted_edges()
2929 STBTT_free(scanline, userdata); in stbtt__rasterize_sorted_edges()
2936 static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, flo… in stbtt__handle_clipped_edge() argument
2964 scanline[x] += e->direction * (y1-y0); in stbtt__handle_clipped_edge()
2969scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position in stbtt__handle_clipped_edge()
2973 static void stbtt__fill_active_edges_new(float *scanline, float *scanline_fill, int len, stbtt__act… in stbtt__fill_active_edges_new() argument
2987 stbtt__handle_clipped_edge(scanline,(int) x0,e, x0,y_top, x0,y_bottom); in stbtt__fill_active_edges_new()
3029 scanline[x] += e->direction * (1-((x_top - x) + (x_bottom-x))/2) * height; in stbtt__fill_active_edges_new()
3058 scanline[x1] += area * (1-((x_top - x1)+(x1+1-x1))/2); in stbtt__fill_active_edges_new()
3062 scanline[x] += area + step/2; in stbtt__fill_active_edges_new()
3069 scanline[x2] += area + sign * (1-((x2-x2)+(x_bottom-x2))/2) * (sy1-y_crossing); in stbtt__fill_active_edges_new()
3107 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); in stbtt__fill_active_edges_new()
3108 stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x2,y2); in stbtt__fill_active_edges_new()
3109 stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); in stbtt__fill_active_edges_new()
3111 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); in stbtt__fill_active_edges_new()
3112 stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x1,y1); in stbtt__fill_active_edges_new()
3113 stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); in stbtt__fill_active_edges_new()
3115 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); in stbtt__fill_active_edges_new()
3116 stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); in stbtt__fill_active_edges_new()
3118 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x1,y1); in stbtt__fill_active_edges_new()
3119 stbtt__handle_clipped_edge(scanline,x,e, x1,y1, x3,y3); in stbtt__fill_active_edges_new()
3121 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); in stbtt__fill_active_edges_new()
3122 stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); in stbtt__fill_active_edges_new()
3124 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x2,y2); in stbtt__fill_active_edges_new()
3125 stbtt__handle_clipped_edge(scanline,x,e, x2,y2, x3,y3); in stbtt__fill_active_edges_new()
3127 stbtt__handle_clipped_edge(scanline,x,e, x0,y0, x3,y3); in stbtt__fill_active_edges_new()
3142 float scanline_data[129], *scanline, *scanline2; in stbtt__rasterize_sorted_edges() local
3147 scanline = (float *) STBTT_malloc((result->w*2+1) * sizeof(float), userdata); in stbtt__rasterize_sorted_edges()
3149 scanline = scanline_data; in stbtt__rasterize_sorted_edges()
3151 scanline2 = scanline + result->w; in stbtt__rasterize_sorted_edges()
3162 STBTT_memset(scanline , 0, result->w*sizeof(scanline[0])); in stbtt__rasterize_sorted_edges()
3163 STBTT_memset(scanline2, 0, (result->w+1)*sizeof(scanline[0])); in stbtt__rasterize_sorted_edges()
3201 stbtt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top); in stbtt__rasterize_sorted_edges()
3209 k = scanline[i] + sum; in stbtt__rasterize_sorted_edges()
3230 if (scanline != scanline_data) in stbtt__rasterize_sorted_edges()
3231 STBTT_free(scanline, userdata); in stbtt__rasterize_sorted_edges()