Don't decode all of the image data when only processing a partial tile Don't use full-width decode buffers when only processing a partial tile // * "input pixels" points to an array of image data with ...
in the file that you want to have the implementation. Will probably not work correctly with strict-aliasing optimizations. You can #define STBIW_ASSERT(x) before the #include to avoid using assert.h.