summaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/nfnt/resize/resize.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-20 15:11:26 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-24 09:28:09 -0400
commitae83df8ed5b22f9b567cb77953d47861f59580a7 (patch)
treed52376c368f409ae4adec346eb84104d57672176 /Godeps/_workspace/src/github.com/nfnt/resize/resize.go
parentb813234f4cc38e72bb94556d3a4acdcde5071468 (diff)
downloadchat-ae83df8ed5b22f9b567cb77953d47861f59580a7.tar.gz
chat-ae83df8ed5b22f9b567cb77953d47861f59580a7.tar.bz2
chat-ae83df8ed5b22f9b567cb77953d47861f59580a7.zip
Update nfnt/resize library to the most recent version (as of July 20)
Diffstat (limited to 'Godeps/_workspace/src/github.com/nfnt/resize/resize.go')
-rw-r--r--Godeps/_workspace/src/github.com/nfnt/resize/resize.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/Godeps/_workspace/src/github.com/nfnt/resize/resize.go b/Godeps/_workspace/src/github.com/nfnt/resize/resize.go
index 4d4ff6e3e..c1672432e 100644
--- a/Godeps/_workspace/src/github.com/nfnt/resize/resize.go
+++ b/Godeps/_workspace/src/github.com/nfnt/resize/resize.go
@@ -167,7 +167,7 @@ func Resize(width, height uint, img image.Image, interp InterpolationFunction) i
// accessing the YCbCr arrays in a tight loop is slow.
// converting the image to ycc increases performance by 2x.
temp := newYCC(image.Rect(0, 0, input.Bounds().Dy(), int(width)), input.SubsampleRatio)
- result := newYCC(image.Rect(0, 0, int(width), int(height)), input.SubsampleRatio)
+ result := newYCC(image.Rect(0, 0, int(width), int(height)), image.YCbCrSubsampleRatio444)
coeffs, offset, filterLength := createWeights8(temp.Bounds().Dy(), taps, blur, scaleX, kernel)
in := imageYCbCrToYCC(input)
@@ -409,7 +409,7 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
// accessing the YCbCr arrays in a tight loop is slow.
// converting the image to ycc increases performance by 2x.
temp := newYCC(image.Rect(0, 0, input.Bounds().Dy(), int(width)), input.SubsampleRatio)
- result := newYCC(image.Rect(0, 0, int(width), int(height)), input.SubsampleRatio)
+ result := newYCC(image.Rect(0, 0, int(width), int(height)), image.YCbCrSubsampleRatio444)
coeffs, offset, filterLength := createWeightsNearest(temp.Bounds().Dy(), taps, blur, scaleX)
in := imageYCbCrToYCC(input)