aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkJpegCodec.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2015-06-29 10:14:11 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-29 10:14:11 -0700
commitf8bf9181d7b0463c8e371755cfbb9ece90b34fc5 (patch)
treef0bcd1f4b6732a9569c7d11b6ed3e054a1f84188 /src/codec/SkJpegCodec.h
parent146a4ba33640d2cf826248fa5562a81e3b68e164 (diff)
Add libjpeg-turbo library (depends on yasm)
Mangle external function names to avoid conflict with libjpeg Take advantage of direct color conversion (RGBA, BGRA, 565) Prepare to use jpeg_skip_scanlines (when it is upstreamed) BUG=skia: Committed: https://skia.googlesource.com/skia/+/b60c3f8291529303299262dba19b1a896060bd2d Review URL: https://codereview.chromium.org/1180983002
Diffstat (limited to 'src/codec/SkJpegCodec.h')
-rw-r--r--src/codec/SkJpegCodec.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index 87c925d9d1..1844269e6b 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -100,6 +100,13 @@ private:
bool handleRewind();
/*
+ * Checks if the conversion between the input image and the requested output
+ * image has been implemented
+ * Sets the output color space
+ */
+ bool setOutputColorSpace(const SkImageInfo& dst);
+
+ /*
* Checks if we can scale to the requested dimensions and scales the dimensions
* if possible
*/
@@ -112,8 +119,6 @@ private:
const Options& options);
SkAutoTDelete<JpegDecoderMgr> fDecoderMgr;
- SkAutoTDelete<SkSwizzler> fSwizzler;
- size_t fSrcRowBytes;
friend class SkJpegScanlineDecoder;