[Qt-interest] How can I read a large image fastly?

Kermit Mei kermit.mei at gmail.com
Sat Feb 6 02:27:42 CET 2010


Jason H wrote:
> 1, there is no way around time. Loading is loading. Unless you want to write a custom loader that will seek to the file's specific pixels, but this only works for bitmaps. JPG, etc, cannot be partially loaded (unless they are saved as progressive)
>
> 2, 
> http://labs.trolltech.com/blogs/2009/01/20/50-scaling-of-argb32-image/
> http://labs.trolltech.com/blogs/2009/01/26/creating-thumbnail-preview/
> " Check the example at Graphics Dojo 
> repository under the subdirectory thumbview."
>   

In fact, what I need is just the first situation you told. I'll try to 
find a good JPG decode algorithm.

Thanks, Jason.  

B.R
Kermit





More information about the Qt-interest-old mailing list