Searched refs:uround (Results 1 - 18 of 18) sorted by relevance

/haiku/headers/libs/agg/
H A Dagg_span_image_filter.h121 int scale_limit() const { return uround(m_scale_limit); }
157 m_rx = uround( scale_x * double(image_subpixel_scale));
158 m_rx_inv = uround(1.0/scale_x * double(image_subpixel_scale));
160 m_ry = uround( scale_y * double(image_subpixel_scale));
161 m_ry_inv = uround(1.0/scale_y * double(image_subpixel_scale));
212 void blur_x(double v) { m_blur_x = uround(v * double(image_subpixel_scale)); }
213 void blur_y(double v) { m_blur_y = uround(v * double(image_subpixel_scale)); }
215 m_blur_y = uround(v * double(image_subpixel_scale)); }
H A Dagg_span_interpolator_persp.h121 int sx1 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
127 int sy1 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
139 int sx2 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
145 int sy2 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
174 int sx2 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
182 int sy2 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
336 int sx1 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
344 int sy1 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
360 int sx2 = uround(subpixel_scale/sqrt(dx*dx + dy*dy)) >> subpixel_shift;
368 int sy2 = uround(subpixel_scal
[all...]
H A Dagg_color_gray.h67 v((value_type)uround((0.299*c.r + 0.587*c.g + 0.114*c.b) * double(base_mask))),
68 a((value_type)uround(c.a * double(base_mask))) {}
72 v((value_type)uround((0.299*c.r + 0.587*c.g + 0.114*c.b) * double(base_mask))),
73 a((value_type)uround(a_ * double(base_mask))) {}
103 a = (value_type)uround(a_ * double(base_mask));
159 calc_type ik = uround(k * base_scale);
254 v((value_type)uround((0.299*c.r + 0.587*c.g + 0.114*c.b) * double(base_mask))),
255 a((value_type)uround(c.a * double(base_mask))) {}
259 v((value_type)uround((0.299*c.r + 0.587*c.g + 0.114*c.b) * double(base_mask))),
260 a((value_type)uround(a
[all...]
H A Dagg_gamma_lut.h85 uround(pow(i / double(gamma_mask), m_gamma) * double(hi_res_mask));
92 uround(pow(i / double(hi_res_mask), inv_g) * double(gamma_mask));
H A Dagg_color_rgba.h254 r((value_type)uround(c.r * double(base_mask))),
255 g((value_type)uround(c.g * double(base_mask))),
256 b((value_type)uround(c.b * double(base_mask))),
257 a((value_type)uround(a_ * double(base_mask))) {}
265 r((value_type)uround(c.r * double(base_mask))),
266 g((value_type)uround(c.g * double(base_mask))),
267 b((value_type)uround(c.b * double(base_mask))),
268 a((value_type)uround(c.a * double(base_mask))) {}
288 a = (value_type)uround(a_ * double(base_mask));
354 calc_type ik = uround(
[all...]
H A Dagg_ellipse.h91 m_num = uround(2*pi / da);
H A Dagg_renderer_outline_image.h110 m_width_hr = uround(src.width() * line_subpixel_scale);
111 m_half_height_hr = uround(src.height() * line_subpixel_scale/2);
284 m_len(uround(len / scale))
933 m_start += uround(lp.len / m_scale_x);
953 uround(calc_distance(x1, y1, x2, y2)));
956 m_start += uround(calc_distance(lp.x1, lp.y1, x1, y1) / m_scale_x);
988 m_start = start + uround(lp.len / m_scale_x);
H A Dagg_basics.h138 AGG_INLINE unsigned uround(double v) //-------uround function in namespace:agg
167 AGG_INLINE int uround(double v) function in namespace:agg
192 AGG_INLINE int uround(double v) function in namespace:agg
H A Dagg_span_gradient.h178 return uround(sqrt(double(x)*double(x) + double(y)*double(y)));
370 return uround(fabs(atan2(double(y), double(x))) * double(d) / pi);
H A Dagg_blur.h1206 c.r = (cv_type)uround(r);
1207 c.g = (cv_type)uround(g);
1208 c.b = (cv_type)uround(b);
1209 c.a = (cv_type)uround(a);
1248 c.r = (cv_type)uround(r);
1249 c.g = (cv_type)uround(g);
1250 c.b = (cv_type)uround(b);
1285 c.v = (cv_type)uround(v);
H A Dagg_rasterizer_scanline_aa.h165 m_gamma[i] = uround(gamma_function(double(i) / aa_mask) * aa_mask);
H A Dagg_renderer_outline_aa.h1308 uround(gamma_function(double(i) / aa_mask) * aa_mask));
1589 uround(calc_distance(x1, y1, x2, y2)));
1644 uround(calc_distance(x1, y1, x2, y2)));
1711 uround(calc_distance(x1, y1, x2, y2)));
1783 uround(calc_distance(x1, y1, x2, y2)));
H A Dagg_rasterizer_outline_aa.h52 return (len = uround(sqrt(dx * dx + dy * dy))) >
H A Dagg_rasterizer_compound_aa.h666 m_master_alpha[style] = uround(alpha * aa_mask);
H A Dagg_pixfmt_rgba.h1177 p[Order::R] = (value_type)uround(dr * base_mask);
1178 p[Order::G] = (value_type)uround(dg * base_mask);
1179 p[Order::B] = (value_type)uround(db * base_mask);
/haiku/src/libs/agg/src/
H A Dagg_line_profile_aa.cpp45 m_subpixel_width = uround(w * subpixel_scale);
H A Dagg_curves.cpp60 m_num_steps = uround(len * 0.25 * m_scale);
283 m_num_steps = uround(MSC60_fix_ICE(len));
285 m_num_steps = uround(len);
/haiku/src/servers/app/drawing/Painter/
H A Dagg_rasterizer_scanline_aa_subpix.h85 m_gamma[i] = uround(gamma_function(double(i) / aa_mask) * aa_mask);

Completed in 192 milliseconds