mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
lib/handsum: renumber quality from 0..=3 to 1..=4
This commit is contained in:
1 parent
5db6a08b6a
commit
979a9d898c
24 files changed
+107
-127
No files matched your search
@@ -32,11 +32,11 @@ func testRoundTrip(tt *testing.T, src image.Image, pixelValue uint8, justCheckTh
|
||||
}
|
||||
|
||||
for _, c := range colors {
|
||||
for q := Quality(0); q < 4; q++ {
|
||||
for q := QualityWorst; q <= QualityBest; q++ {
|
||||
buf := &bytes.Buffer{}
|
||||
err := Encode(buf, src, &EncodeOptions{
|
||||
Color: MakeOptionColor(c),
|
||||
Quality: MakeOptionQuality(q),
|
||||
Color: c,
|
||||
Quality: q,
|
||||
})
|
||||
if err != nil {
|
||||
tt.Fatalf("c=%d: q=%d: Encode: %v", c, q, err)
|
||||
|
||||
Reference in new issue
Block a user