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 11package libwebp 12 13import _ "runtime/cgo" 14import "unsafe" 15 16type _ unsafe.Pointer 17 18type _swig_fnptr *byte 19type _swig_memberptr *byte 20 21//extern libwebpSwigCgocall 22func SwigCgocall() 23 24//extern libwebpSwigCgocallDone 25func SwigCgocallDone() 26 27//extern libwebpSwigCgocallBack 28func SwigCgocallBack() 29 30//extern libwebpSwigCgocallBackDone 31func SwigCgocallBackDone() 32 33func WebPGetDecoderVersion() int 34func Wrapped_WebPGetInfo(string, []int, []int) int 35 36// WebPGetInfo has 2 output parameters, provide a version in the more natural 37// go idiom: 38func 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} 46