Chromium Code Reviews| 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 #include "SkCodec.h" | 11 #include "SkCodec.h" |
| 12 #include "SkImageInfo.h" | 12 #include "SkImageInfo.h" |
| 13 #include "SkJpegDecoderMgr.h" | 13 #include "SkJpegDecoderMgr.h" |
| 14 #include "SkJpegUtility_codec.h" | 14 #include "SkJpegUtility_codec.h" |
| 15 #include "SkStream.h" | 15 #include "SkStream.h" |
| 16 #include "SkTemplates.h" | 16 #include "SkTemplates.h" |
| 17 | 17 |
| 18 extern "C" { | |
|
msarett
2016/02/17 14:34:54
Doesn't help much, SkJpegUtility_codec.h includes
| |
| 19 #include "jpeglib.h" | |
| 20 } | |
| 21 | |
| 22 /* | 18 /* |
| 23 * | 19 * |
| 24 * This class implements the decoding for jpeg images | 20 * This class implements the decoding for jpeg images |
| 25 * | 21 * |
| 26 */ | 22 */ |
| 27 class SkJpegCodec : public SkCodec { | 23 class SkJpegCodec : public SkCodec { |
| 28 public: | 24 public: |
| 29 static bool IsJpeg(const void*, size_t); | 25 static bool IsJpeg(const void*, size_t); |
| 30 | 26 |
| 31 /* | 27 /* |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 | 113 |
| 118 // scanline decoding | 114 // scanline decoding |
| 119 SkAutoTMalloc<uint8_t> fStorage; // Only used if sampling is needed | 115 SkAutoTMalloc<uint8_t> fStorage; // Only used if sampling is needed |
| 120 uint8_t* fSrcRow; // Only used if sampling is needed | 116 uint8_t* fSrcRow; // Only used if sampling is needed |
| 121 SkAutoTDelete<SkSwizzler> fSwizzler; | 117 SkAutoTDelete<SkSwizzler> fSwizzler; |
| 122 | 118 |
| 123 typedef SkCodec INHERITED; | 119 typedef SkCodec INHERITED; |
| 124 }; | 120 }; |
| 125 | 121 |
| 126 #endif | 122 #endif |
| OLD | NEW |