libwebp.go (1235B)
1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 2.0.10 4 * 5 * This file is not intended to be easily readable and contains a number of 6 * coding conventions designed to improve portability and efficiency. Do not make 7 * changes to this file unless you know what you are doing--modify the SWIG 8 * interface file instead. 9 * ----------------------------------------------------------------------------- */ 10 11 package libwebp 12 13 import _ "runtime/cgo" 14 import "unsafe" 15 16 type _ unsafe.Pointer 17 18 type _swig_fnptr *byte 19 type _swig_memberptr *byte 20 21 //extern libwebpSwigCgocall 22 func SwigCgocall() 23 24 //extern libwebpSwigCgocallDone 25 func SwigCgocallDone() 26 27 //extern libwebpSwigCgocallBack 28 func SwigCgocallBack() 29 30 //extern libwebpSwigCgocallBackDone 31 func SwigCgocallBackDone() 32 33 func WebPGetDecoderVersion() int 34 func Wrapped_WebPGetInfo(string, []int, []int) int 35 36 // WebPGetInfo has 2 output parameters, provide a version in the more natural 37 // go idiom: 38 func WebPGetInfo(webp []byte) (ok bool, width int, height int) { 39 w := []int{0} 40 h := []int{0} 41 ok = Wrapped_WebPGetInfo(string(webp), w, h) != 0 42 width = w[0] 43 height = h[0] 44 return 45 }