[mirror] Go supplementary image libraries
Перейти к файлу
Nigel Tao cd38e8056d font/sfnt: make PostTable.ItalicAngle a float64
Previously, it was a float32, which obviously has 32 bits of state. Not
all of that 32 bit state space is meaningful, since NaN has multiple bit
representations. The underlying file format field (of type "Fixed" or
16.16 fixed point) is also 32 bits of state
(https://docs.microsoft.com/en-us/typography/opentype/spec/post).
Therefore, converting from 32 bit fixed point to 32 bit floating point
can be lossy. Instead, use 64 bit floating point. 53 significand bits
can losslessly represent all possible 16.16 fixed point values.

Using float64 is also arguably more Go-like, as the default type for the
ideal constant 0.5 is float64, not float32.

Change-Id: I5abe7979a020af2ac4784d6c2723ab8e39e38e34
Reviewed-on: https://go-review.googlesource.com/c/149837
Reviewed-by: Denys Smirnov <denis.smirnov.91@gmail.com>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2018-11-16 02:48:01 +00:00
bmp bmp: update comment about decoding 32 bpp images 2018-10-23 23:21:08 +00:00
cmd/webp-manual-test webp: fix tests for webp/nycbcra deprecation. 2016-04-02 01:02:22 +00:00
colornames colornames: update SVG 1.1 spec URL 2018-11-08 20:49:13 +00:00
draw draw: re-enable the image.Rectangle DstMask fast path 2018-11-09 23:22:46 +00:00
example/font example/font: use an "example" build tag instead of "ignore". 2016-04-12 11:14:18 +00:00
font font/sfnt: make PostTable.ItalicAngle a float64 2018-11-16 02:48:01 +00:00
math math/fixed: add some Point and Rectangle methods. 2017-01-06 00:18:22 +00:00
riff riff: fix some short chunk data bugs. 2016-07-07 05:37:58 +00:00
testdata image/bmp: support v4 and v5 info header versions 2018-10-23 22:58:01 +00:00
tiff all: fix typos 2018-10-30 00:21:51 +00:00
vector vector: use asm opcode mnemonics 2018-11-15 02:24:11 +00:00
vp8 all: fix typos 2018-10-30 00:21:51 +00:00
vp8l vp8l: don't ignore I/O errors when reading LZ77 parameters. 2015-05-11 04:53:56 +00:00
webp webp: remove Go 1.8 support 2018-11-08 21:37:21 +00:00
.gitattributes image: copying .gitattributes to all subrepositories 2014-12-23 11:05:35 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 10:42:30 +11:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
CONTRIBUTING.md CONTRIBUTING.md: remove note about not accepting Pull Requests 2018-03-14 18:02:48 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:31 +11:00
PATENTS go.image: add PATENTS file to the subrepo. 2012-04-16 11:25:02 +10:00
README.md README: fix go get instructions 2018-06-01 11:54:56 +00:00
codereview.cfg image: add codereview.cfg 2015-03-18 17:04:05 +00:00

README.md

Go Images

This repository holds supplementary Go image libraries.

Download/Install

The easiest way to install is to run go get -u golang.org/x/image/.... You can also manually git clone the repository to $GOPATH/src/golang.org/x/image.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the image repository is located at https://github.com/golang/go/issues. Prefix your issue with "x/image:" in the subject line, so it is easy to find.