This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
skia2
Watch
1
Star
0
Fork
0
You've already forked skia2
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
65f4aeae92
skia2
/
infra
/
bots
/
assets
/
skimage
/
VERSION
1 line
2 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix bug decoding JCS_RGB jpeg files Bug: chromium:897031 Bug: chromium:896776 Prior to this fix, we would treat the output from such a JPEG as if it were a 16 bit per component RGB PNG. We hit an assert in debug, but in release mode we do the wrong thing. Split up SkSwizzler::CreateSwizzler into two public factories (and a private one) based on whether format conversion is desired. Without format conversion, we may have already converted (as is the case with this JPEG), so the SkEncodedInfo::Color is not relevant. That flavor of the factory just needs to know the bytes per pixel, so provide that info instead. Add a test file to Google Storage: apron.jpg, from Chromium's benchmark files. Change-Id: If1337d58a508466299f9e4666778727c6cdc879a Reviewed-on: https://skia-review.googlesource.com/c/164619 Auto-Submit: Leon Scroggins <scroggo@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
2018-10-24 16:17:22 +00:00
39
Reference in New Issue
Copy Permalink