Lines Matching refs:ebp
134 struct SPEBP *ebp = (struct SPEBP *) data;
275 png_bytep* row_pointers = new png_bytep[ebp->sheight];
315 struct SPEBP *ebp = (struct SPEBP *) data;
317 if (ebp->status) {
318 if (!ebp->status((float) row / ebp->height, ebp->data)) return 0;
321 num_rows = MIN(num_rows, static_cast<int>(ebp->sheight));
322 num_rows = MIN(num_rows, static_cast<int>(ebp->height - row));
328 Geom::IntRect bbox = Geom::IntRect::from_xywh(0, row, ebp->width, num_rows);
331 ebp->drawing->update(bbox);
333 int stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, ebp->width);
337 px, CAIRO_FORMAT_ARGB32, ebp->width, num_rows, stride);
339 dc.setSource(ebp->background);
345 ebp->drawing->render(dc, bbox);
352 convert_pixels_argb32_to_pixbuf(px, ebp->width, num_rows, stride);
443 struct SPEBP ebp;
444 ebp.width = width;
445 ebp.height = height;
446 ebp.background = bgcolor;
456 ebp.drawing = &drawing;
464 ebp.status = status;
465 ebp.data = data;
469 ebp.sheight = 64;
470 ebp.px = g_try_new(guchar, 4 * ebp.sheight * width);
472 if (ebp.px) {
473 write_status = sp_png_write_rgba_striped(doc, filename, width, height, xdpi, ydpi, sp_export_get_rows, &ebp);
474 g_free(ebp.px);