Hi :-) On Wed, 2009-08-12 at 21:55 +0300, Sampo Vuori wrote: > > If you have graphviz installed, you can try "Debug" -> "Filter Graph" > > for an overview of the current filter chain. > This seems to show only the default chain which is specified in > application.c .. is that right? At least my installed plugin does not > appear there unless I add it to the chain which I think I'm not > supposed to do.
That's exactly what you're supposed to do. I was referring to the filter graph, because it can give you some ideas about where your filter would best fit in the flow. Most of the chain is specified in application.c and rs-preview-widget.c. > > If you look at the console when starting Rawstudio, you can currently > > see some debug information about loaded plugins. > Yeah, I managed to get my plugin show up there. You're halfway there! :) > >> 1) how the data moves between plugin and the program? > > Well. For the most part it doesn't. It mostly moves from filter to > > filter. The application can use rs_filter_get_image() (and a handful of > > other functions) to extract data from the last filter. > What specifies in which order the plugins are processed? The filter initialization only. And there is currently no way for the user to alter this at runtime. > > g_object_set() is used for setting processing parameters for most > > filters. > If the plugin is not marked "dirty" via setting the properties does it > ever get computed (is get_image called for it)? My problem is that the > plugin does the loaded but it does not affect the images.. I tried > putting it in the filter chain in application.c and it seems to work > (wow :-) but I can't make it do anything if I don't hardwire it in the > filter chain. The dirty flag is not exposed outside the filter itself. All logic depending on dirty must be implemented by the filter itself. - and you are correct, filters must be hardcoded in the application. > >> 3) how do I specify how the plugin shows up in the GUI? > > Currently plugins have no way of altering the GUI. > So the GUI has to be built in the application itself? I think I'd like > to have a color picker for the B&W filter to simulate color filters. That's understandable - but currently plugins in Rawstudio mostly helps the development of Rawstudio, not really the end user. You will also note that plugins aren't exposed anywhere in the UI. > >> BTW. The idea of being able to specify the processing flow (what image > >> processors affect the image and in which order) is *great* > > Please note that this is only for the programmer - not for the end user. > > And probably never will be. > That's a shame.. I liked the idea in Lightzone. I think many did. But it's not a priority in Rawstudio. I'm not sure it ever will be. /Anders Brander _______________________________________________ Rawstudio-dev mailing list [email protected] http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev
