The testdata was generated via: cwebp foo.png -o foo.lossy.webp dwebp -pgm foo.lossy.webp -o tmp.pgm convert tmp.pgm foo.lossy.webp.ycbcr.png rm tmp.pgm TBR=r R=r CC=golang-codereviews https://golang.org/cl/107330043
The blue-purple-pink image comes from http://blog.golang.org/gophercon The tux and yellow_rose images come from https://developers.google.com/speed/webp/gallery2 and according to that page, those images are in the public domain. The gopher-doc images are http://golang.org/doc/gopher/doc.png after quantizing its palette to 2/4/16/256 colors. LGTM=r R=r CC=golang-codereviews https://golang.org/cl/109010043
The testdata files were created by: cwebp video-001.png -o video-001.webp dwebp -pgm video-001.webp -o tmp.pgm convert tmp.pgm video-001.webp.ycbcr.png rm tmp.pgm LGTM=r R=r CC=chaishushan, golang-codereviews https://golang.org/cl/91700044