DescriptionSupport more swizzles to 565 in SkCodec
Add more swizzling functions for swizzling to 565. Much of this
code was revived from crrev.com/1055743003 (for BMP). Also added
swizzling functions for WBMP.
Consolidate the static function conversion_possible.
In SkCodec::getPixels, check that the alphatype corresponds to the
colorType. This prevents requesting 565 + non-opaque.
In SkIcoCodec, report that the image is unpremul (instead of
whatever the largest embedded codec thinks), but modify the
requested info to have the alpha type expected/required by the
embedded codec.
Add tests for decoding to 565.
BUG=skia:3257
BUG=skia:3683
Committed: https://skia.googlesource.com/skia/+/cc2feb161f756c4035a407296567654d86bc7be7
Patch Set 1 #Patch Set 2 : Fix parameters for row proc #Patch Set 3 : Support more #
Total comments: 10
Patch Set 4 : Respond to Matt's comments in patch set 3 #Patch Set 5 : Fix out of bounds write #Patch Set 6 : Fixes for ICO #Patch Set 7 : Support wbmp, add tests #
Total comments: 3
Patch Set 8 : Rebase on top of SkScaledCodec #Patch Set 9 : Update new 565 swizzling functions for scaling #
Total comments: 2
Messages
Total messages: 19 (5 generated)
|