diff options
author | msarett <msarett@google.com> | 2016-07-28 15:06:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-28 15:06:16 -0700 |
commit | 73d55332e2846dd05e9efdaa2f017bcc3872884b (patch) | |
tree | 428d0b8aa1ef3fef3a2b3fa63cd1f66caf020324 /include | |
parent | 20c27d6d6f68b17ce230d0dabe434f63990c6843 (diff) |
Add color space xform support to SkJpegCodec (includes F16!)
Also changes SkColorXform to support:
RGBA->RGBA
RGBA->BGRA
Instead of:
RGBA->SkPMColor
TBR=reed@google.com
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2174493002
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot
Review-Url: https://codereview.chromium.org/2174493002
Diffstat (limited to 'include')
-rw-r--r-- | include/codec/SkCodec.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index 5c84e07c70..c5dc66a474 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -286,6 +286,12 @@ public: * to scale. If the generator cannot perform this scale, * it will return kInvalidScale. * + * If the info contains a non-null SkColorSpace, the codec + * will perform the appropriate color space transformation. + * If the caller passes in the same color space that was + * reported by the codec, the color space transformation is + * a no-op. + * * If info is kIndex8_SkColorType, then the caller must provide storage for up to 256 * SkPMColor values in ctable. On success the generator must copy N colors into that storage, * (where N is the logical number of table entries) and set ctableCount to N. |