Skip to content

Commit

Permalink
Rename option
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Apr 11, 2021
1 parent bd35b2f commit 3a211f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libwebp/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type testCase struct {
}

var testCases = []testCase{
{"lossy", "source.jpg", options.EncodingOptions{Quality: 75, EncodingPreset: options.PresetPhoto, UseSharpYuv: true}},
{"lossy", "source.jpg", options.EncodingOptions{Quality: 75, EncodingPreset: options.EncodingPresetPhoto, UseSharpYuv: true}},
{"lossless", "source.jpg", options.EncodingOptions{}},
{"bw", "bw-gopher.png", options.EncodingOptions{Quality: 75}},
}
Expand Down
12 changes: 6 additions & 6 deletions libwebp/options/options.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package options

const (
PresetDefault EncodingPreset = iota
PresetPicture
PresetPhoto
PresetDrawing
PresetIcon
PresetText
EncodingPresetDefault EncodingPreset = iota
EncodingPresetPicture
EncodingPresetPhoto
EncodingPresetDrawing
EncodingPresetIcon
EncodingPresetText
)

type (
Expand Down

0 comments on commit 3a211f6

Please sign in to comment.