I should first mention that I'm pretty new to Qt. I need to write a custom image plugin for a special image format that uses a header format distinct from that of JPEG but which stores pixel data so that it looks like a JPEG image. I've looked at tutorials about how to subclass QImageIOPlugin and create a custom image plugin, but I'm unsure of the best way to go about writing the code to read the special header and then get the pixel data into a QImage.
Since JPEGs are already supported out of the box by Qt 4.7, would I be able to reuse some of the JPEG implementation? For example, would I be able to subclass the QJpegHandler already used by Qt and re-implement how the header is read? Or should I just write a custom image plugin from scratch and use the JPEG implementation as a guide?
Thanks a lot!
Bookmarks