Initial commit
This commit is contained in:
12
codec/coder.go
Normal file
12
codec/coder.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package codec
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"image"
|
||||
"io"
|
||||
)
|
||||
|
||||
type Coder interface {
|
||||
Decode(io.Reader) (image.Image, error)
|
||||
Encode(image.Image, int) (bytes.Buffer, error)
|
||||
}
|
Reference in New Issue
Block a user