mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
lib/handsum: add EncodeOptions type
This commit is contained in:
1 parent
6e91caf241
commit
263bbfabf0
2 files changed
+12
-3
No files matched your search
+10
-1
@@ -64,8 +64,17 @@ var (
|
||||
ErrUnsupportedFileVersion = errors.New("handsum: unsupported file version")
|
||||
)
|
||||
|
||||
// EncodeOptions are optional arguments to Encode. The zero value is valid and
|
||||
// means to use the default configuration.
|
||||
//
|
||||
// There are no fields for now, but there may be some in the future.
|
||||
type EncodeOptions struct {
|
||||
}
|
||||
|
||||
// Encode writes src to w in the Handsum format.
|
||||
func Encode(w io.Writer, src image.Image) error {
|
||||
//
|
||||
// options may be nil, which means to use the default configuration.
|
||||
func Encode(w io.Writer, src image.Image, options *EncodeOptions) error {
|
||||
if (w == nil) || (src == nil) {
|
||||
return ErrBadArgument
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user