DescriptionUpdates to skimage tool to use it for testing.
skimage_main.cpp:
More changes in the interest of testing our decoders.
force_all_opaque before writing PNG files.
Test reencoding the image to its original type (if possible), and
then test redecoding it (to make sure the encoding was successful).
Add an option to turn off this behavior.
Merge decodeFileAndWrite with decodeFile.
SkImageDecoder:
Add kUnknown_Type to SkImageEncoder::Types.
Add a static function to get the Format of an SkStream.
In getFormatName(), remove an incorrect assert.
When calling the flavor of DecodeStream that returns the Format,
check the stream if the decoder returns kUnknown_Format.
BUG=https://code.google.com/p/skia/issues/detail?id=1241
Committed: https://code.google.com/p/skia/source/detail?r=8862
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fix some asserts; save reencoded data to a file. #Patch Set 4 : Report success of writing reencoded data. #Patch Set 5 : Remove fake support for GIF on Windows and remove a printf. #
Total comments: 15
Patch Set 6 : Change getFormatName to use a switch statement. #
Total comments: 2
Patch Set 7 : Remove Unknown from gFormats. Fix forcing all opaque. #Patch Set 8 : Add SkImageDecoder::getFormat(SkStream*). #Patch Set 9 : Implement onGetFormat in SkImageDecoder_CG. #Patch Set 10 : Implement onGetFormat for other decoders. #
Total comments: 13
Patch Set 11 : Address comments. Need to test on other platforms. #Patch Set 12 : Fix assert #Patch Set 13 : Fix for windows. #Patch Set 14 : Small movement of code to where it's referenced. #Patch Set 15 : Fix a potential crash in SkImageDecoder_CG. #
Total comments: 3
Patch Set 16 : GetFormat -> GetStreamFormat #
Messages
Total messages: 15 (0 generated)
|