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

John Emmas <john-DXT9u3ndKiQNQS9/lJU/[email protected]> Sun, 13 Dec 2020 13:31:20 +0000
Newsgroups gmane.comp.graphics.png.devel
Message-ID <[email protected]>
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