Skip to content

Commit

Permalink
Drop a bunch of unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 6, 2025
1 parent e876ca7 commit 218b1ac
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
18 changes: 9 additions & 9 deletions converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func clampUint16(in int64) uint16 {
return 0
}

func resizeGeneric(in image.Image, out *image.RGBA64, scale float64, coeffs []int32, offset []int, filterLength int) {
func resizeGeneric(in image.Image, out *image.RGBA64, coeffs []int32, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -92,7 +92,7 @@ func resizeGeneric(in image.Image, out *image.RGBA64, scale float64, coeffs []in
}
}

func resizeRGBA(in *image.RGBA, out *image.RGBA, scale float64, coeffs []int16, offset []int, filterLength int) {
func resizeRGBA(in *image.RGBA, out *image.RGBA, coeffs []int16, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -134,7 +134,7 @@ func resizeRGBA(in *image.RGBA, out *image.RGBA, scale float64, coeffs []int16,
}
}

func resizeNRGBA(in *image.NRGBA, out *image.RGBA, scale float64, coeffs []int16, offset []int, filterLength int) {
func resizeNRGBA(in *image.NRGBA, out *image.RGBA, coeffs []int16, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -185,7 +185,7 @@ func resizeNRGBA(in *image.NRGBA, out *image.RGBA, scale float64, coeffs []int16
}
}

func resizeRGBA64(in *image.RGBA64, out *image.RGBA64, scale float64, coeffs []int32, offset []int, filterLength int) {
func resizeRGBA64(in *image.RGBA64, out *image.RGBA64, coeffs []int32, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -235,7 +235,7 @@ func resizeRGBA64(in *image.RGBA64, out *image.RGBA64, scale float64, coeffs []i
}
}

func resizeNRGBA64(in *image.NRGBA64, out *image.RGBA64, scale float64, coeffs []int32, offset []int, filterLength int) {
func resizeNRGBA64(in *image.NRGBA64, out *image.RGBA64, coeffs []int32, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -294,7 +294,7 @@ func resizeNRGBA64(in *image.NRGBA64, out *image.RGBA64, scale float64, coeffs [
}
}

func resizeGray(in *image.Gray, out *image.Gray, scale float64, coeffs []int16, offset []int, filterLength int) {
func resizeGray(in *image.Gray, out *image.Gray, coeffs []int16, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -326,7 +326,7 @@ func resizeGray(in *image.Gray, out *image.Gray, scale float64, coeffs []int16,
}
}

func resizeGray16(in *image.Gray16, out *image.Gray16, scale float64, coeffs []int32, offset []int, filterLength int) {
func resizeGray16(in *image.Gray16, out *image.Gray16, coeffs []int32, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -362,7 +362,7 @@ func resizeGray16(in *image.Gray16, out *image.Gray16, scale float64, coeffs []i
}
}

func resizeYCbCr(in *ycc, out *ycc, scale float64, coeffs []int16, offset []int, filterLength int) {
func resizeYCbCr(in *ycc, out *ycc, coeffs []int16, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -400,7 +400,7 @@ func resizeYCbCr(in *ycc, out *ycc, scale float64, coeffs []int16, offset []int,
}
}

func nearestYCbCr(in *ycc, out *ycc, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestYCbCr(in *ycc, out *ycc, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down
14 changes: 7 additions & 7 deletions nearest.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func floatToUint16(x float32) uint16 {
return uint16(x)
}

func nearestGeneric(in image.Image, out *image.RGBA64, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestGeneric(in image.Image, out *image.RGBA64, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -79,7 +79,7 @@ func nearestGeneric(in image.Image, out *image.RGBA64, scale float64, coeffs []b
}
}

func nearestRGBA(in *image.RGBA, out *image.RGBA, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestRGBA(in *image.RGBA, out *image.RGBA, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -118,7 +118,7 @@ func nearestRGBA(in *image.RGBA, out *image.RGBA, scale float64, coeffs []bool,
}
}

func nearestNRGBA(in *image.NRGBA, out *image.NRGBA, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestNRGBA(in *image.NRGBA, out *image.NRGBA, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -157,7 +157,7 @@ func nearestNRGBA(in *image.NRGBA, out *image.NRGBA, scale float64, coeffs []boo
}
}

func nearestRGBA64(in *image.RGBA64, out *image.RGBA64, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestRGBA64(in *image.RGBA64, out *image.RGBA64, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -204,7 +204,7 @@ func nearestRGBA64(in *image.RGBA64, out *image.RGBA64, scale float64, coeffs []
}
}

func nearestNRGBA64(in *image.NRGBA64, out *image.NRGBA64, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestNRGBA64(in *image.NRGBA64, out *image.NRGBA64, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -251,7 +251,7 @@ func nearestNRGBA64(in *image.NRGBA64, out *image.NRGBA64, scale float64, coeffs
}
}

func nearestGray(in *image.Gray, out *image.Gray, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestGray(in *image.Gray, out *image.Gray, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down Expand Up @@ -282,7 +282,7 @@ func nearestGray(in *image.Gray, out *image.Gray, scale float64, coeffs []bool,
}
}

func nearestGray16(in *image.Gray16, out *image.Gray16, scale float64, coeffs []bool, offset []int, filterLength int) {
func nearestGray16(in *image.Gray16, out *image.Gray16, coeffs []bool, offset []int, filterLength int) {
newBounds := out.Bounds()
maxX := in.Bounds().Dx() - 1

Expand Down
Loading

0 comments on commit 218b1ac

Please sign in to comment.