skia2/src/images
scroggo@google.com c70a3aa39b Support decoding Gray to A8 in PNG.
Move the code which sets the filler and forces gray to rgb after
we get the config, so we can skip them if the caller wants A8.

Call set_gray_to_rgb consistently for both normal decode and subset
decode.

In PNG, prevent subset decodes from alternating configs, which
would otherwise fail.

Use SK_RESTRICT for pointers in getBitmapConfig.

Ref the SkStream input to buildTileIndex, so it will not be destroyed
before calling decodeSubset.

Convert some fields to match Skia style.

Builds on https://codereview.chromium.org/18083026/, which has not yet been checked in.

R=reed@google.com

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

git-svn-id: http://skia.googlecode.com/svn/trunk@10162 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-07-18 20:03:15 +00:00
..
bmpdecoderhelper.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
bmpdecoderhelper.h Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:14:13 +00:00
SkBitmapRegionDecoder.cpp Upstream Android modifications to the image encoders/decoders. 2013-03-14 14:42:18 +00:00
SkForceLinking.cpp Fix iOS build. 2013-05-31 14:27:55 +00:00
SkImageDecoder_FactoryDefault.cpp Updates to images project. 2013-04-17 21:07:55 +00:00
SkImageDecoder_FactoryRegistrar.cpp Updates to skimage tool to use it for testing. 2013-04-25 17:33:51 +00:00
SkImageDecoder_libbmp.cpp Remove bitmap reuse from SkImageDecoder. 2013-07-09 15:45:14 +00:00
SkImageDecoder_libgif.cpp Remove bitmap reuse from SkImageDecoder. 2013-07-09 15:45:14 +00:00
SkImageDecoder_libico.cpp Allow ico decoder to decode PNG sub-images. 2013-07-09 15:48:24 +00:00
SkImageDecoder_libjpeg.cpp A8 bitmaps from JPEG are not opaque. 2013-07-18 19:37:46 +00:00
SkImageDecoder_libpng.cpp Support decoding Gray to A8 in PNG. 2013-07-18 20:03:15 +00:00
SkImageDecoder_libwebp.cpp Remove bitmap reuse from SkImageDecoder. 2013-07-09 15:45:14 +00:00
SkImageDecoder_wbmp.cpp Remove bitmap reuse from SkImageDecoder. 2013-07-09 15:45:14 +00:00
SkImageDecoder.cpp Initialize config. 2013-07-18 19:42:35 +00:00
SkImageEncoder_argb.cpp ARGB image encoder for checksums. 2013-04-23 18:06:23 +00:00
SkImageEncoder_Factory.cpp Remove SK_ENABLE_LIBPNG define as it is no longer needed by Android. 2013-03-20 16:07:37 +00:00
SkImageEncoder.cpp Sanitizing source files in Housekeeper-Nightly 2013-05-21 07:01:40 +00:00
SkImageRef_ashmem.cpp Add buffer helper to read directly into SkString to avoid extra copying 2013-05-21 16:17:14 +00:00
SkImageRef_ashmem.h Fix android errors when unflattening an SkImageRef_ashmem object. 2013-02-01 15:57:13 +00:00
SkImageRef_GlobalPool.cpp Fix android errors when unflattening an SkImageRef_ashmem object. 2013-02-01 15:57:13 +00:00
SkImageRef.cpp Fix android errors when unflattening an SkImageRef_ashmem object. 2013-02-01 15:57:13 +00:00
SkImageRefPool.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkImageRefPool.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkImages.cpp Fix android errors when unflattening an SkImageRef_ashmem object. 2013-02-01 15:57:13 +00:00
SkJpegUtility.cpp Upstream changes from Android for decoding jpeg images. 2013-03-20 17:45:27 +00:00
SkJpegUtility.h Upstream changes from Android for decoding jpeg images. 2013-03-20 17:45:27 +00:00
SkMovie_gif.cpp fix warning (again) for SkMovie 2013-03-22 13:58:34 +00:00
SkMovie.cpp use SkStream::NewFromFile() 2013-03-19 02:18:33 +00:00
SkPageFlipper.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkScaledBitmapSampler.cpp Allow decoding JPEG into A8. 2013-07-18 19:34:49 +00:00
SkScaledBitmapSampler.h Add an option to create unpremultiplied bitmaps. 2013-06-14 15:33:20 +00:00
transform_scanline.h Extract transform_scanline_XXXX functions into transform_scanline.h for code-sharing 2012-11-16 18:44:18 +00:00