rgn_init() doesn't take any actual image data afaik but just, well, inits the region
but yeah the idea of using some of the region_set functions inside the decode function could be an option. however the decode function is meant to read one full row per color (and alpha) only so i'd need a new one or change the current one because gimp wants rgba, rgba, rgba ... per row.
my general idea was to replace the fwrites at the bottom so that i store whatever the colors like red[x - left] have in a buffer. once the row is done i give that to gimp, update the progress bar and go for the next row.
the rather basic problem i have there is making a "copy" of whatever red[x - left] and the others have to a buffer. i tried a simple = and bcopy and a few others but nothing worked.
![Razz :P](../../../static/c5c37b29-1f12-4f42-ae5a-bc36c26e4ebb.gif)
but yeah the idea of using some of the region_set functions inside the decode function could be an option. however the decode function is meant to read one full row per color (and alpha) only so i'd need a new one or change the current one because gimp wants rgba, rgba, rgba ... per row.
my general idea was to replace the fwrites at the bottom so that i store whatever the colors like red[x - left] have in a buffer. once the row is done i give that to gimp, update the progress bar and go for the next row.
the rather basic problem i have there is making a "copy" of whatever red[x - left] and the others have to a buffer. i tried a simple = and bcopy and a few others but nothing worked.
r-a-c.de