I wrote a bit on lossy compression. So I shove a big block of packed data into my decoder, it spits out an array of floats, now how do I copy these into the pixel array for a Blender image? I know I can just read from a buffer but that’s going to take forever in python.
So I could write it in C, slap the function on a dll or whatever and call it with ctypes, then pass the image as a pointer. Yeah, sounds good to me but I’ve never really messed with
as_pointer() so I don’t know the caveats. Do I just cast the address into some struct from
BKE_image or what?