OLD | NEW |
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 Loading... |
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 |
OLD | NEW |