skia2/include/images
scroggo@google.com 7e6fceeffd Test region decoding in skimage, plus fixes.
Add tests in skimage to perform region decoding. Write out a
PNG of the region as well as a bitmap obtained with extractSubset
for comparison.

Rename decodeRegion to decodeSubset, so it will not be confused
with SkRegion. (Leave a function called decodeRegion which calls
decodeSubset.)

Clean up some comments.

Use png_set_interlaced_pass instead of modifying pass directly.

Make some changes to region decoding to fix problems I discovered
during testing:

Only call getAddr within a valid range.
Check for a NULL fInputStream.
Return a boolean for whether cropBitmap succeeded.
In cropBitmap, do not attempt to draw to a bitmap to an Index8
bitmap, which crashes. Use extractSubset instead.
Remove an assert.

R=djsollen@google.com

Review URL: https://codereview.chromium.org/14567011

git-svn-id: http://skia.googlecode.com/svn/trunk@8996 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-05-03 20:14:28 +00:00
..
SkBitmapRegionDecoder.h fix window's build errors 2013-03-14 15:18:08 +00:00
SkImageDecoder.h Test region decoding in skimage, plus fixes. 2013-05-03 20:14:28 +00:00
SkImageEncoder.h Updates to skimage tool to use it for testing. 2013-04-25 17:33:51 +00:00
SkImageRef_GlobalPool.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkImageRef.h Fix android errors when unflattening an SkImageRef_ashmem object. 2013-02-01 15:57:13 +00:00
SkImages.h Add the ability to provide function pointers to SkPicture serialization 2012-10-04 21:46:08 +00:00
SkMovie.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
SkPageFlipper.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00