summaryrefslogtreecommitdiff
path: root/src/pkg/image
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg10-32/+66
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg17-96/+1591
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg7-62/+323
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg38-418/+1595
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý48-2101/+1549
2011-10-06Imported Upstream version 60.2upstream/60.2Ondřej Surý2-4/+7
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý88-0/+9233
2011-09-13Imported Upstream version 60Ondřej Surý85-8812/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý5-79/+204
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý31-306/+3111
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý6-23/+186
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý9-78/+886
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý7-9/+255
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý21-187/+543
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý13-353/+1118
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox1-2/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-1/+2
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev http://codereview.appspot.com/1736041
2010-06-16image: add an Alpha16 type, for completeness.Nigel Tao2-0/+69
R=rsc CC=golang-dev, rog http://codereview.appspot.com/1707042
2010-06-03Add Opaque method to the image types.Nigel Tao2-0/+102
R=rsc CC=golang-dev http://codereview.appspot.com/1533041
2010-05-28Make image.Color.RGBA return 16 bit color instead of 32 bit color.Nigel Tao4-69/+39
R=rsc CC=golang-dev http://codereview.appspot.com/1388041
2010-05-23When making images, allocate one big buffer instead of many small ones.Nigel Tao1-24/+30
R=rsc, r CC=golang-dev http://codereview.appspot.com/1267041
2010-05-07compress: renamings.Rob Pike2-3/+3
NewDeflater -> NewWriter NewInflater -> NewReader Deflater -> Compressor Inflater -> Decompressor R=rsc CC=golang-dev http://codereview.appspot.com/1166041
2010-03-15image/jpeg: fix typosRobert Griesemer1-3/+3
Fixes issue 665. R=nigeltao, nigeltao_golang CC=golang-dev http://codereview.appspot.com/570041
2010-02-04Add named colors (e.g. image.Blue), suitable for exp/draw.Nigel Tao2-0/+51
R=r, rsc CC=golang-dev http://codereview.appspot.com/198066
2010-02-02New image.A type, to represent anti-aliased font glyphs.Nigel Tao2-0/+53
R=r, rsc CC=golang-dev http://codereview.appspot.com/199052
2009-12-29PNG decoder now handles transparent paletted images.Nigel Tao1-0/+32
Fixes issue 439. R=r CC=golang-dev http://codereview.appspot.com/181087
2009-12-29JPEG decoder now handles RST (restart) markers.Nigel Tao1-0/+42
R=r CC=golang-dev http://codereview.appspot.com/181075
2009-12-17Basic image/jpeg decoder.Nigel Tao4-0/+785
This is not a complete JPEG implementation (e.g. it does not handle progressive JPEGs or restart markers), but I was able to take a photo with my phone, and view the resultant JPEG in pure Go. The decoder is simple, but slow. The Huffman decoder in particular should be easily improvable, but optimization is left to future changelists. Being able to inline functions in the inner loop should also help performance. The output is not pixel-for-pixel identical to libjpeg, although identical behavior isn't necessarily a goal, since JPEG is a lossy codec. There are at least two reasons for the discrepancy. First, the inverse DCT algorithm used is the same as Plan9's src/cmd/jpg, which has different rounding errors from libjpeg's default IDCT implementation. Note that libjpeg actually has three different IDCT implementations: one floating point, and two fixed point. Out of those four, Plan9's seemed the simplest to understand, partly because it has no #ifdef's or C macros. Second, for 4:2:2 or 4:2:0 chroma sampling, this implementation does nearest neighbor upsampling, compared to libjpeg's triangle filter (e.g. see h2v1_fancy_upsample in jdsample.c). The difference from the first reason is typically zero, but sometimes 1 (out of 256) in YCbCr space, or double that in RGB space. The difference from the second reason can be as large as 8/256 in YCbCr space, in regions of steep chroma gradients. Informal eyeballing suggests that the net difference is typically imperceptible, though. R=r CC=golang-dev, rsc http://codereview.appspot.com/164056
2009-12-151) Change default gofmt default settings forRobert Griesemer6-482/+482
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia2-4/+4
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox2-8/+8
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-13Remove unnecessary int(h) casts in image.go.Nigel Tao1-5/+5
R=rsc http://codereview.appspot.com/154125 Committer: Russ Cox <rsc@golang.org>
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer5-80/+80
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer6-108/+108
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer3-69/+23
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-04gofmt-ify imageRobert Griesemer2-16/+16
R=rsc http://go/go-review/1017044
2009-10-27files that are okay from the last gofmt roundRuss Cox1-1/+1
R=gri http://go/go-review/1015011
2009-10-13Documentation for png.Decode and png.Encode.Nigel Tao2-2/+7
R=r,rsc APPROVED=r DELTA=7 (5 added, 0 deleted, 2 changed) OCL=35651 CL=35692
2009-10-11PNG encoder now filters.Nigel Tao2-20/+122
R=r,rsc APPROVED=r DELTA=122 (102 added, 0 deleted, 20 changed) OCL=35573 CL=35587
2009-10-09In the PNG reader inner loop, collapse the two ReadFull calls into one.Nigel Tao2-24/+22
R=rsc,r APPROVED=rsc DELTA=29 (2 added, 4 deleted, 23 changed) OCL=35460 CL=35565
2009-10-08more lgtm files from gofmtRuss Cox1-1/+1
R=gri OCL=35485 CL=35488
2009-10-07PNG encoder unit test.Nigel Tao2-7/+78
R=rsc,r APPROVED=r DELTA=84 (77 added, 6 deleted, 1 changed) OCL=35456 CL=35458
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox4-94/+90
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
2009-10-05First cut at a PNG encoder.Nigel Tao3-22/+270
TODOs include filtering, and a unit test. R=rsc APPROVED=r DELTA=280 (249 added, 1 deleted, 30 changed) OCL=35262 CL=35348
2009-09-21add required conversions; bug in compiler let it slip throughRuss Cox1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=34860 CL=34864
2009-09-20Unit tests for image/png, based off the semi-official pngsuite fromNigel Tao34-0/+1160
libpng.org. R=rsc APPROVED=r DELTA=1176 (1175 added, 1 deleted, 0 changed) OCL=34727 CL=34838
2009-09-15more "declared and not used".Russ Cox2-4/+4
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-13When decoding a paletted PNG, require that a PLTE chunk is seen beforeNigel Tao1-5/+7
the first IDAT chunk. R=rsc APPROVED=rsc DELTA=7 (2 added, 0 deleted, 5 changed) OCL=34583 CL=34585
2009-09-10PNG decoder for go.Nigel Tao4-7/+663
R=rsc APPROVED=r DELTA=694 (675 added, 3 deleted, 16 changed) OCL=34427 CL=34554
2009-08-26Introduce the image package.Nigel Tao3-0/+242
R=rsc APPROVED=r,rsc DELTA=244 (244 added, 0 deleted, 0 changed) OCL=33733 CL=33940