I'm trying to write a script in Python that is similar to the built-in "animation-play" plugin. I am currently trying to figure out how to draw a preview of my image in a GTK window. "animation-play" does this by copying pixel regions from the image and then "manually" (> 400 lines of C code) converting them into a buffer that can then be drawn using "gdk_draw_rgb_image()".
I'd rather not (for performance reasons alone) re-implement this pixel buffer conversion in my skript, so I wonder if there is a more convenient way for doing this.
Are there plugins/procedures available (preferrably written in C) to do this "pixel buffer" conversion?
Is there a Python script/plugin out there that has a custom UI with a preview function? (I only found one that uses a temporary layer in the orginial Image for the preview)
I found a "GimpPreview" in the C API, but that does not seem to be available in the Python API?
(EDIT: Moved this to the plugins forum)