fix paths from git.gutmet.org to git.fireandbrimst.one/aw

master v2.0.1
gutmet 2023-09-21 21:38:15 +02:00
parent c2f707aba7
commit a594737139
40 changed files with 93 additions and 87 deletions

View File

@ -5,7 +5,7 @@
// Package bmp implements a BMP image decoder and encoder.
//
// The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
package bmp // import "git.gutmet.org/golang-image.git/bmp"
package bmp // import "git.fireandbrimst.one/aw/golang-image/bmp"
import (
"errors"

View File

@ -2,14 +2,16 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
//
// This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
// This build tag means that "go install git.fireandbrimst.one/aw/golang-image/..." doesn't
// install this manual test. Use "go run main.go" to explicitly run it.
// Program webp-manual-test checks that the Go WEBP library's decodings match
// the C WEBP library's.
package main // import "git.gutmet.org/golang-image.git/cmd/webp-manual-test"
package main // import "git.fireandbrimst.one/aw/golang-image/cmd/webp-manual-test"
import (
"bytes"
@ -25,7 +27,7 @@ import (
"sort"
"strings"
"git.gutmet.org/golang-image.git/webp"
"git.fireandbrimst.one/aw/golang-image/webp"
)
var (

View File

@ -13,8 +13,8 @@ import (
"math"
"os"
"git.gutmet.org/golang-image.git/draw"
"git.gutmet.org/golang-image.git/math/f64"
"git.fireandbrimst.one/aw/golang-image/draw"
"git.fireandbrimst.one/aw/golang-image/math/f64"
)
func ExampleDraw() {

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
package main
@ -29,7 +30,7 @@ func main() {
"\"image/color\"\n" +
"\"math\"\n" +
"\n" +
"\"git.gutmet.org/golang-image.git/math/f64\"\n" +
"\"git.fireandbrimst.one/aw/golang-image/math/f64\"\n" +
")\n")
gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf)

View File

@ -7,7 +7,7 @@ import (
"image/color"
"math"
"git.gutmet.org/golang-image.git/math/f64"
"git.fireandbrimst.one/aw/golang-image/math/f64"
)
func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) {

View File

@ -12,7 +12,7 @@ import (
"math"
"sync"
"git.gutmet.org/golang-image.git/math/f64"
"git.fireandbrimst.one/aw/golang-image/math/f64"
)
// Copy copies the part of the source image defined by src and sr and writes
@ -46,8 +46,8 @@ type Scaler interface {
//
// For example, if m is the matrix
//
// m00 m01 m02
// m10 m11 m12
// m00 m01 m02
// m10 m11 m12
//
// then the src-space point (sx, sy) maps to the dst-space point
// (m00*sx + m01*sy + m02, m10*sx + m11*sy + m12).
@ -98,9 +98,9 @@ type Options struct {
// have a 1:1 correspondence.
//
// Of the interpolators provided by this package:
// - NearestNeighbor is fast but usually looks worst.
// - CatmullRom is slow but usually looks best.
// - ApproxBiLinear has reasonable speed and quality.
// - NearestNeighbor is fast but usually looks worst.
// - CatmullRom is slow but usually looks best.
// - ApproxBiLinear has reasonable speed and quality.
//
// The time taken depends on the size of dr. For kernel interpolators, the
// speed also depends on the size of sr, and so are often slower than

View File

@ -16,7 +16,7 @@ import (
"reflect"
"testing"
"git.gutmet.org/golang-image.git/math/f64"
"git.fireandbrimst.one/aw/golang-image/math/f64"
_ "image/jpeg"
)

View File

@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build example
// +build example
//
// This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
// This build tag means that "go install git.fireandbrimst.one/aw/golang-image/..." doesn't
// install this example program. Use "go run main.go" to run it or "go install
// -tags=example" to install it.
@ -23,9 +25,9 @@ import (
"path/filepath"
"strings"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/plan9font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
var (

View File

@ -5,13 +5,13 @@
//go:generate go run gen.go
// Package basicfont provides fixed-size font faces.
package basicfont // import "git.gutmet.org/golang-image.git/font/basicfont"
package basicfont // import "git.fireandbrimst.one/aw/golang-image/font/basicfont"
import (
"image"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// Range maps a contiguous range of runes to vertically adjacent sub-images of

View File

@ -8,7 +8,7 @@ import (
"image"
"testing"
"git.gutmet.org/golang-image.git/font"
"git.fireandbrimst.one/aw/golang-image/font"
)
func TestMetrics(t *testing.T) {

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build ignore
// +build ignore
// This program generates data.go.
@ -18,9 +19,9 @@ import (
"path"
"path/filepath"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/plan9font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
func main() {

View File

@ -7,7 +7,7 @@
//
// Other packages provide font face implementations. For example, a truetype
// package would provide one based on .ttf font files.
package font // import "git.gutmet.org/golang-image.git/font"
package font // import "git.fireandbrimst.one/aw/golang-image/font"
import (
"image"
@ -15,7 +15,7 @@ import (
"io"
"unicode/utf8"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// TODO: who is responsible for caches (glyph images, glyph indices, kerns)?

View File

@ -9,7 +9,7 @@ import (
"strings"
"testing"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
const toyAdvance = fixed.Int26_6(10 << 6)

View File

@ -5,7 +5,7 @@ package inconsolata
import (
"image"
"git.gutmet.org/golang-image.git/font/basicfont"
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
)
// bold8x16 contains 289 10×17 glyphs in 49130 Pix bytes.

View File

@ -16,10 +16,10 @@
//
// Inconsolata's home page is at
// http://www.levien.com/type/myfonts/inconsolata.html
package inconsolata // import "git.gutmet.org/golang-image.git/font/inconsolata"
package inconsolata // import "git.fireandbrimst.one/aw/golang-image/font/inconsolata"
import (
"git.gutmet.org/golang-image.git/font/basicfont"
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
)
// Regular8x16 is a regular weight, 8x16 font face.

View File

@ -5,7 +5,7 @@ package inconsolata
import (
"image"
"git.gutmet.org/golang-image.git/font/basicfont"
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
)
// regular8x16 contains 289 9×17 glyphs in 44217 Pix bytes.

View File

@ -7,9 +7,9 @@ package opentype
import (
"image"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/sfnt"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// FaceOptions describes the possible options given to NewFace when

View File

@ -8,10 +8,10 @@ import (
"image"
"testing"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/gofont/goregular"
"git.gutmet.org/golang-image.git/font/sfnt"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
var (

View File

@ -4,4 +4,4 @@
// Package opentype implements the font.Face interface based on SFNT
// font file formats.
package opentype // import "git.gutmet.org/golang-image.git/font/opentype"
package opentype // import "git.fireandbrimst.one/aw/golang-image/font/opentype"

View File

@ -13,9 +13,9 @@ import (
"path"
"path/filepath"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/plan9font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
func ExampleParseFont() {

View File

@ -5,7 +5,7 @@
// Package plan9font implements font faces for the Plan 9 font and subfont file
// formats. These formats are described at
// http://plan9.bell-labs.com/magic/man2html/6/font
package plan9font // import "git.gutmet.org/golang-image.git/font/plan9font"
package plan9font // import "git.fireandbrimst.one/aw/golang-image/font/plan9font"
import (
"bytes"
@ -17,8 +17,8 @@ import (
"strconv"
"strings"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// fontchar describes one character glyph in a subfont.

View File

@ -11,7 +11,7 @@ import (
"path/filepath"
"testing"
"git.gutmet.org/golang-image.git/font"
"git.fireandbrimst.one/aw/golang-image/font"
)
func TestMetrics(t *testing.T) {

View File

@ -10,10 +10,10 @@ import (
"log"
"os"
"git.gutmet.org/golang-image.git/font/gofont/goregular"
"git.gutmet.org/golang-image.git/font/sfnt"
"git.gutmet.org/golang-image.git/math/fixed"
"git.gutmet.org/golang-image.git/vector"
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
"git.fireandbrimst.one/aw/golang-image/vector"
)
func Example_rasterizeGlyph() {

View File

@ -52,7 +52,7 @@ import (
"math"
"strconv"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
const (

View File

@ -10,7 +10,7 @@ made by companies such as Adobe and Microsoft. These fonts are generally
available, but copies are not explicitly included in this repository due to
licensing differences or file size concerns. To opt-in, run:
go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -args -proprietary
Not all tests pass out-of-the-box on all systems. For example, the Microsoft
Times New Roman font is downloadable gratis even on non-Windows systems, but as
@ -19,7 +19,7 @@ End User License Agreement (EULA) and a CAB format decoder. These tests assume
that such fonts have already been installed. You may need to specify the
directories for these fonts:
go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -args -proprietary \
-adobeDir=$HOME/fonts/adobe \
-appleDir=$HOME/fonts/apple \
-dejavuDir=$HOME/fonts/dejavu \
@ -28,7 +28,7 @@ go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
To only run those tests for the Microsoft fonts:
go test git.gutmet.org/golang-image.git/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc
*/
// TODO: enable Apple/Microsoft tests by default on Darwin/Windows?
@ -42,8 +42,8 @@ import (
"strings"
"testing"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
var (
@ -573,9 +573,9 @@ var proprietaryGlyphIndexTestCases = map[string]map[rune]GlyphIndex{
// proprietaryGlyphTestCases hold a sample of each font's glyph vectors. The
// numerical values can be verified by running the ttx tool, remembering that:
// - for PostScript glyphs, ttx coordinates are relative.
// - for TrueType glyphs, ttx coordinates are absolute, and consecutive
// off-curve points implies an on-curve point at the midpoint.
// - for PostScript glyphs, ttx coordinates are relative.
// - for TrueType glyphs, ttx coordinates are absolute, and consecutive
// off-curve points implies an on-curve point at the midpoint.
var proprietaryGlyphTestCases = map[string]map[rune][]Segment{
"adobe/SourceHanSansSC-Regular.otf": {
'!': {

View File

@ -6,7 +6,7 @@
// Package sfnt implements a decoder for SFNT font file formats, including
// TrueType and OpenType.
package sfnt // import "git.gutmet.org/golang-image.git/font/sfnt"
package sfnt // import "git.fireandbrimst.one/aw/golang-image/font/sfnt"
// This implementation was written primarily to the
// https://www.microsoft.com/en-us/Typography/OpenTypeSpecification.aspx
@ -24,8 +24,8 @@ import (
"image"
"io"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
"golang.org/x/text/encoding/charmap"
)

View File

@ -12,11 +12,11 @@ import (
"path/filepath"
"testing"
"git.gutmet.org/golang-image.git/font"
"git.gutmet.org/golang-image.git/font/gofont/gobold"
"git.gutmet.org/golang-image.git/font/gofont/gomono"
"git.gutmet.org/golang-image.git/font/gofont/goregular"
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/font"
"git.fireandbrimst.one/aw/golang-image/font/gofont/gobold"
"git.fireandbrimst.one/aw/golang-image/font/gofont/gomono"
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
func pt(x, y fixed.Int26_6) fixed.Point26_6 {

View File

@ -5,7 +5,7 @@
package sfnt
import (
"git.gutmet.org/golang-image.git/math/fixed"
"git.fireandbrimst.one/aw/golang-image/math/fixed"
)
// Flags for simple (non-compound) glyphs.

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package f32 implements float32 vector and matrix types.
package f32 // import "git.gutmet.org/golang-image.git/math/f32"
package f32 // import "git.fireandbrimst.one/aw/golang-image/math/f32"
// Vec2 is a 2-element vector.
type Vec2 [2]float32

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package f64 implements float64 vector and matrix types.
package f64 // import "git.gutmet.org/golang-image.git/math/f64"
package f64 // import "git.fireandbrimst.one/aw/golang-image/math/f64"
// Vec2 is a 2-element vector.
type Vec2 [2]float64

View File

@ -3,7 +3,7 @@
// license that can be found in the LICENSE file.
// Package fixed implements fixed-point integer types.
package fixed // import "git.gutmet.org/golang-image.git/math/fixed"
package fixed // import "git.fireandbrimst.one/aw/golang-image/math/fixed"
import (
"fmt"

View File

@ -11,7 +11,7 @@ import (
"log"
"strings"
"git.gutmet.org/golang-image.git/riff"
"git.fireandbrimst.one/aw/golang-image/riff"
)
func ExampleReader() {

View File

@ -11,7 +11,7 @@
//
// A detailed description of the format is at
// http://www.tactilemedia.com/info/MCI_Control_Info.html
package riff // import "git.gutmet.org/golang-image.git/riff"
package riff // import "git.fireandbrimst.one/aw/golang-image/riff"
import (
"errors"

View File

@ -3,12 +3,12 @@
// license that can be found in the LICENSE file.
// Package lzw implements the Lempel-Ziv-Welch compressed data format,
// described in T. A. Welch, ``A Technique for High-Performance Data
// Compression'', Computer, 17(6) (June 1984), pp 8-19.
// described in T. A. Welch, A Technique for High-Performance Data
// Compression, Computer, 17(6) (June 1984), pp 8-19.
//
// In particular, it implements LZW as used by the TIFF file format, including
// an "off by one" algorithmic difference when compared to standard LZW.
package lzw // import "git.gutmet.org/golang-image.git/tiff/lzw"
package lzw // import "git.fireandbrimst.one/aw/golang-image/tiff/lzw"
/*
This file was branched from src/pkg/compress/lzw/reader.go in the

View File

@ -5,7 +5,7 @@
// Package tiff implements a TIFF image decoder and encoder.
//
// The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
package tiff // import "git.gutmet.org/golang-image.git/tiff"
package tiff // import "git.fireandbrimst.one/aw/golang-image/tiff"
import (
"compress/zlib"
@ -17,7 +17,7 @@ import (
"io/ioutil"
"math"
"git.gutmet.org/golang-image.git/tiff/lzw"
"git.fireandbrimst.one/aw/golang-image/tiff/lzw"
)
// A FormatError reports that the input is not a valid TIFF image.

View File

@ -8,7 +8,7 @@
// asmfmt is https://github.com/klauspost/asmfmt
// Package vector provides a rasterizer for 2-D vector graphics.
package vector // import "git.gutmet.org/golang-image.git/vector"
package vector // import "git.fireandbrimst.one/aw/golang-image/vector"
// The rasterizer's design follows
// https://medium.com/@raphlinus/inside-the-fastest-font-renderer-in-the-world-75ae5270c445

View File

@ -5,7 +5,7 @@
// Package vp8 implements a decoder for the VP8 lossy image format.
//
// The VP8 specification is RFC 6386.
package vp8 // import "git.gutmet.org/golang-image.git/vp8"
package vp8 // import "git.fireandbrimst.one/aw/golang-image/vp8"
// This file implements the top-level decoding algorithm.

View File

@ -6,7 +6,7 @@
//
// The VP8L specification is at:
// https://developers.google.com/speed/webp/docs/riff_container
package vp8l // import "git.gutmet.org/golang-image.git/vp8l"
package vp8l // import "git.fireandbrimst.one/aw/golang-image/vp8l"
import (
"bufio"

View File

@ -11,9 +11,9 @@ import (
"image/color"
"io"
"git.gutmet.org/golang-image.git/riff"
"git.gutmet.org/golang-image.git/vp8"
"git.gutmet.org/golang-image.git/vp8l"
"git.fireandbrimst.one/aw/golang-image/riff"
"git.fireandbrimst.one/aw/golang-image/vp8"
"git.fireandbrimst.one/aw/golang-image/vp8l"
)
var errInvalidFormat = errors.New("webp: invalid format")

View File

@ -6,4 +6,4 @@
//
// WEBP is defined at:
// https://developers.google.com/speed/webp/docs/riff_container
package webp // import "git.gutmet.org/golang-image.git/webp"
package webp // import "git.fireandbrimst.one/aw/golang-image/webp"