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 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 /* | 41 /* |
42 * Initialize decompress struct | 42 * Initialize decompress struct |
43 * Initialize the source manager | 43 * Initialize the source manager |
44 */ | 44 */ |
45 void init(); | 45 void init(); |
46 | 46 |
47 /* | 47 /* |
48 * Recommend a color type based on the encoded format | 48 * Recommend a color type based on the encoded format |
49 */ | 49 */ |
50 SkColorType getColorType(); | 50 SkEncodedInfo::Color getEncodedColor(); |
51 | 51 |
52 /* | 52 /* |
53 * Free memory used by the decode manager | 53 * Free memory used by the decode manager |
54 */ | 54 */ |
55 ~JpegDecoderMgr(); | 55 ~JpegDecoderMgr(); |
56 | 56 |
57 /* | 57 /* |
58 * Get the jump buffer in order to set an error return point | 58 * Get the jump buffer in order to set an error return point |
59 */ | 59 */ |
60 jmp_buf& getJmpBuf(); | 60 jmp_buf& getJmpBuf(); |
61 | 61 |
62 /* | 62 /* |
63 * Get function for the decompress info struct | 63 * Get function for the decompress info struct |
64 */ | 64 */ |
65 jpeg_decompress_struct* dinfo(); | 65 jpeg_decompress_struct* dinfo(); |
66 | 66 |
67 private: | 67 private: |
68 | 68 |
69 jpeg_decompress_struct fDInfo; | 69 jpeg_decompress_struct fDInfo; |
70 skjpeg_source_mgr fSrcMgr; | 70 skjpeg_source_mgr fSrcMgr; |
71 skjpeg_error_mgr fErrorMgr; | 71 skjpeg_error_mgr fErrorMgr; |
72 bool fInit; | 72 bool fInit; |
73 }; | 73 }; |
74 | 74 |
75 #endif | 75 #endif |
OLD | NEW |