Lines Matching refs:engine
55 //Inkscape::Trace::Potrace::PotraceTracingEngine *engine =
134 static long writePaths(PotraceTracingEngine *engine, potrace_path_t *plist,
170 if (!engine->keepGoing)
196 nodeCount += writePaths(engine, child, data, points);
205 static GrayMap *filter(PotraceTracingEngine &engine, GdkPixbuf * pixbuf)
213 if (engine.getTraceType() == TRACE_QUANT)
218 engine.getQuantizationNrColors());
224 else if ( engine.getTraceType() == TRACE_BRIGHTNESS ||
225 engine.getTraceType() == TRACE_BRIGHTNESS_MULTI )
231 ( engine.getBrightnessFloor() * 256.0 );
233 ( engine.getBrightnessThreshold() * 256.0 );
252 else if (engine.getTraceType() == TRACE_CANNY)
255 newGm = grayMapCanny(gm, 0.1, engine.getCannyHighThreshold());
262 if (newGm && engine.getInvert())
279 static IndexedMap *filterIndexed(PotraceTracingEngine &engine, GdkPixbuf * pixbuf)
287 if (engine.getMultiScanSmooth())
290 newGm = rgbMapQuantize(gaussMap, engine.getMultiScanNrColors());
295 newGm = rgbMapQuantize(gm, engine.getMultiScanNrColors());
299 if (engine.getTraceType() == TRACE_QUANT_MONO)