Absolutely pointless and slow, decodes PNGs by reading them byte by byte.
Many PNGs will not work, only some features are implemented.
native.love is pure Lua and has some borrowed libraries (credit and licenses in their respective scripts) anything over 256x256 or so will be extremely slow to decode.
zlib.zip will only work on Linux and has to be extracted. It contains zlib.so which makes decoding literally over 1,000 times faster. https://github.com/brimworks/lua-zlib
Native PNG decoder
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: Native PNG decoder
Nice, I started my own GIF decoder/encoder but I couldnt understand LZW compression at the time, I should give it a try again sometime
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Who is online
Users browsing this forum: Ahrefs [Bot] and 11 guests