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 SkCodec_DEFINED | 8 #ifndef SkCodec_DEFINED |
9 #define SkCodec_DEFINED | 9 #define SkCodec_DEFINED |
10 | 10 |
11 #include "../private/SkTemplates.h" | 11 #include "../private/SkTemplates.h" |
12 #include "SkColor.h" | 12 #include "SkColor.h" |
13 #include "SkEncodedFormat.h" | 13 #include "SkEncodedFormat.h" |
14 #include "SkEncodedInfo.h" | 14 #include "SkEncodedInfo.h" |
15 #include "SkImageInfo.h" | 15 #include "SkImageInfo.h" |
16 #include "SkSize.h" | 16 #include "SkSize.h" |
17 #include "SkStream.h" | 17 #include "SkStream.h" |
18 #include "SkTypes.h" | 18 #include "SkTypes.h" |
19 #include "SkYUVSizeInfo.h" | 19 #include "SkYUVSizeInfo.h" |
20 | 20 |
21 class SkColorSpace; | 21 class SkColorSpace; |
22 class SkData; | 22 class SkData; |
23 class SkPngChunkReader; | 23 class SkPngChunkReader; |
24 class SkSampler; | 24 class SkSampler; |
25 | 25 |
26 namespace DM { | 26 namespace DM { |
27 class ColorCodecSrc; | 27 class ColorCodecSrc; |
28 } | 28 } |
29 | 29 class ColorCodecBench; |
30 | 30 |
31 /** | 31 /** |
32 * Abstraction layer directly on top of an image codec. | 32 * Abstraction layer directly on top of an image codec. |
33 */ | 33 */ |
34 class SkCodec : SkNoncopyable { | 34 class SkCodec : SkNoncopyable { |
35 public: | 35 public: |
36 /** | 36 /** |
37 * Minimum number of bytes that must be buffered in SkStream input. | 37 * Minimum number of bytes that must be buffered in SkStream input. |
38 * | 38 * |
39 * An SkStream passed to NewFromStream must be able to use this many | 39 * An SkStream passed to NewFromStream must be able to use this many |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
713 * Return an object which will allow forcing scanline decodes to sample in X. | 713 * Return an object which will allow forcing scanline decodes to sample in X. |
714 * | 714 * |
715 * May create a sampler, if one is not currently being used. Otherwise, doe s | 715 * May create a sampler, if one is not currently being used. Otherwise, doe s |
716 * not affect ownership. | 716 * not affect ownership. |
717 * | 717 * |
718 * Only valid during scanline decoding. | 718 * Only valid during scanline decoding. |
719 */ | 719 */ |
720 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; } | 720 virtual SkSampler* getSampler(bool /*createIfNecessary*/) { return nullptr; } |
721 | 721 |
722 // For testing with qcms | 722 // For testing with qcms |
723 // FIXME: Remove this when we are done comparing with qcms. | 723 // FIXME: Remove this when we are done comparing with qcms. |
scroggo
2016/06/02 18:51:50
this -> these?
msarett
2016/06/02 19:34:40
Done.
| |
724 friend class DM::ColorCodecSrc; | 724 friend class DM::ColorCodecSrc; |
725 friend class ColorCodecBench; | |
725 | 726 |
726 friend class SkSampledCodec; | 727 friend class SkSampledCodec; |
727 friend class SkIcoCodec; | 728 friend class SkIcoCodec; |
728 }; | 729 }; |
729 #endif // SkCodec_DEFINED | 730 #endif // SkCodec_DEFINED |
OLD | NEW |