[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pngpp-devel] Re: Some More png++ questions
From: |
Alexander Shulgin |
Subject: |
[pngpp-devel] Re: Some More png++ questions |
Date: |
Fri, 4 Sep 2009 14:57:47 +0300 |
On Fri, Sep 4, 2009 at 14:47, coolkehon<address@hidden> wrote:
> Hi I talked to you a while ago about png++ and I have some more questions.
Hi
> 1) Does png++ load the entire image into memory when I do something similar
> to this
> png::image< png::rgb_pixel > image("input.png");
> or
> image.read(...);
Yes, it load the whole image.
> 2) If so then is there a way to stream the image pixel data when loading so
> that it uses less memory because I'm only going to put it in another
> uint32_t * data, buffer.
Surely, take a look at png::consumer class template. The usage is
similar to that of png::generator used in example.
> 3) Is there a way to load an image from memory?
Yes, use png::image::read(istream) function.
> 4) Is there a way to set a custom read function like libpng?
Not sure right now, but w/o (trivial?) modifications to the source
code--unlikely.
--
Regards,
Alex
PS: please keep pngpp-devel@ in cc :)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [pngpp-devel] Re: Some More png++ questions,
Alexander Shulgin <=