Native PNG decoder

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Native PNG decoder

Post by retrotails »

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
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Native PNG decoder

Post by Positive07 »

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)
Post Reply

Who is online

Users browsing this forum: No registered users and 70 guests