[Qt-interest] Stream-oriented image conversion

Jason H scorp1us at yahoo.com
Wed Jun 23 22:27:24 CEST 2010


This seems like a no brainder, but I was wondering/hoping if someone could enlighten me. 

I need to convert very large images (usually just an array of bits, in various formats) to another format. These files are typically 80MB, but can go as high as 800MB+ and, adding to it, it is a multi-threaded environment, which means that I might have 10 or more images being converted at once. 

I was hoping with with Qt's QIODevice abstraction that I could set up some kind of streaming conversion where I can read 64k chunks and send them to a writer that will, when a tile is complete, process and write the tile in the new format. This way, with 10 thread on 80MB files, I only use 640k, rather than 800MB at a time, as 640k ought to be enough for anybody.

Or, if there is some command line tools that already do it?

Thanks!


      




More information about the Qt-interest-old mailing list