Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: src/codec/SkJpegDecoderMgr.h

Issue 1322623004: Call standard libjpeg/libjpeg-turbo APIs from SkJpegCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Need to save the state, so we can call onGetScaledDimensions before rewinding Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkJpegDecoderMgr_DEFINED 8 #ifndef SkJpegDecoderMgr_DEFINED
9 #define SkJpegDecoderMgr_DEFINED 9 #define SkJpegDecoderMgr_DEFINED
10 10
11 #include "SkCodec.h" 11 #include "SkCodec.h"
12 #include "SkCodecPriv.h" 12 #include "SkCodecPriv.h"
13 #include "SkJpegUtility_codec.h" 13 #include "SkJpegUtility_codec.h"
14 #include "SkSwizzler.h" 14 #include "SkSwizzler.h"
15 15
16 // stdio is needed for jpeglib 16 // stdio is needed for jpeglib
17 #include <stdio.h> 17 #include <stdio.h>
18 18
19 extern "C" { 19 extern "C" {
20 #include "jpeglibmangler.h"
21 #include "jpeglib.h" 20 #include "jpeglib.h"
22 } 21 }
23 22
24 class JpegDecoderMgr : SkNoncopyable { 23 class JpegDecoderMgr : SkNoncopyable {
25 public: 24 public:
26 25
27 /* 26 /*
28 * Print a useful error message and return false 27 * Print a useful error message and return false
29 */ 28 */
30 bool returnFalse(const char caller[]); 29 bool returnFalse(const char caller[]);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 67
69 private: 68 private:
70 69
71 jpeg_decompress_struct fDInfo; 70 jpeg_decompress_struct fDInfo;
72 skjpeg_source_mgr fSrcMgr; 71 skjpeg_source_mgr fSrcMgr;
73 skjpeg_error_mgr fErrorMgr; 72 skjpeg_error_mgr fErrorMgr;
74 bool fInit; 73 bool fInit;
75 }; 74 };
76 75
77 #endif 76 #endif
OLDNEW
« no previous file with comments | « src/codec/SkJpegCodec.cpp ('k') | src/codec/SkJpegDecoderMgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698