diff options
author | msarett <msarett@google.com> | 2016-04-18 16:20:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-18 16:20:00 -0700 |
commit | f682d9ad70d690a343bc15e26ef321d86770be41 (patch) | |
tree | d060890436619e2f3a03789400ed8276f421e5ce /src/codec/SkJpegDecoderMgr.h | |
parent | bde57ed11b8a6bd6da6043189e000c58bf146422 (diff) |
Add SkEncodedInfo to report properties of encoded image data
All this does is build an SkEncodedInfo for each codec, and
then convert it to an SkImageInfo.
In future steps I intend to:
(1) Use SkEncodedInfo in place of SrcConfig in SkSwizzler.
(2) Support more conversions in SkSwizzler (non-native
BGRA/RGBA, 16-bit components, float, fixed point)
(3) Investigate optimizing conversions from encoded data
to linear color spaces.
BUG=skia:4133
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1820073002
Review URL: https://codereview.chromium.org/1820073002
Diffstat (limited to 'src/codec/SkJpegDecoderMgr.h')
-rw-r--r-- | src/codec/SkJpegDecoderMgr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/codec/SkJpegDecoderMgr.h b/src/codec/SkJpegDecoderMgr.h index e1127bad34..a5078bb2d3 100644 --- a/src/codec/SkJpegDecoderMgr.h +++ b/src/codec/SkJpegDecoderMgr.h @@ -43,9 +43,10 @@ public: void init(); /* - * Recommend a color type based on the encoded format + * Returns the encoded color type of the jpeg, or kUnknown if the + * color type can't be determined */ - SkColorType getColorType(); + SkEncodedInfo::Color getEncodedColor(); /* * Free memory used by the decode manager |