| 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 |
| 11 // For testing. | |
| 12 #ifdef SKNX_NO_SIMD | |
| 13 #undef TURBO_HAS_CROP | |
| 14 #undef TURBO_HAS_SKIP | |
| 15 #undef TURBO_HAS_565 | |
| 16 #endif | |
| 17 | |
| 18 #include "SkCodec.h" | 11 #include "SkCodec.h" |
| 19 #include "SkColorSpace.h" | 12 #include "SkColorSpace.h" |
| 20 #include "SkColorSpaceXform.h" | 13 #include "SkColorSpaceXform.h" |
| 21 #include "SkImageInfo.h" | 14 #include "SkImageInfo.h" |
| 22 #include "SkSwizzler.h" | 15 #include "SkSwizzler.h" |
| 23 #include "SkStream.h" | 16 #include "SkStream.h" |
| 24 #include "SkTemplates.h" | 17 #include "SkTemplates.h" |
| 25 | 18 |
| 26 class JpegDecoderMgr; | 19 class JpegDecoderMgr; |
| 27 | 20 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 uint8_t* fSwizzleSrcRow; | 131 uint8_t* fSwizzleSrcRow; |
| 139 uint32_t* fColorXformSrcRow; | 132 uint32_t* fColorXformSrcRow; |
| 140 | 133 |
| 141 // libjpeg-turbo provides some subsetting. In the case that libjpeg-turbo | 134 // libjpeg-turbo provides some subsetting. In the case that libjpeg-turbo |
| 142 // cannot take the exact the subset that we need, we will use the swizzler | 135 // cannot take the exact the subset that we need, we will use the swizzler |
| 143 // to further subset the output from libjpeg-turbo. | 136 // to further subset the output from libjpeg-turbo. |
| 144 SkIRect fSwizzlerSubset; | 137 SkIRect fSwizzlerSubset; |
| 145 | 138 |
| 146 SkAutoTDelete<SkSwizzler> fSwizzler; | 139 SkAutoTDelete<SkSwizzler> fSwizzler; |
| 147 std::unique_ptr<SkColorSpaceXform> fColorXform; | 140 std::unique_ptr<SkColorSpaceXform> fColorXform; |
| 148 | 141 |
| 149 sk_sp<SkData> fICCData; | 142 sk_sp<SkData> fICCData; |
| 150 | 143 |
| 151 #if !defined(TURBO_HAS_SKIP) | |
| 152 SkAutoTMalloc<uint8_t> fSkipStorage; | |
| 153 #endif | |
| 154 | |
| 155 typedef SkCodec INHERITED; | 144 typedef SkCodec INHERITED; |
| 156 }; | 145 }; |
| 157 | 146 |
| 158 #endif | 147 #endif |
| OLD | NEW |