Home
last modified time | relevance | path

Searched refs:cover (Results 1 – 25 of 64) sorted by relevance

123

/haiku/src/servers/app/drawing/Painter/
H A Dagg_rasterizer_scanline_aa_subpix.h90 unsigned apply_gamma(unsigned cover) const in apply_gamma() argument
92 return m_gamma[cover]; in apply_gamma()
139 int cover = area >> (poly_subpixel_shift*2 + 1 - aa_shift); in calculate_alpha() local
141 if(cover < 0) cover = -cover; in calculate_alpha()
144 cover &= aa_mask2; in calculate_alpha()
145 if(cover > aa_scale) in calculate_alpha()
147 cover = aa_scale2 - cover; in calculate_alpha()
150 if(cover > aa_mask) cover = aa_mask; in calculate_alpha()
151 return m_gamma[cover]; in calculate_alpha()
163 int cover = 0; in sweep_scanline() local
[all …]
H A Dagg_renderer_region.h224 void blend_pixel(int x, int y, const color_type& c, cover_type cover) in blend_pixel() argument
233 m_ren.ren().blend_pixel(x, y, c, cover); in blend_pixel()
287 const color_type& c, cover_type cover) in blend_hline() argument
295 m_ren.blend_hline(x1, y, x2, c, cover); in blend_hline()
302 const color_type& c, cover_type cover) in blend_vline() argument
310 m_ren.blend_vline(x, y1, y2, c, cover); in blend_vline()
331 const color_type& c, cover_type cover) in blend_bar() argument
339 m_ren.blend_bar(x1, y1, x2, y2, c, cover); in blend_bar()
391 cover_type cover = cover_full)
398 m_ren.blend_color_hspan(x, y, len, colors, covers, cover);
[all …]
/haiku/headers/libs/agg/
H A Dagg_pixfmt_rgba.h145 unsigned cover=0)
175 unsigned cover) in blend_pix()
178 cover = (cover + 1) << (base_shift - 8); in blend_pix()
179 p[Order::R] = (value_type)((p[Order::R] * alpha + cr * cover) >> base_shift); in blend_pix()
180 p[Order::G] = (value_type)((p[Order::G] * alpha + cg * cover) >> base_shift); in blend_pix()
181 p[Order::B] = (value_type)((p[Order::B] * alpha + cb * cover) >> base_shift); in blend_pix()
211 unsigned cover=0)
250 unsigned cover) in blend_pix()
252 if(cover < 255) in blend_pix()
254 cover = 255 - cover; in blend_pix()
[all …]
H A Dagg_rasterizer_scanline_aa.h49 int cover; member
56 cover = 0; in initial()
170 unsigned apply_gamma(unsigned cover) const in apply_gamma() argument
172 return m_gamma[cover]; in apply_gamma()
216 int cover = area >> (poly_subpixel_shift*2 + 1 - aa_shift); in calculate_alpha() local
218 if(cover < 0) cover = -cover; in calculate_alpha()
221 cover &= aa_mask2; in calculate_alpha()
222 if(cover > aa_scale) in calculate_alpha()
224 cover = aa_scale2 - cover; in calculate_alpha()
227 if(cover > aa_mask) cover = aa_mask; in calculate_alpha()
[all …]
H A Dagg_scanline_boolean_algebra.h158 unsigned cover; in operator() local
178 cover = *covers1++ * *covers2++; in operator()
180 (cover == cover_full * cover_full) ? in operator()
182 (cover >> cover_shift)); in operator()
198 cover = *(span1->covers) * *covers2++; in operator()
200 (cover == cover_full * cover_full) ? in operator()
202 (cover >> cover_shift)); in operator()
219 cover = *covers1++ * *(span2->covers); in operator()
221 (cover == cover_full * cover_full) ? in operator()
223 (cover >> cover_shift)); in operator()
[all …]
H A Dagg_pixfmt_transposer.h57 int8u cover) in blend_pixel() argument
59 m_pixf->blend_pixel(y, x, c, cover); in blend_pixel()
82 int8u cover) in blend_hline() argument
84 m_pixf->blend_vline(y, x, len, c, cover); in blend_hline()
91 int8u cover) in blend_vline() argument
93 m_pixf->blend_hline(y, x, len, c, cover); in blend_vline()
135 int8u cover) in blend_color_hspan() argument
137 m_pixf->blend_color_vspan(y, x, len, colors, covers, cover); in blend_color_hspan()
145 int8u cover) in blend_color_vspan() argument
147 m_pixf->blend_color_hspan(y, x, len, colors, covers, cover); in blend_color_vspan()
H A Dagg_rasterizer_compound_aa.h46 int cover; member
54 cover = 0; in initial()
85 int x, area, cover; member
182 int cover = area >> (poly_subpixel_shift*2 + 1 - aa_shift); in calculate_alpha() local
183 if(cover < 0) cover = -cover; in calculate_alpha()
186 cover &= aa_mask2; in calculate_alpha()
187 if(cover > aa_scale) in calculate_alpha()
189 cover = aa_scale2 - cover; in calculate_alpha()
192 if(cover > aa_mask) cover = aa_mask; in calculate_alpha()
193 return (cover * master_alpha + aa_mask) >> aa_shift; in calculate_alpha()
[all …]
H A Dagg_renderer_mclip.h142 void blend_pixel(int x, int y, const color_type& c, cover_type cover) in blend_pixel() argument
149 m_ren.ren().blend_pixel(x, y, c, cover); in blend_pixel()
195 const color_type& c, cover_type cover) in blend_hline() argument
200 m_ren.blend_hline(x1, y, x2, c, cover); in blend_hline()
207 const color_type& c, cover_type cover) in blend_vline() argument
212 m_ren.blend_vline(x, y1, y2, c, cover); in blend_vline()
230 const color_type& c, cover_type cover) in blend_bar() argument
235 m_ren.blend_bar(x1, y1, x2, y2, c, cover); in blend_bar()
280 cover_type cover = cover_full)
285 m_ren.blend_color_hspan(x, y, len, colors, covers, cover);
[all …]
H A Dagg_pixfmt_rgb_packed.h84 unsigned cover) in blend_pix()
92 ((((r * alpha + cr * cover) >> 1) & 0x7C00) | in blend_pix()
93 (((g * alpha + cg * cover) >> 6) & 0x03E0) | in blend_pix()
94 ((b * alpha + cb * cover) >> 11) | 0x8000); in blend_pix()
214 unsigned cover) in blend_pix()
222 ((((r * alpha + cr * cover) ) & 0xF800) | in blend_pix()
223 (((g * alpha + cg * cover) >> 5 ) & 0x07E0) | in blend_pix()
224 ((b * alpha + cb * cover) >> 11)); in blend_pix()
339 unsigned cover) in blend_pix()
342 cover = (cover + 1) << (color_type::base_shift - 8); in blend_pix()
[all …]
H A Dagg_pixfmt_gray.h44 unsigned alpha, unsigned cover=0)
60 unsigned alpha, unsigned cover) in blend_pix()
63 cover = (cover + 1) << (base_shift - 8); in blend_pix()
64 *p = (value_type)((*p * alpha + cv * cover) >> base_shift); in blend_pix()
140 unsigned cover) in copy_or_blend_pix() argument
144 calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8; in copy_or_blend_pix()
151 Blender::blend_pix(p, c.v, alpha, cover); in copy_or_blend_pix()
238 AGG_INLINE void blend_pixel(int x, int y, const color_type& c, int8u cover) in blend_pixel() argument
243 cover); in blend_pixel()
284 int8u cover) in blend_hline() argument
[all …]
H A Dagg_scanline_p.h85 void add_cell(int x, unsigned cover) in add_cell() argument
87 *m_cover_ptr = (cover_type)cover; in add_cell()
123 void add_span(int x, unsigned len, unsigned cover) in add_span() argument
127 cover == *m_cur_span->covers) in add_span()
133 *m_cover_ptr = (cover_type)cover; in add_span()
244 void add_cell(int x, unsigned cover) in add_cell() argument
246 *m_cover_ptr = cover_type(cover); in add_cell()
276 void add_span(int x, unsigned len, unsigned cover) in add_span() argument
281 cover == *m_spans.last().covers) in add_span()
287 *m_cover_ptr = cover_type(cover); in add_span()
H A Dagg_pixfmt_rgb.h89 unsigned cover=0)
111 unsigned cover) in blend_pix()
114 cover = (cover + 1) << (base_shift - 8); in blend_pix()
115 p[Order::R] = (value_type)((p[Order::R] * alpha + cr * cover) >> base_shift); in blend_pix()
116 p[Order::G] = (value_type)((p[Order::G] * alpha + cg * cover) >> base_shift); in blend_pix()
117 p[Order::B] = (value_type)((p[Order::B] * alpha + cb * cover) >> base_shift); in blend_pix()
154 unsigned cover=0)
194 unsigned cover) in copy_or_blend_pix() argument
198 calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8; in copy_or_blend_pix()
207 m_blender.blend_pix(p, c.r, c.g, c.b, alpha, cover); in copy_or_blend_pix()
[all …]
/haiku/src/servers/app/drawing/Painter/drawing_modes/
H A DDrawingModeInvert.h36 blend_pixel_invert(int x, int y, const color_type& c, uint8 cover, in blend_pixel_invert() argument
41 if (cover == 255) { in blend_pixel_invert()
44 BLEND_INVERT(p, cover); in blend_pixel_invert()
52 const color_type& c, uint8 cover, in blend_hline_invert() argument
56 if(cover == 255) { in blend_hline_invert()
67 BLEND_INVERT(p, cover); in blend_hline_invert()
128 const uint8* covers, uint8 cover, in blend_color_hspan_invert() argument
150 if (cover == 255) { in blend_color_hspan_invert()
159 } else if (cover) { in blend_color_hspan_invert()
162 BLEND_INVERT(p, cover); in blend_color_hspan_invert()
H A DPixelFormat.h71 uint8 cover,
76 const color_type& c, uint8 cover,
89 uint8 cover,
127 uint8 cover);
133 uint8 cover);
138 uint8 cover);
159 uint8 cover);
165 uint8 cover);
232 PixelFormat::blend_pixel(int x, int y, const color_type& c, uint8 cover) in blend_pixel() argument
234 fBlendPixel(x, y, c, cover, fBuffer, fPatternHandler); in blend_pixel()
[all …]
H A DDrawingModeCopySolid.h16 blend_pixel_copy_solid(int x, int y, const color_type& c, uint8 cover, in blend_pixel_copy_solid() argument
20 if (cover == 255) { in blend_pixel_copy_solid()
23 BLEND_OVER(p, c.r, c.g, c.b, cover); in blend_pixel_copy_solid()
30 const color_type& c, uint8 cover, in blend_hline_copy_solid() argument
33 if (cover == 255) { in blend_hline_copy_solid()
49 BLEND_OVER(p, c.r, c.g, c.b, cover); in blend_hline_copy_solid()
107 uint8 cover, in blend_color_hspan_copy_solid() argument
128 if (cover == 255) { in blend_color_hspan_copy_solid()
135 } else if (cover) { in blend_color_hspan_copy_solid()
137 BLEND_OVER(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_copy_solid()
H A DDrawingModeMin.h37 blend_pixel_min(int x, int y, const color_type& c, uint8 cover, in blend_pixel_min() argument
42 if (cover == 255) { in blend_pixel_min()
45 BLEND_MIN(p, color.red, color.green, color.blue, cover); in blend_pixel_min()
52 const color_type& c, uint8 cover, in blend_hline_min() argument
56 if (cover == 255) { in blend_hline_min()
69 BLEND_MIN(p, color.red, color.green, color.blue, cover); in blend_hline_min()
128 const uint8* covers, uint8 cover, in blend_color_hspan_min() argument
148 if (cover == 255) { in blend_color_hspan_min()
157 } else if (cover) { in blend_color_hspan_min()
160 BLEND_MIN(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_min()
H A DDrawingModeErase.h31 blend_pixel_erase(int x, int y, const color_type& c, uint8 cover, in blend_pixel_erase() argument
37 if (cover == 255) { in blend_pixel_erase()
40 BLEND_ERASE(p, color.red, color.green, color.blue, cover); in blend_pixel_erase()
48 const color_type& c, uint8 cover, in blend_hline_erase() argument
51 if (cover == 255) { in blend_hline_erase()
71 BLEND_ERASE(p, color.red, color.green, color.blue, cover); in blend_hline_erase()
134 const uint8* covers, uint8 cover, in blend_color_hspan_erase() argument
157 if (cover == 255) { in blend_color_hspan_erase()
167 } else if (cover) { in blend_color_hspan_erase()
171 cover); in blend_color_hspan_erase()
H A DDrawingModeMax.h43 blend_pixel_max(int x, int y, const color_type& c, uint8 cover, in blend_pixel_max() argument
48 if (cover == 255) { in blend_pixel_max()
51 BLEND_MAX(p, color.red, color.green, color.blue, cover); in blend_pixel_max()
58 const color_type& c, uint8 cover, in blend_hline_max() argument
62 if (cover == 255) { in blend_hline_max()
75 BLEND_MAX(p, color.red, color.green, color.blue, cover); in blend_hline_max()
134 const uint8* covers, uint8 cover, in blend_color_hspan_max() argument
154 if (cover == 255) { in blend_color_hspan_max()
163 } else if (cover) { in blend_color_hspan_max()
166 BLEND_MAX(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_max()
H A DDrawingModeAdd.h40 blend_pixel_add(int x, int y, const color_type& c, uint8 cover, in blend_pixel_add() argument
45 if (cover == 255) { in blend_pixel_add()
48 BLEND_ADD(p, color.red, color.green, color.blue, cover); in blend_pixel_add()
55 const color_type& c, uint8 cover, in blend_hline_add() argument
59 if (cover == 255) { in blend_hline_add()
72 BLEND_ADD(p, color.red, color.green, color.blue, cover); in blend_hline_add()
131 const uint8* covers, uint8 cover, in blend_color_hspan_add() argument
151 if (cover == 255) { in blend_color_hspan_add()
160 } else if (cover) { in blend_color_hspan_add()
163 BLEND_ADD(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_add()
H A DDrawingModeBlend.h38 blend_pixel_blend(int x, int y, const color_type& c, uint8 cover, in blend_pixel_blend() argument
43 if (cover == 255) { in blend_pixel_blend()
46 BLEND_BLEND(p, color.red, color.green, color.blue, cover); in blend_pixel_blend()
53 const color_type& c, uint8 cover, in blend_hline_blend() argument
57 if (cover == 255) { in blend_hline_blend()
70 BLEND_BLEND(p, color.red, color.green, color.blue, cover); in blend_hline_blend()
129 const uint8* covers, uint8 cover, in blend_color_hspan_blend() argument
150 if (cover == 255) { in blend_color_hspan_blend()
159 } else if (cover) { in blend_color_hspan_blend()
161 BLEND_BLEND(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_blend()
H A DDrawingModeOver.h31 blend_pixel_over(int x, int y, const color_type& c, uint8 cover, in blend_pixel_over() argument
37 if (cover == 255) { in blend_pixel_over()
40 BLEND_OVER(p, color.red, color.green, color.blue, cover); in blend_pixel_over()
48 const color_type& c, uint8 cover, in blend_hline_over() argument
51 if (cover == 255) { in blend_hline_over()
71 BLEND_OVER(p, color.red, color.green, color.blue, cover); in blend_hline_over()
134 const uint8* covers, uint8 cover, in blend_color_hspan_over() argument
154 if (cover == 255) { in blend_color_hspan_over()
163 } else if (cover) { in blend_color_hspan_over()
166 BLEND_OVER(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_over()
H A DDrawingModeSubtract.h42 blend_pixel_subtract(int x, int y, const color_type& c, uint8 cover, in blend_pixel_subtract() argument
47 if (cover == 255) { in blend_pixel_subtract()
50 BLEND_SUBTRACT(p, color.red, color.green, color.blue, cover); in blend_pixel_subtract()
57 const color_type& c, uint8 cover, in blend_hline_subtract() argument
61 if (cover == 255) { in blend_hline_subtract()
74 BLEND_SUBTRACT(p, color.red, color.green, color.blue, cover); in blend_hline_subtract()
133 const uint8* covers, uint8 cover, in blend_color_hspan_subtract() argument
153 if (cover == 255) { in blend_color_hspan_subtract()
162 } else if (cover) { in blend_color_hspan_subtract()
165 BLEND_SUBTRACT(p, colors->r, colors->g, colors->b, cover); in blend_color_hspan_subtract()
H A DDrawingModeCopy.h32 blend_pixel_copy(int x, int y, const color_type& c, uint8 cover, in blend_pixel_copy() argument
37 if (cover == 255) { in blend_pixel_copy()
39 } else if (cover != 0) { in blend_pixel_copy()
41 BLEND_COPY(p, color.red, color.green, color.blue, cover, in blend_pixel_copy()
49 const color_type& c, uint8 cover, in blend_hline_copy() argument
52 if (cover == 255) { in blend_hline_copy()
80 } else if (cover != 0) { in blend_hline_copy()
85 BLEND_COPY(p, color.red, color.green, color.blue, cover, in blend_hline_copy()
147 const uint8* covers, uint8 cover, in blend_color_hspan_copy() argument
169 if (cover == 255) { in blend_color_hspan_copy()
[all …]
H A DDrawingModeOverSolid.h16 blend_pixel_over_solid(int x, int y, const color_type& c, uint8 cover, in blend_pixel_over_solid() argument
23 if (cover == 255) { in blend_pixel_over_solid()
26 BLEND_OVER(p, c.r, c.g, c.b, cover); in blend_pixel_over_solid()
33 const color_type& c, uint8 cover, in blend_hline_over_solid() argument
39 if (cover == 255) { in blend_hline_over_solid()
55 BLEND_OVER(p, c.r, c.g, c.b, cover); in blend_hline_over_solid()
H A DDrawingModeSelect.h55 blend_pixel_select(int x, int y, const color_type& c, uint8 cover, in blend_pixel_select() argument
64 if (cover == 255) { in blend_pixel_select()
67 BLEND_SELECT(p, color.red, color.green, color.blue, cover); in blend_pixel_select()
76 const color_type& c, uint8 cover, in blend_hline_select() argument
83 if (cover == 255) { in blend_hline_select()
95 BLEND_SELECT(p, color.red, color.green, color.blue, cover); in blend_hline_select()
162 const uint8* covers, uint8 cover, in blend_color_hspan_select() argument
185 if (cover == 255) { in blend_color_hspan_select()
194 } else if (cover) { in blend_color_hspan_select()
197 BLEND_SELECT(p, color.red, color.green, color.blue, cover); in blend_color_hspan_select()

123