]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: support 4:1:1 and 4:1:0 chroma subsampling.
authorNigel Tao <nigeltao@golang.org>
Thu, 26 Feb 2015 00:35:20 +0000 (11:35 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 26 Feb 2015 02:08:45 +0000 (02:08 +0000)
commita32dd832530a176b5b45f06c3a97f52383227480
treec0ab5641828633d8866f457558b2abe3d197c342
parent9f4c25e2236617c27e5b430c774b4d9c4b86ba1b
image/jpeg: support 4:1:1 and 4:1:0 chroma subsampling.

The test data was generated by:
convert video-001.png tmp.tga
cjpeg -quality 50 -sample 4x2,1x1,1x1 tmp.tga > video-001.q50.410.jpeg
cjpeg -quality 50 -sample 4x1,1x1,1x1 tmp.tga > video-001.q50.411.jpeg
cjpeg -quality 50 -sample 4x2,1x1,1x1 -progressive tmp.tga > video-001.q50.410.progressive.jpeg
cjpeg -quality 50 -sample 4x1,1x1,1x1 -progressive tmp.tga > video-001.q50.411.progressive.jpeg
rm tmp.tga

Change-Id: I5570389c462360f98c3160f3c6963d9466d511de
Reviewed-on: https://go-review.googlesource.com/6041
Reviewed-by: Rob Pike <r@golang.org>
src/image/jpeg/reader.go
src/image/jpeg/reader_test.go
src/image/jpeg/scan.go
src/image/testdata/video-001.q50.410.jpeg [new file with mode: 0644]
src/image/testdata/video-001.q50.410.progressive.jpeg [new file with mode: 0644]
src/image/testdata/video-001.q50.411.jpeg [new file with mode: 0644]
src/image/testdata/video-001.q50.411.progressive.jpeg [new file with mode: 0644]