change paths
This commit is contained in:
parent
cd38e8056d
commit
c2f707aba7
|
@ -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 "golang.org/x/image/bmp"
|
||||
package bmp // import "git.gutmet.org/golang-image.git/bmp"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
// +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.
|
||||
|
||||
// Program webp-manual-test checks that the Go WEBP library's decodings match
|
||||
// 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 (
|
||||
"bytes"
|
||||
|
@ -25,7 +25,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/image/webp"
|
||||
"git.gutmet.org/golang-image.git/webp"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"math"
|
||||
"os"
|
||||
|
||||
"golang.org/x/image/draw"
|
||||
"golang.org/x/image/math/f64"
|
||||
"git.gutmet.org/golang-image.git/draw"
|
||||
"git.gutmet.org/golang-image.git/math/f64"
|
||||
)
|
||||
|
||||
func ExampleDraw() {
|
||||
|
|
|
@ -29,7 +29,7 @@ func main() {
|
|||
"\"image/color\"\n" +
|
||||
"\"math\"\n" +
|
||||
"\n" +
|
||||
"\"golang.org/x/image/math/f64\"\n" +
|
||||
"\"git.gutmet.org/golang-image.git/math/f64\"\n" +
|
||||
")\n")
|
||||
|
||||
gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf)
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"image/color"
|
||||
"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) {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"math"
|
||||
"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
|
||||
|
|
|
@ -16,7 +16,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/math/f64"
|
||||
"git.gutmet.org/golang-image.git/math/f64"
|
||||
|
||||
_ "image/jpeg"
|
||||
)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// +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
|
||||
// -tags=example" to install it.
|
||||
|
||||
|
@ -23,9 +23,9 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/plan9font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
//go:generate go run gen.go
|
||||
|
||||
// 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 (
|
||||
"image"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
// Range maps a contiguous range of runes to vertically adjacent sub-images of
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"image"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
)
|
||||
|
||||
func TestMetrics(t *testing.T) {
|
||||
|
|
|
@ -18,9 +18,9 @@ import (
|
|||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/plan9font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -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 "golang.org/x/image/font"
|
||||
package font // import "git.gutmet.org/golang-image.git/font"
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
@ -15,7 +15,7 @@ import (
|
|||
"io"
|
||||
"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)?
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
const toyAdvance = fixed.Int26_6(10 << 6)
|
||||
|
|
|
@ -5,7 +5,7 @@ package inconsolata
|
|||
import (
|
||||
"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.
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
//
|
||||
// Inconsolata's home page is at
|
||||
// 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 (
|
||||
"golang.org/x/image/font/basicfont"
|
||||
"git.gutmet.org/golang-image.git/font/basicfont"
|
||||
)
|
||||
|
||||
// Regular8x16 is a regular weight, 8x16 font face.
|
||||
|
|
|
@ -5,7 +5,7 @@ package inconsolata
|
|||
import (
|
||||
"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.
|
||||
|
|
|
@ -7,9 +7,9 @@ package opentype
|
|||
import (
|
||||
"image"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/sfnt"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/font/sfnt"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
// FaceOptions describes the possible options given to NewFace when
|
||||
|
|
|
@ -8,10 +8,10 @@ import (
|
|||
"image"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/gofont/goregular"
|
||||
"golang.org/x/image/font/sfnt"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"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"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
|
||||
// Package opentype implements the font.Face interface based on SFNT
|
||||
// font file formats.
|
||||
package opentype // import "golang.org/x/image/font/opentype"
|
||||
package opentype // import "git.gutmet.org/golang-image.git/font/opentype"
|
||||
|
|
|
@ -13,9 +13,9 @@ import (
|
|||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/plan9font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
func ExampleParseFont() {
|
||||
|
|
|
@ -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 "golang.org/x/image/font/plan9font"
|
||||
package plan9font // import "git.gutmet.org/golang-image.git/font/plan9font"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -17,8 +17,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
// fontchar describes one character glyph in a subfont.
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
)
|
||||
|
||||
func TestMetrics(t *testing.T) {
|
||||
|
|
|
@ -10,10 +10,10 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"golang.org/x/image/font/gofont/goregular"
|
||||
"golang.org/x/image/font/sfnt"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"golang.org/x/image/vector"
|
||||
"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"
|
||||
)
|
||||
|
||||
func Example_rasterizeGlyph() {
|
||||
|
|
|
@ -52,7 +52,7 @@ import (
|
|||
"math"
|
||||
"strconv"
|
||||
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -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 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
|
||||
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 golang.org/x/image/font/sfnt -args -proprietary \
|
||||
go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
|
||||
-adobeDir=$HOME/fonts/adobe \
|
||||
-appleDir=$HOME/fonts/apple \
|
||||
-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:
|
||||
|
||||
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?
|
||||
|
@ -42,8 +42,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
// Package sfnt implements a decoder for SFNT font file formats, including
|
||||
// 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
|
||||
// https://www.microsoft.com/en-us/Typography/OpenTypeSpecification.aspx
|
||||
|
@ -24,8 +24,8 @@ import (
|
|||
"image"
|
||||
"io"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/font"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
"golang.org/x/text/encoding/charmap"
|
||||
)
|
||||
|
||||
|
|
|
@ -12,11 +12,11 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/gofont/gobold"
|
||||
"golang.org/x/image/font/gofont/gomono"
|
||||
"golang.org/x/image/font/gofont/goregular"
|
||||
"golang.org/x/image/math/fixed"
|
||||
"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"
|
||||
)
|
||||
|
||||
func pt(x, y fixed.Int26_6) fixed.Point26_6 {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
package sfnt
|
||||
|
||||
import (
|
||||
"golang.org/x/image/math/fixed"
|
||||
"git.gutmet.org/golang-image.git/math/fixed"
|
||||
)
|
||||
|
||||
// Flags for simple (non-compound) glyphs.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// license that can be found in the LICENSE file.
|
||||
|
||||
// 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.
|
||||
type Vec2 [2]float32
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// license that can be found in the LICENSE file.
|
||||
|
||||
// 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.
|
||||
type Vec2 [2]float64
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// license that can be found in the LICENSE file.
|
||||
|
||||
// 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 (
|
||||
"fmt"
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"log"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/image/riff"
|
||||
"git.gutmet.org/golang-image.git/riff"
|
||||
)
|
||||
|
||||
func ExampleReader() {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
//
|
||||
// A detailed description of the format is at
|
||||
// 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 (
|
||||
"errors"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//
|
||||
// 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 "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
|
||||
|
|
|
@ -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 "golang.org/x/image/tiff"
|
||||
package tiff // import "git.gutmet.org/golang-image.git/tiff"
|
||||
|
||||
import (
|
||||
"compress/zlib"
|
||||
|
@ -17,7 +17,7 @@ import (
|
|||
"io/ioutil"
|
||||
"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.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// asmfmt is https://github.com/klauspost/asmfmt
|
||||
|
||||
// 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
|
||||
// https://medium.com/@raphlinus/inside-the-fastest-font-renderer-in-the-world-75ae5270c445
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Package vp8 implements a decoder for the VP8 lossy image format.
|
||||
//
|
||||
// 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.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//
|
||||
// The VP8L specification is at:
|
||||
// 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 (
|
||||
"bufio"
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"image/color"
|
||||
"io"
|
||||
|
||||
"golang.org/x/image/riff"
|
||||
"golang.org/x/image/vp8"
|
||||
"golang.org/x/image/vp8l"
|
||||
"git.gutmet.org/golang-image.git/riff"
|
||||
"git.gutmet.org/golang-image.git/vp8"
|
||||
"git.gutmet.org/golang-image.git/vp8l"
|
||||
)
|
||||
|
||||
var errInvalidFormat = errors.New("webp: invalid format")
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
//
|
||||
// WEBP is defined at:
|
||||
// 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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user