refactor(type)

This commit is contained in:
Tomas Aparicio 2015-03-30 02:49:19 +02:00
parent 5e47888d78
commit da8c9707c9
3 changed files with 7 additions and 15 deletions

View file

@ -87,10 +87,6 @@ func vipsExtract(image *C.struct__VipsImage, left int, top int, width int, heigh
return buf, nil
}
type vipsSaveOptions struct {
Quality int
}
func vipsImageType(buf []byte) string {
imageType := UNKNOWN
@ -119,6 +115,10 @@ func vipsImageType(buf []byte) string {
return imageType
}
type vipsSaveOptions struct {
Quality int
}
func vipsSave(image *C.struct__VipsImage, o vipsSaveOptions) ([]byte, error) {
var ptr unsafe.Pointer
length := C.size_t(0)