go-libwebp

Experimental translation from libwebp to Go source.
Log | Files | Refs | README | LICENSE

commit 656734b171d252f78a17f215075cf95fdd694456
parent 0cec354450a887af7a4eae02782b0968e30ec0ff
Author: Chris Waldon <christopher.waldon.dev@gmail.com>
Date:   Tue, 25 Jan 2022 13:21:17 -0500

docs: update README with current progress

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>

Diffstat:
MREADME.md | 14++++----------
1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -1,6 +1,6 @@ # go-libwebp -This is a ccgo translation from [libwebp](https://github.com/webmproject/libwebp/) +This is a [`ccgo`-based](https://pkg.go.dev/modernc.org/ccgo/v3) translation from [libwebp](https://github.com/webmproject/libwebp/) in the hope to bring webp codec into Go space. `go run . megopher.png` @@ -9,21 +9,15 @@ Can consume JPEG and PNG images. Status: Experimental -## Notes - -- iterations were manually cleaned up to reflect C idiom of treating integers like booleans - - the cleanup may have been incorrect - - ccgo issue is open to make the translation step correct to avoid needing manual work -- libwebp depends on libc bsearch, which modernc.org/libc doesn't provide; as such an experimental Go implementation is provided (that actually cheats by doing a simple linear search) - - again, this should ideally be upstreamed to ccgo (providing a bsearch) - ## Contributors This repo represents a joint effort between Chris Waldon (~whereswaldon) and myself. Thanks Chris for figuring out the build process for compiling libwebp to Go! +We owe a great debt to [@cznic](https://gitlab.com/cznic) for both creating `ccgo` and fixing numerous small +problems we encounted while compiling `libwebp`. + ## Todo - [ ] high level tests for various image formats - [ ] porcelain wrapper package to integrate with image.Decode -- [ ] build script for recompiling from upstream