Add SkEncodedInfo to report properties of encoded image data
authormsarett <msarett@google.com>
Mon, 18 Apr 2016 23:20:00 +0000 (16:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 Apr 2016 23:20:00 +0000 (16:20 -0700)
commitf682d9ad70d690a343bc15e26ef321d86770be41
treed060890436619e2f3a03789400ed8276f421e5ce
parentbde57ed11b8a6bd6da6043189e000c58bf146422
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
26 files changed:
include/codec/SkCodec.h
include/codec/SkEncodedInfo.h [new file with mode: 0644]
src/codec/SkBmpCodec.cpp
src/codec/SkBmpCodec.h
src/codec/SkBmpMaskCodec.cpp
src/codec/SkBmpMaskCodec.h
src/codec/SkBmpRLECodec.cpp
src/codec/SkBmpRLECodec.h
src/codec/SkBmpStandardCodec.cpp
src/codec/SkBmpStandardCodec.h
src/codec/SkCodec.cpp
src/codec/SkGifCodec.cpp
src/codec/SkGifCodec.h
src/codec/SkIcoCodec.cpp
src/codec/SkIcoCodec.h
src/codec/SkJpegCodec.cpp
src/codec/SkJpegCodec.h
src/codec/SkJpegDecoderMgr.cpp
src/codec/SkJpegDecoderMgr.h
src/codec/SkPngCodec.cpp
src/codec/SkPngCodec.h
src/codec/SkRawCodec.cpp
src/codec/SkWbmpCodec.cpp
src/codec/SkWbmpCodec.h
src/codec/SkWebpCodec.cpp
src/codec/SkWebpCodec.h