For now, i moved mipmaps into ImageResource + the Document is just an array of resources now (with 1 element for jpeg, png, ico, icns; multiple for gif) + in the simplest case (jpeg, png) Document has 1 Resource with 1 image in it. + in the case of icns/ico Resource is a 1d array of mipmaps - in the complex case of DDS Resource is a 2D array. Well, DDS is complex itself:)) - reading DDS is a bit weird - we can't read parts of document separately as Mipmaps are on the top level. + still, we can read Gif incrementally
Code is located in mipmaps branch https://github.com/ABBAPOH/imagedocument/blob/mipmaps/src/lib/imageresource.h
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development