Re: [Development] Imageformats v2

2015-07-16 Thread Иван Комиссаров
Bumping thread. API changed again:) Current version supports all i need to and can be extended without breaking BC (which is important when API will be stabilized). UML diagram: https://raw.githubusercontent.com/ABBAPOH/imagedocument/master/uml/Class%20Diagram.png Typical usage: http://pastebin.co

Re: [Development] Imageformats v2

2015-05-29 Thread Иван Комиссаров
Another experiment. I've added separate classes for CubeTexture and VolumeTexture https://github.com/ABBAPOH/imagedocument/blob/textures/src/lib/cubetexture.h https://github.com/ABBAPOH/imagedocument/blob/textures/src/lib/volumetexture.h The idea for Cube texture is an ablitity to create from/conv

Re: [Development] Imageformats v2

2015-05-22 Thread Иван Комиссаров
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 th

Re: [Development] Imageformats v2

2015-05-21 Thread Konstantin Ritt
2015-05-21 10:16 GMT+04:00 Rutledge Shawn : > > So I’d add both frame and frameCount to Image, which would be enough in > this example, and then you don’t need the ImageDocument for such a simple > use case. > Doesn't this mean Image becomes a light-weight variant of ImageDocument? How will image

Re: [Development] Imageformats v2

2015-05-20 Thread Rutledge Shawn
On 19 May 2015, at 21:00, Konstantin Ritt wrote: > IIUC, this already covered by the idea: since we can not (currently?) support > animated "pages", we treat both a multi-page tiff and an animated gif as a > document with N "frames”. I thought so. > > What you described sounds more like mip

Re: [Development] Imageformats v2

2015-05-20 Thread André Somers
Иван Комиссаров schreef op 19-5-2015 om 19:43: Let me describe current API and the ideas behind it. The core class is the ImageDocument - this is the replacement of the QImageReader/QImageWriter. Reader and writer has similar API and implemented in the same way, so i’ve decided to merge them i

Re: [Development] Imageformats v2

2015-05-19 Thread Konstantin Ritt
2015-05-19 22:12 GMT+04:00 Rutledge Shawn : > I think the new API should have multi-page support. It would be useful > for pdf, djvu, multi-page tiff, and for looking at individual frames of > animated gif, png, etc., to the extent that we write plugins for those. > IIUC, this already covered by

Re: [Development] Imageformats v2

2015-05-19 Thread Иван Комиссаров
Thanks for reply. Yes, frames should actually be renamed to something more generic (array element? page? resourceCount? - i couldn’t find the right name yet). Actually, DDS doesn’t support animation, but it supports texture arrays which should be implemented using "frames". I didn’t think abou

Re: [Development] Imageformats v2

2015-05-19 Thread Rutledge Shawn
I think the new API should have multi-page support. It would be useful for pdf, djvu, multi-page tiff, and for looking at individual frames of animated gif, png, etc., to the extent that we write plugins for those. I wrote a QQuickImageProvider for PDF (using poppler), but requestImage takes o

[Development] Imageformats v2

2015-05-19 Thread Иван Комиссаров
Hello everybody! Recently i’ve started a project of a new imageformats API. The reasoning is that there are a lot of limitations in the current API: no way to save file containing an array of images, bad error handling, no support for the EXIF. Implementing those features requires ABI breakage