Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1471)

Issue 106230044: code review 106230044: vp8: skip filtering for all-zero-DC macroblock residuals. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by nigeltao
Modified:
9 years, 10 months ago
Reviewers:
r
CC:
r, golang-codereviews
Visibility:
Public.

Description

vp8: skip filtering for all-zero-DC macroblock residuals. This makes the Go code match the libwebp C code's output on blue-purple-pink-large.*-filter.lossy.webp Also make the various WEBP benchmarks all decode a similar image, the image at http://blog.golang.org/gophercon/image01.jpg, to make it more meaningful to e.g. compare the simple filter's numbers with the normal filter's numbers. Also fix a "go vet" warning in webp/decode.go. The test data was generated by: wget http://blog.golang.org/gophercon/image01.jpg -O blue-purple-pink-large.jpeg convert blue-purple-pink-large.jpeg blue-purple-pink-large.png cwebp -lossless blue-purple-pink-large.png -o blue-purple-pink-large.lossless.webp cwebp -q 80 -f 0 blue-purple-pink-large.png -o blue-purple-pink-large.no-filter.lossy.webp cwebp -q 80 -strong blue-purple-pink-large.png -o blue-purple-pink-large.normal-filter.lossy.webp cwebp -q 80 -nostrong blue-purple-pink-large.png -o blue-purple-pink-large.simple-filter.lossy.webp dwebp -pgm blue-purple-pink-large.no-filter.lossy.webp -o tmp.pgm && convert tmp.pgm blue-purple-pink-large.no-filter.lossy.webp.ycbcr.png && rm tmp.pgm dwebp -pgm blue-purple-pink-large.normal-filter.lossy.webp -o tmp.pgm && convert tmp.pgm blue-purple-pink-large.normal-filter.lossy.webp.ycbcr.png && rm tmp.pgm dwebp -pgm blue-purple-pink-large.simple-filter.lossy.webp -o tmp.pgm && convert tmp.pgm blue-purple-pink-large.simple-filter.lossy.webp.ycbcr.png && rm tmp.pgm

Patch Set 1 #

Patch Set 2 : diff -r 9e772e41e630 https://code.google.com/p/go.image #

Patch Set 3 : diff -r 9e772e41e630 https://code.google.com/p/go.image #

Patch Set 4 : diff -r 9e772e41e630 https://code.google.com/p/go.image #

Patch Set 5 : diff -r f6e41288d919 https://code.google.com/p/go.image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -21 lines) Patch
A testdata/blue-purple-pink-large.png View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.lossless.webp View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.no-filter.lossy.webp View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.no-filter.lossy.webp.ycbcr.png View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.normal-filter.lossy.webp View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.normal-filter.lossy.webp.ycbcr.png View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.simple-filter.lossy.webp View 1 2 3 4 Binary file 0 comments Download
A testdata/blue-purple-pink-large.simple-filter.lossy.webp.ycbcr.png View 1 2 3 4 Binary file 0 comments Download
M vp8/reconstruct.go View 1 2 3 4 4 chunks +11 lines, -6 lines 0 comments Download
M webp/decode.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webp/decode_test.go View 1 2 3 4 8 chunks +26 lines, -14 lines 0 comments Download

Messages

Total messages: 3
nigeltao
Hello r@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.image
9 years, 10 months ago (2014-06-27 07:17:56 UTC) #1
r
LGTM
9 years, 10 months ago (2014-06-27 15:01:49 UTC) #2
nigeltao
9 years, 10 months ago (2014-06-30 00:36:46 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=58506d3a4ba4&repo=image ***

vp8: skip filtering for all-zero-DC macroblock residuals.

This makes the Go code match the libwebp C code's output on
blue-purple-pink-large.*-filter.lossy.webp

Also make the various WEBP benchmarks all decode a similar image,
the image at http://blog.golang.org/gophercon/image01.jpg, to make
it more meaningful to e.g. compare the simple filter's numbers with
the normal filter's numbers.

Also fix a "go vet" warning in webp/decode.go.

The test data was generated by:
wget http://blog.golang.org/gophercon/image01.jpg -O blue-purple-pink-large.jpeg
convert blue-purple-pink-large.jpeg blue-purple-pink-large.png
cwebp -lossless blue-purple-pink-large.png -o
blue-purple-pink-large.lossless.webp
cwebp -q 80 -f 0 blue-purple-pink-large.png -o
blue-purple-pink-large.no-filter.lossy.webp
cwebp -q 80 -strong blue-purple-pink-large.png -o
blue-purple-pink-large.normal-filter.lossy.webp
cwebp -q 80 -nostrong blue-purple-pink-large.png -o
blue-purple-pink-large.simple-filter.lossy.webp
dwebp -pgm blue-purple-pink-large.no-filter.lossy.webp -o tmp.pgm && convert
tmp.pgm blue-purple-pink-large.no-filter.lossy.webp.ycbcr.png && rm tmp.pgm
dwebp -pgm blue-purple-pink-large.normal-filter.lossy.webp -o tmp.pgm && convert
tmp.pgm blue-purple-pink-large.normal-filter.lossy.webp.ycbcr.png && rm tmp.pgm
dwebp -pgm blue-purple-pink-large.simple-filter.lossy.webp -o tmp.pgm && convert
tmp.pgm blue-purple-pink-large.simple-filter.lossy.webp.ycbcr.png && rm tmp.pgm

LGTM=r
R=r
CC=golang-codereviews
https://codereview.appspot.com/106230044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b