Added CMYK support for ICC profiles.
authorraftias <raftias@google.com>
Wed, 30 Nov 2016 16:19:22 +0000 (11:19 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 1 Dec 2016 16:22:49 +0000 (16:22 +0000)
commit51c3fcd376c5c9972d9476b5532f6164375a38d1
tree550b06db1cb58caf5ec966ecaf80725fa5d74468
parent14c8f82334b9b3b20316dc4ba4786d526c2a5012
Added CMYK support for ICC profiles.

Changed ICC parsing/SkGammas/SkColorLookUpTable to handle non-3-channel
inputs. Parsed CMYK A2B ICC profiles. Integrated this with SkJpegCodec
(the only file that supports CMYK) and SkColorSpaceXform_A2B to allow
parsing and color xforming of ICC CMYK images.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5197
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD

Change-Id: Id6619f63f04071f79cd2d84321857dfa269ad3aa
Reviewed-on: https://skia-review.googlesource.com/5197
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Reviewed-by: Leon Scroggins <scroggo@google.com>
17 files changed:
dm/DMSrcSink.cpp
gm/labpcsdemo.cpp [deleted file]
gn/gm.gni
src/codec/SkJpegCodec.cpp
src/core/SkColorLookUpTable.cpp
src/core/SkColorLookUpTable.h
src/core/SkColorSpace.cpp
src/core/SkColorSpaceXform_A2B.cpp
src/core/SkColorSpaceXform_A2B.h
src/core/SkColorSpace_A2B.cpp
src/core/SkColorSpace_A2B.h
src/core/SkColorSpace_Base.h
src/core/SkColorSpace_ICC.cpp
src/core/SkColorSpace_XYZ.cpp
src/core/SkRasterPipeline.h
src/opts/SkRasterPipeline_opts.h
tests/ColorSpaceXformTest.cpp