You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The block-based decoders (BC + sub-sampled) and all rectangle decoders currently process the image line by line. This requires allocating on the heap to store a line. Of course, only one allocation is used for all lines, but it would still be better to have none.
It's possible to change all of those decoders to decode images with just a bit of stack memory. Instead of reading an entire line, split each line into chunks small enough to fit into a fixed-size buffer on the stack.