summaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2015-03-27 11:28:33 +1100
committerNigel Tao <nigeltao@golang.org>2015-03-27 00:30:14 +0000
commit180fbb16c46e32cc49220946cdfa29520017f4a6 (patch)
treeee2bfc941c7eb68050f930eea48b4fb9be1f6b25 /src/image
parent2f34e606faa8cf676010fba04c5c3ca355a9cc84 (diff)
downloadgo-git-180fbb16c46e32cc49220946cdfa29520017f4a6.tar.gz
image/draw: fix golden test for YCbCr.RGBA change.
The previous change was https://go-review.googlesource.com/#/c/8073/ Change-Id: I0c48502d1ba90fb5d41c5e66346a8e7f4ee87ce7 Reviewed-on: https://go-review.googlesource.com/8151 Reviewed-by: Nigel Tao <nigeltao@golang.org>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/draw/draw_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image/draw/draw_test.go b/src/image/draw/draw_test.go
index a58f0f4984..29951bf05b 100644
--- a/src/image/draw/draw_test.go
+++ b/src/image/draw/draw_test.go
@@ -163,8 +163,8 @@ var drawTests = []drawTest{
// The source pixel is {0, 0, 136} in YCbCr-space, which is {11, 38, 0, 255} in RGB-space.
{"ycbcr", vgradCr(), fillAlpha(255), Over, color.RGBA{11, 38, 0, 255}},
{"ycbcrSrc", vgradCr(), fillAlpha(255), Src, color.RGBA{11, 38, 0, 255}},
- {"ycbcrAlpha", vgradCr(), fillAlpha(192), Over, color.RGBA{42, 28, 0, 255}},
- {"ycbcrAlphaSrc", vgradCr(), fillAlpha(192), Src, color.RGBA{8, 28, 0, 192}},
+ {"ycbcrAlpha", vgradCr(), fillAlpha(192), Over, color.RGBA{42, 29, 0, 255}},
+ {"ycbcrAlphaSrc", vgradCr(), fillAlpha(192), Src, color.RGBA{8, 29, 0, 192}},
{"ycbcrNil", vgradCr(), nil, Over, color.RGBA{11, 38, 0, 255}},
{"ycbcrNilSrc", vgradCr(), nil, Src, color.RGBA{11, 38, 0, 255}},
// Uniform mask (100%, 75%, nil) and variable Gray source.