#How i can use external C lib

6 messages · Page 1 of 1 (latest)

candid bear
#

Hii, I am looking for a way to quickly encode GIFs, but no crate is efficient enough. I was searching and found a C project called cgif that uses well-known libraries such as libvips, but I don't know how to safely integrate it into my project. Does anyone have any idea how I can do this?

hidden cove
bleak relic
#

it is AGPL however

candid bear
# bleak relic if you're not set on using this cgif, i've had a seamless experience with https:...

I tried it before, I did some simple tests and some demanding ones, with my Ryzen 5500 processor, and even using all the optimizations that gifski provides, it gives me worse performance than libwebp-sys, almost half the time difference. My idea is to create an image processing API to apply effects and all that, so I'm looking for a tool that allows me to optimize the GIF part. I already tried ffmpeg, but I still haven't found the right one