Currently AReader only accepts a memory buffer as input, so the entire file has to be loaded before decoding can start. This is certainly not optimal. Find some way to support loading a stream of data.
We could use QIODevice, but I would like to stay clear of Qt if possible. Then again, we are using QImage, so there might not be much of a point in not using Qt.
We should look into how the libraries accept streaming data, and try to find an approach which matches this the most.
Currently AReader only accepts a memory buffer as input, so the entire file has to be loaded before decoding can start. This is certainly not optimal. Find some way to support loading a stream of data.
We could use QIODevice, but I would like to stay clear of Qt if possible. Then again, we are using QImage, so there might not be much of a point in not using Qt. We should look into how the libraries accept streaming data, and try to find an approach which matches this the most.