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