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 SkJpegCodec_DEFINED | 8 #ifndef SkJpegCodec_DEFINED |
9 #define SkJpegCodec_DEFINED | 9 #define SkJpegCodec_DEFINED |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de
coderMgr); | 103 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de
coderMgr); |
104 | 104 |
105 /* | 105 /* |
106 * Checks if the conversion between the input image and the requested output | 106 * Checks if the conversion between the input image and the requested output |
107 * image has been implemented | 107 * image has been implemented |
108 * Sets the output color space | 108 * Sets the output color space |
109 */ | 109 */ |
110 bool setOutputColorSpace(const SkImageInfo& dst); | 110 bool setOutputColorSpace(const SkImageInfo& dst); |
111 | 111 |
112 /* | 112 /* |
113 * Checks if we can natively scale to the requested dimensions and natively
scales the | 113 * Checks if we can scale to the requested dimensions and scales the dimensi
ons |
114 * dimensions if possible | 114 * if possible |
115 */ | 115 */ |
116 bool nativelyScaleToDimensions(uint32_t width, uint32_t height); | 116 bool scaleToDimensions(uint32_t width, uint32_t height); |
| 117 |
| 118 /* |
| 119 * Create the swizzler based on the encoded format |
| 120 */ |
| 121 void initializeSwizzler(const SkImageInfo& dstInfo, void* dst, size_t dstRow
Bytes, |
| 122 const Options& options); |
117 | 123 |
118 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; | 124 SkAutoTDelete<JpegDecoderMgr> fDecoderMgr; |
119 | 125 |
120 friend class SkJpegScanlineDecoder; | 126 friend class SkJpegScanlineDecoder; |
121 | 127 |
122 typedef SkCodec INHERITED; | 128 typedef SkCodec INHERITED; |
123 }; | 129 }; |
124 | 130 |
125 #endif | 131 #endif |
OLD | NEW |