go-libwebp

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

backend_transpiled.go (349B)


      1 //go:build transpiled
      2 
      3 package webp
      4 
      5 import (
      6 	"image"
      7 	"io"
      8 
      9 	transpiled "git.sr.ht/~jackmordaunt/go-libwebp/v2/lib/transpiled/webp"
     10 )
     11 
     12 func init() {
     13 	fallbackBackend = &backend{
     14 		name: "transpiled",
     15 		encode: func(w io.Writer, m *image.NRGBA, q float32) error {
     16 			return transpiled.EncodeImpl(w, m, q)
     17 		},
     18 		decode: transpiled.DecodeImpl,
     19 	}
     20 }