Re: Do PNG files come in 64-bit format ??

J Decker <[email protected]> Sun, 13 Dec 2020 09:54:53 -0800
Newsgroups gmane.comp.graphics.png.devel
Message-ID <CAA2GJqXtkxA1nwA=Bxw+LL6GWVHwFUkx8jL3hJa4BUQFz2o1kA@mail.gmail.com>
I've built libpng 32 and 64 bit for a long time with no modifications and
no issues....


On Sun, Dec 13, 2020 at 5:45 AM John Emmas <john-DXT9u3ndKiQNQS9/lJU/[email protected]> wrote:

> On 11/12/2020 17:50, Bob Friesenhahn wrote:
> >
> > No.  There is only one version of PNG files.  The PNG format was not
> > updated for 64-bit apps. :-)
> >
> > The PNG format is designed to only deal with a small bit of data at a
> > time.
> >
> > The main thing to be aware of under Windows when porting from 32 to
> > 64-bits is that the size of a 'long' type remains the same, but the
> > size of 'size_t' (the size of memory that malloc may allocate) and the
> > size of pointers become 64 bits.  This means that additional work must
> > be done under Windows in order for a ported 32-bit app to fully
> > benefit from 64-bits, and care must be taken to avoid passing 64-bit
> > values into 32-bit storage.
> >
>
> Many thanks for that, Bob.  I've started a thread over on the Gnome
> Discourse site - though I must admit, it's all a bit baffling at the
> moment:-
>
> https://discourse.gnome.org/t/building-gdk-pixbuf-as-64-bit-using-msvc/5013
>
> Regards, John
>
>
> _______________________________________________
> png-mng-implement mailing list
> png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/png-mng-implement
>

_______________________________________________
png-mng-implement mailing list
png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/png-mng-implement