Lines Matching refs:px

165 inline static guint32 compose_onto(guint32 px, guint32 bg)
169 ExtractARGB32(px, ap, rp, gp, bp);
185 * @param px The pixel buffer.
190 inline guint32 get_pixel(guchar *px, int x, int y, int stride) {
191 return *reinterpret_cast<guint32*>(px + y * stride + x * 4);
313 * @param px The rendered pixel buffer to check.
320 inline static bool check_if_pixel_is_paintable(guchar *px, unsigned char *trace_t, int x, int y, guint32 orig_color, bitmap_coords_info bci) {
324 guint32 pixel = get_pixel(px, x, y, bci.stride);
337 * @param px The trace pixel buffer to trace to SVG.
502 * @param px The rendered pixel buffer to check.
508 inline static unsigned int paint_pixel(guchar *px, guchar *trace_px, guint32 orig_color, bitmap_coords_info bci, unsigned char *original_point_trace_t) {
525 if (check_if_pixel_is_paintable(px, trace_t, tx, ty, orig_color, bci)) {
585 * @param px The rendered pixel buffer.
590 static ScanlineCheckResult perform_bitmap_scanline_check(std::deque<Geom::Point> *fill_queue, guchar *px, guchar *trace_px, guint32 orig_color, bitmap_coords_info bci, unsigned int *min_x, unsigned int *max_x) {
624 if (check_if_pixel_is_paintable(px, current_trace_t, bci.x, bci.y, orig_color, bci)) {
625 paint_directions = paint_pixel(px, trace_px, orig_color, bci, current_trace_t);
637 bool ok_to_paint = check_if_pixel_is_paintable(px, trace_t, bci.x, top_ty, orig_color, bci);
656 bool ok_to_paint = check_if_pixel_is_paintable(px, trace_t, bci.x, bottom_ty, orig_color, bci);
746 document->getHeight().value("px") - screen.height() - screen.min()[Geom::Y]);
755 guchar *px = g_new(guchar, stride * height);
758 // Draw image into data block px
771 px, CAIRO_FORMAT_ARGB32, width, height, stride);
799 // px, CAIRO_FORMAT_ARGB32, width, height, stride);
856 Geom::Point pw = Geom::Point(fill_points[i][Geom::X] / zoom_scale, document->getHeight().value("px") + (fill_points[i][Geom::Y] / zoom_scale)) * affine;
891 guint32 orig_color = get_pixel(px, cx, cy, stride);
896 if (check_if_pixel_is_paintable(px, trace_px, cx, cy, orig_color, bci)) {
992 ScanlineCheckResult result = perform_bitmap_scanline_check(&fill_queue, px, trace_px, orig_color, bci, &min_x, &max_x);
1012 result = perform_bitmap_scanline_check(&fill_queue, px, trace_px, orig_color, bci, &min_x, &max_x);
1036 g_free(px);