Cosmin Apreutesei

Results 23 comments of Cosmin Apreutesei

Here's the code for it in case anyone needs it: https://github.com/luapower/libspng/blob/master/csrc/libspng/premultiply.c

A push style API needs to have no callbacks at all because languages that perform I/O inside with coroutines cannot yield from a C callback. It's the only reason I...

I'm not sure what you're asking, but I thought about it some more and I decided that progressive loading is just not worth it in 2021, the user experience is...

To be clear, libpng doesn't have a push-style API either, it's all callback based (including png_process_data[1]). When I said "the only reason I can't replace..." what I should've said is...

Yes, I only do ffi if I can help it.

Good point. I wonder if APNG will win the contest for replacing animated gifs though or will it be AVIF or something else? Right now I don't see a clear...

out-of-scope? I would prefer not having this or at least being able to disable it with a define (I avoid dependency to crt when possible).

Yes, FILE is crt. I personally can't get rid of crt, but for others it might be a selling point.

Same problem when trying to open an already-cloned git repo that contains a `worktree` entry in the repo's `.git/config` file. Trying to open the repo results in the following error...

Hi @attractivechaos thanks for the explanation. Can you recommend a good strategy / formula for when to call resize periodically in order to implement auto-shrinking? Btw, AFAIU, `n_buckets` is the...