diff options
author | 2017-03-21 16:14:42 -0400 | |
---|---|---|
committer | 2017-03-22 13:57:58 +0000 | |
commit | e3b95ce468c73af8247ba9582a7b84548b19f06a (patch) | |
tree | 5823adacd215f5b9f7030287fec35727332d041a /src/codec/SkJpegUtility.h | |
parent | c3efe6785666cdd13848e63f36fdadca26c48649 (diff) |
Add support for writing icc profiles to the jpeg encoder
Also, share the impl for skjpeg_error_mgr between the
jpeg decoder and encoder. They are already identical
anyway.
BUG=skia:
Change-Id: I029312406dee8734744cc3058acd1f153aefcd83
Reviewed-on: https://skia-review.googlesource.com/9971
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/codec/SkJpegUtility.h')
-rw-r--r-- | src/codec/SkJpegUtility.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codec/SkJpegUtility.h b/src/codec/SkJpegUtility.h index 43391017b5..dea0753537 100644 --- a/src/codec/SkJpegUtility.h +++ b/src/codec/SkJpegUtility.h @@ -20,6 +20,12 @@ extern "C" { #include "jerror.h" } +static constexpr uint32_t kICCMarker = JPEG_APP0 + 2; +static constexpr uint32_t kICCMarkerHeaderSize = 14; +static constexpr uint8_t kICCSig[] = { + 'I', 'C', 'C', '_', 'P', 'R', 'O', 'F', 'I', 'L', 'E', '\0', +}; + /* * Error handling struct */ |