DescriptionProperly set alpha type in webp decode.
Also use the newer setConfig function.
Add a test to confirm that we set the alpha type properly.
Add some images with alpha for testing. (These images are also beneficial for the compare_unpremul test, which was previously not meaningful on 100% opaque images.)
All of the added images are in the public domain. They were taken from https://developers.google.com/speed/webp/gallery2:
yellow_rose:
"Free Stock Photo in High Resolution - Yellow Rose 3 - Flowers"
Image Author: Jon Sullivan
This file is in the public domain.
http://www.public-domain-photos.com/free-stock-photos-4/flowers/yellow-rose-3.jpg
baby_tux:
"baby tux for my user page"
Image Author: Fizyplankton
This file is in the public domain.
http://www.minecraftwiki.net/images/8/85/Fizyplankton.png
NOTRY=true
Committed: http://code.google.com/p/skia/source/detail?r=14054
Patch Set 1 #Patch Set 2 : Add a test and test images. #Patch Set 3 : Fix comment and remove printf. #Patch Set 4 : Remove gregor_mendel, which may not be public domain. #Patch Set 5 : Another test. #
Total comments: 2
Patch Set 6 : Add valid check. break -> continue. #Patch Set 7 : Rebase. #
Messages
Total messages: 19 (0 generated)
|