go/src
Nigel Tao ab2ea94c60 image: change the YCbCr image's pixel buffers to start at Rect.Min
instead of the origin.

This makes YCbCr match the other image types (e.g. RGBA, Gray) in
that an image's bounds is not restricted to the positive quadrant.

Also optimize the YCbCr draw code by hoisting some computation
outside of the loop.

benchmark              old ns/op    new ns/op    delta
draw.BenchmarkYCbCr      2544418      2373558   -6.72%

Like https://golang.org/cl/4681044/ I don't think a gofix is
feasible. People will have to make manual changes. On the other hand,
directly manipulating YCbCr images is relatively rare, compared to
RGBA images, and if other code just uses the jpeg and draw packages
instead of messing directly with a YCbCr's []byte representations,
then things should just continue to work.

R=r
CC=golang-dev
https://golang.org/cl/5558048
2012-01-20 10:44:22 +11:00
..
buildscript utf8.String: move to exp/utf8string.String 2012-01-17 14:21:50 -08:00
cmd crypto/hmac: Deprecate hmac.NewMD5, hmac.NewSHA1 and hmac.NewSHA256 2012-01-19 17:28:38 -05:00
lib9 lib9: fix windows build 2011-11-07 14:16:00 -05:00
libbio
libmach os: OS-dependent bits to support NetBSD. 2011-12-15 12:19:19 -05:00
pkg image: change the YCbCr image's pixel buffers to start at Rect.Min 2012-01-20 10:44:22 +11:00
Make.ccmd
Make.clib
Make.cmd build: pass $GCFLAGS to compiler 2011-10-18 14:55:10 -04:00
Make.common
Make.inc ld: allow for IMAGE_REL_AMD64_ADDR32NB relocation type 2011-12-16 10:32:14 +11:00
Make.pkg fix build 2012-01-12 15:27:49 -08:00
all-qemu.bash build: update all-qemu.bash 2011-07-28 13:04:30 -04:00
all.bash
buildinfo.sh build: fix build 2011-12-20 17:00:52 -05:00
buildscript.sh buildscripts: move to buildscript directory 2012-01-17 11:18:15 -05:00
clean.bash test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
env.bash build: use go command during build 2011-12-20 16:50:13 -05:00
make.bash doc: update out-of-date comments about runtime/cgo 2012-01-19 17:13:33 -05:00
quietgcc.bash build: handle spaces in $USER 2011-07-28 13:04:52 -04:00
run.bash cmd/go: add -v flag to build and install 2012-01-09 16:44:01 -08:00
sudo.bash sudo.bash: print error/exit if problem with /usr/local/bin 2011-09-01 17:24:32 +10:00
version.bash version.bash: update VERSION on -save if already present 2011-08-24 22:10:25 -03:00