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" | |
14 | |
15 // stdio is needed for jpeglib | |
16 #include <stdio.h> | 13 #include <stdio.h> |
| 14 #include "SkJpegUtility.h" |
17 | 15 |
18 extern "C" { | 16 extern "C" { |
19 #include "jpeglib.h" | 17 #include "jpeglib.h" |
20 } | 18 } |
21 | 19 |
22 class JpegDecoderMgr : SkNoncopyable { | 20 class JpegDecoderMgr : SkNoncopyable { |
23 public: | 21 public: |
24 | 22 |
25 /* | 23 /* |
26 * Print a useful error message and return false | 24 * Print a useful error message and return false |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 64 |
67 private: | 65 private: |
68 | 66 |
69 jpeg_decompress_struct fDInfo; | 67 jpeg_decompress_struct fDInfo; |
70 skjpeg_source_mgr fSrcMgr; | 68 skjpeg_source_mgr fSrcMgr; |
71 skjpeg_error_mgr fErrorMgr; | 69 skjpeg_error_mgr fErrorMgr; |
72 bool fInit; | 70 bool fInit; |
73 }; | 71 }; |
74 | 72 |
75 #endif | 73 #endif |
OLD | NEW |