Re: [Gegl-developer] Choosing the operation input format based the connected nodes output format
- From: Daniel Sabo <danielsabo gmail com>
- To: Dov Grobgeld <dov grobgeld gmail com>
- Cc: gegl-developer-list gnome org
- Subject: Re: [Gegl-developer] Choosing the operation input format based the connected nodes output format
- Date: Thu, 30 May 2013 00:54:00 -0700
My first instinct would be to say that ppm-load not setting it's output format is a bug, and that it should try to sniff the file in prepare() inorder to set the correct format. If you do format switching in gaussian-blur's process() then you'll also spoil the format detection of whatever is connected to gaussian's output.
As an alternative to that, I would be inclined to process ppm-load to a buffer then pass that buffer to a second graph.
Finally (and please don't use this option), the reason you get that error is because the parent implementation of process() in gegl/operation/gegl-operation-filter.c calls gegl_operation_context_get_target for you, it is possible to override this and still use the rest of the filter class (see operations/common/over.c).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]