| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 * Creates an instance of the decoder | 86 * Creates an instance of the decoder |
| 87 * Called only by NewFromStream | 87 * Called only by NewFromStream |
| 88 * | 88 * |
| 89 * @param srcInfo contains the source width and height | 89 * @param srcInfo contains the source width and height |
| 90 * @param stream the encoded image data | 90 * @param stream the encoded image data |
| 91 * @param decoderMgr holds decompress struct, src manager, and error manager | 91 * @param decoderMgr holds decompress struct, src manager, and error manager |
| 92 * takes ownership | 92 * takes ownership |
| 93 */ | 93 */ |
| 94 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de
coderMgr); | 94 SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* de
coderMgr); |
| 95 | 95 |
| 96 ~SkJpegCodec() override; | |
| 97 | |
| 98 /* | 96 /* |
| 99 * Checks if the conversion between the input image and the requested output | 97 * Checks if the conversion between the input image and the requested output |
| 100 * image has been implemented | 98 * image has been implemented |
| 101 * Sets the output color space | 99 * Sets the output color space |
| 102 */ | 100 */ |
| 103 bool setOutputColorSpace(const SkImageInfo& dst); | 101 bool setOutputColorSpace(const SkImageInfo& dst); |
| 104 | 102 |
| 105 /* | 103 /* |
| 106 * Checks if we can natively scale to the requested dimensions and natively
scales the | 104 * Checks if we can natively scale to the requested dimensions and natively
scales the |
| 107 * dimensions if possible | 105 * dimensions if possible |
| (...skipping 14 matching lines...) Expand all Loading... |
| 122 | 120 |
| 123 // scanline decoding | 121 // scanline decoding |
| 124 SkAutoMalloc fStorage; // Only used if sampling is needed | 122 SkAutoMalloc fStorage; // Only used if sampling is needed |
| 125 uint8_t* fSrcRow; // Only used if sampling is needed | 123 uint8_t* fSrcRow; // Only used if sampling is needed |
| 126 SkAutoTDelete<SkSwizzler> fSwizzler; | 124 SkAutoTDelete<SkSwizzler> fSwizzler; |
| 127 | 125 |
| 128 typedef SkCodec INHERITED; | 126 typedef SkCodec INHERITED; |
| 129 }; | 127 }; |
| 130 | 128 |
| 131 #endif | 129 #endif |
| OLD | NEW |