diff options
author | 2016-04-20 11:53:35 -0700 | |
---|---|---|
committer | 2016-04-20 11:53:35 -0700 | |
commit | c30c418f4eb75f365c7d7a32d5419b41ca780ba8 (patch) | |
tree | d9e5a2dacd55f32f51319fbc22fa3335081e6940 /src/codec/SkJpegCodec.h | |
parent | 3e302275b324172c845627cbd00cee8a06571baf (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
Committed: https://skia.googlesource.com/skia/+/f682d9ad70d690a343bc15e26ef321d86770be41
Review URL: https://codereview.chromium.org/1820073002
Diffstat (limited to 'src/codec/SkJpegCodec.h')
-rw-r--r-- | src/codec/SkJpegCodec.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h index d3ea132da7..f8cddd0221 100644 --- a/src/codec/SkJpegCodec.h +++ b/src/codec/SkJpegCodec.h @@ -86,13 +86,13 @@ private: * Creates an instance of the decoder * Called only by NewFromStream * - * @param srcInfo contains the source width and height + * @param info contains properties of the encoded data * @param stream the encoded image data * @param decoderMgr holds decompress struct, src manager, and error manager * takes ownership */ - SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr, - sk_sp<SkColorSpace> colorSpace, Origin origin); + SkJpegCodec(int width, int height, const SkEncodedInfo& info, SkStream* stream, + JpegDecoderMgr* decoderMgr, sk_sp<SkColorSpace> colorSpace, Origin origin); /* * Checks if the conversion between the input image and the requested output |