change paths

This commit is contained in:
Alexander Weinhold 2018-12-06 17:03:52 +01:00
parent cd38e8056d
commit c2f707aba7
40 changed files with 77 additions and 77 deletions

View File

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

View File

@ -4,12 +4,12 @@
// +build ignore // +build ignore
// //
// This build tag means that "go install golang.org/x/image/..." doesn't // This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
// install this manual test. Use "go run main.go" to explicitly run it. // 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 // Program webp-manual-test checks that the Go WEBP library's decodings match
// the C WEBP library's. // the C WEBP library's.
package main // import "golang.org/x/image/cmd/webp-manual-test" package main // import "git.gutmet.org/golang-image.git/cmd/webp-manual-test"
import ( import (
"bytes" "bytes"
@ -25,7 +25,7 @@ import (
"sort" "sort"
"strings" "strings"
"golang.org/x/image/webp" "git.gutmet.org/golang-image.git/webp"
) )
var ( var (

View File

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

View File

@ -29,7 +29,7 @@ func main() {
"\"image/color\"\n" + "\"image/color\"\n" +
"\"math\"\n" + "\"math\"\n" +
"\n" + "\n" +
"\"golang.org/x/image/math/f64\"\n" + "\"git.gutmet.org/golang-image.git/math/f64\"\n" +
")\n") ")\n")
gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf) gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf)

View File

@ -7,7 +7,7 @@ import (
"image/color" "image/color"
"math" "math"
"golang.org/x/image/math/f64" "git.gutmet.org/golang-image.git/math/f64"
) )
func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) { 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" "math"
"sync" "sync"
"golang.org/x/image/math/f64" "git.gutmet.org/golang-image.git/math/f64"
) )
// Copy copies the part of the source image defined by src and sr and writes // Copy copies the part of the source image defined by src and sr and writes

View File

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

View File

@ -4,7 +4,7 @@
// +build example // +build example
// //
// This build tag means that "go install golang.org/x/image/..." doesn't // This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
// install this example program. Use "go run main.go" to run it or "go install // install this example program. Use "go run main.go" to run it or "go install
// -tags=example" to install it. // -tags=example" to install it.
@ -23,9 +23,9 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"golang.org/x/image/font" "git.gutmet.org/golang-image.git/font"
"golang.org/x/image/font/plan9font" "git.gutmet.org/golang-image.git/font/plan9font"
"golang.org/x/image/math/fixed" "git.gutmet.org/golang-image.git/math/fixed"
) )
var ( var (

View File

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

View File

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

View File

@ -18,9 +18,9 @@ import (
"path" "path"
"path/filepath" "path/filepath"
"golang.org/x/image/font" "git.gutmet.org/golang-image.git/font"
"golang.org/x/image/font/plan9font" "git.gutmet.org/golang-image.git/font/plan9font"
"golang.org/x/image/math/fixed" "git.gutmet.org/golang-image.git/math/fixed"
) )
func main() { func main() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -52,7 +52,7 @@ import (
"math" "math"
"strconv" "strconv"
"golang.org/x/image/math/fixed" "git.gutmet.org/golang-image.git/math/fixed"
) )
const ( 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 available, but copies are not explicitly included in this repository due to
licensing differences or file size concerns. To opt-in, run: licensing differences or file size concerns. To opt-in, run:
go test golang.org/x/image/font/sfnt -args -proprietary go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary
Not all tests pass out-of-the-box on all systems. For example, the Microsoft 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 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 that such fonts have already been installed. You may need to specify the
directories for these fonts: directories for these fonts:
go test golang.org/x/image/font/sfnt -args -proprietary \ go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
-adobeDir=$HOME/fonts/adobe \ -adobeDir=$HOME/fonts/adobe \
-appleDir=$HOME/fonts/apple \ -appleDir=$HOME/fonts/apple \
-dejavuDir=$HOME/fonts/dejavu \ -dejavuDir=$HOME/fonts/dejavu \
@ -28,7 +28,7 @@ go test golang.org/x/image/font/sfnt -args -proprietary \
To only run those tests for the Microsoft fonts: To only run those tests for the Microsoft fonts:
go test golang.org/x/image/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc go test git.gutmet.org/golang-image.git/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc
*/ */
// TODO: enable Apple/Microsoft tests by default on Darwin/Windows? // TODO: enable Apple/Microsoft tests by default on Darwin/Windows?
@ -42,8 +42,8 @@ import (
"strings" "strings"
"testing" "testing"
"golang.org/x/image/font" "git.gutmet.org/golang-image.git/font"
"golang.org/x/image/math/fixed" "git.gutmet.org/golang-image.git/math/fixed"
) )
var ( var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@
// //
// In particular, it implements LZW as used by the TIFF file format, including // In particular, it implements LZW as used by the TIFF file format, including
// an "off by one" algorithmic difference when compared to standard LZW. // an "off by one" algorithmic difference when compared to standard LZW.
package lzw // import "golang.org/x/image/tiff/lzw" package lzw // import "git.gutmet.org/golang-image.git/tiff/lzw"
/* /*
This file was branched from src/pkg/compress/lzw/reader.go in the 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. // Package tiff implements a TIFF image decoder and encoder.
// //
// The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf // The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
package tiff // import "golang.org/x/image/tiff" package tiff // import "git.gutmet.org/golang-image.git/tiff"
import ( import (
"compress/zlib" "compress/zlib"
@ -17,7 +17,7 @@ import (
"io/ioutil" "io/ioutil"
"math" "math"
"golang.org/x/image/tiff/lzw" "git.gutmet.org/golang-image.git/tiff/lzw"
) )
// A FormatError reports that the input is not a valid TIFF image. // 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 // asmfmt is https://github.com/klauspost/asmfmt
// Package vector provides a rasterizer for 2-D vector graphics. // Package vector provides a rasterizer for 2-D vector graphics.
package vector // import "golang.org/x/image/vector" package vector // import "git.gutmet.org/golang-image.git/vector"
// The rasterizer's design follows // The rasterizer's design follows
// https://medium.com/@raphlinus/inside-the-fastest-font-renderer-in-the-world-75ae5270c445 // 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. // Package vp8 implements a decoder for the VP8 lossy image format.
// //
// The VP8 specification is RFC 6386. // The VP8 specification is RFC 6386.
package vp8 // import "golang.org/x/image/vp8" package vp8 // import "git.gutmet.org/golang-image.git/vp8"
// This file implements the top-level decoding algorithm. // This file implements the top-level decoding algorithm.

View File

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

View File

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

View File

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