]> Cypherpunks repositories - gostls13.git/commit
image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410.
authorNigel Tao <nigeltao@golang.org>
Wed, 25 Feb 2015 06:17:01 +0000 (17:17 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 26 Feb 2015 00:14:16 +0000 (00:14 +0000)
commit7d7351395da5e8cb3325346c98e00b9df0069363
tree78602267cb444390b8bf1f103008a351451379e7
parentb351e1decf4c1cfb3d5a80f467b49846b5d17f4b
image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410.

Some real world JPEG images are in 4:1:1 and 4:1:0 formats.

See also http://en.wikipedia.org/wiki/Chroma_subsampling

Change-Id: I2d51a41944f581cf11f4ab975046b1737271842f
Reviewed-on: https://go-review.googlesource.com/5838
Reviewed-by: Rob Pike <r@golang.org>
src/image/ycbcr.go
src/image/ycbcr_test.go