|
@@ -384,7 +384,7 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
|
384
|
384
|
coeffs, offset, filterLength := createWeightsNearest(temp.Bounds().Dy(), taps, blur, scaleX)
|
385
|
385
|
wg.Add(cpus)
|
386
|
386
|
for i := 0; i < cpus; i++ {
|
387
|
|
- slice := makeSlice(temp, i, cpus).(*image.RGBA)
|
|
387
|
+ slice := makeSlice(temp, i, cpus).(*image.NRGBA)
|
388
|
388
|
go func() {
|
389
|
389
|
defer wg.Done()
|
390
|
390
|
nearestNRGBA(input, slice, scaleX, coeffs, offset, filterLength)
|
|
@@ -396,7 +396,7 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
|
396
|
396
|
coeffs, offset, filterLength = createWeightsNearest(result.Bounds().Dy(), taps, blur, scaleY)
|
397
|
397
|
wg.Add(cpus)
|
398
|
398
|
for i := 0; i < cpus; i++ {
|
399
|
|
- slice := makeSlice(result, i, cpus).(*image.RGBA)
|
|
399
|
+ slice := makeSlice(result, i, cpus).(*image.NRGBA)
|
400
|
400
|
go func() {
|
401
|
401
|
defer wg.Done()
|
402
|
402
|
nearestNRGBA(temp, slice, scaleY, coeffs, offset, filterLength)
|
|
@@ -472,7 +472,7 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
|
472
|
472
|
coeffs, offset, filterLength := createWeightsNearest(temp.Bounds().Dy(), taps, blur, scaleX)
|
473
|
473
|
wg.Add(cpus)
|
474
|
474
|
for i := 0; i < cpus; i++ {
|
475
|
|
- slice := makeSlice(temp, i, cpus).(*image.RGBA64)
|
|
475
|
+ slice := makeSlice(temp, i, cpus).(*image.NRGBA64)
|
476
|
476
|
go func() {
|
477
|
477
|
defer wg.Done()
|
478
|
478
|
nearestNRGBA64(input, slice, scaleX, coeffs, offset, filterLength)
|
|
@@ -484,7 +484,7 @@ func resizeNearest(width, height uint, scaleX, scaleY float64, img image.Image,
|
484
|
484
|
coeffs, offset, filterLength = createWeightsNearest(result.Bounds().Dy(), taps, blur, scaleY)
|
485
|
485
|
wg.Add(cpus)
|
486
|
486
|
for i := 0; i < cpus; i++ {
|
487
|
|
- slice := makeSlice(result, i, cpus).(*image.RGBA64)
|
|
487
|
+ slice := makeSlice(result, i, cpus).(*image.NRGBA64)
|
488
|
488
|
go func() {
|
489
|
489
|
defer wg.Done()
|
490
|
490
|
nearestNRGBA64(temp, slice, scaleY, coeffs, offset, filterLength)
|