aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleAtlas.cpp
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@chromium.org>2015-08-06 06:08:18 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-06 06:08:18 -0700
commitab60c5bd9f360e9d58f0f34683b92fb841a514b1 (patch)
treeafb1b8a332c923007cb061fc782ff83fa632bdcd /samplecode/SampleAtlas.cpp
parentfd3d87cf670e0a67ac6abefa460d4f98d756b810 (diff)
Support decoding PNG to 565.
Although we initially discussed not supporting 565, SkCodec needs to support Android's BitmapFactory and BitmapRegionDecoder, which need to support 565. We could instead implement 565 on top of SkCodec, but this would require more memory and run more slowly. An open question is whether to support dithering, and how. In order to support dithering, we need to pass y to RowProc, which I believe means we will need to pass y to SkSwizzler::swizzle(). I dislike having an option which is typically ignored - SkImageDecoder allows you to turn on dithering when decoding to any color type, but it is only meaningful only if the output color type is 565. We could also make the client implement dithering, which I believe would mean forcing them to do the conversion to 565 (since we have already thrown away data when we convered to 565 without dithering). BUG=skia:3257 Review URL: https://codereview.chromium.org/1277593002
Diffstat (limited to 'samplecode/SampleAtlas.cpp')
0 files changed, 0 insertions, 0 deletions