OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkImageDecoder_DEFINED | 10 #ifndef SkImageDecoder_DEFINED |
(...skipping 23 matching lines...) Expand all Loading... | |
34 kICO_Format, | 34 kICO_Format, |
35 kJPEG_Format, | 35 kJPEG_Format, |
36 kPNG_Format, | 36 kPNG_Format, |
37 kWBMP_Format, | 37 kWBMP_Format, |
38 kWEBP_Format, | 38 kWEBP_Format, |
39 | 39 |
40 kLastKnownFormat = kWEBP_Format | 40 kLastKnownFormat = kWEBP_Format |
41 }; | 41 }; |
42 | 42 |
43 /** Return the format of image this decoder can decode. If this decoder can decode multiple | 43 /** Return the format of image this decoder can decode. If this decoder can decode multiple |
44 formats, kUnknown_Format will be returned. | 44 formats, returns the format of the data that was most recently decoded s uccessfully. Can |
epoger
2013/04/19 21:35:16
This time-dependent, stateful behavior (return for
scroggo
2013/04/19 22:12:01
That seems reasonable to me. I used this behavior
scroggo
2013/04/22 22:10:15
Removed. Instead of this behavior, I've retained t
| |
45 return kUnknown_Format. | |
45 */ | 46 */ |
46 virtual Format getFormat() const; | 47 virtual Format getFormat() const; |
47 | 48 |
48 /** Return a readable string of the value returned by getFormat(). | 49 /** Return a readable string of the value returned by getFormat(). |
49 */ | 50 */ |
50 const char* getFormatName() const; | 51 const char* getFormatName() const; |
51 | 52 |
52 /** Returns true if the decoder should try to dither the resulting image. | 53 /** Returns true if the decoder should try to dither the resulting image. |
53 The default setting is true. | 54 The default setting is true. |
54 */ | 55 */ |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
468 // not all of these will be available | 469 // not all of these will be available |
469 DECLARE_DECODER_CREATOR(BMPImageDecoder); | 470 DECLARE_DECODER_CREATOR(BMPImageDecoder); |
470 DECLARE_DECODER_CREATOR(GIFImageDecoder); | 471 DECLARE_DECODER_CREATOR(GIFImageDecoder); |
471 DECLARE_DECODER_CREATOR(ICOImageDecoder); | 472 DECLARE_DECODER_CREATOR(ICOImageDecoder); |
472 DECLARE_DECODER_CREATOR(JPEGImageDecoder); | 473 DECLARE_DECODER_CREATOR(JPEGImageDecoder); |
473 DECLARE_DECODER_CREATOR(PNGImageDecoder); | 474 DECLARE_DECODER_CREATOR(PNGImageDecoder); |
474 DECLARE_DECODER_CREATOR(WBMPImageDecoder); | 475 DECLARE_DECODER_CREATOR(WBMPImageDecoder); |
475 DECLARE_DECODER_CREATOR(WEBPImageDecoder); | 476 DECLARE_DECODER_CREATOR(WEBPImageDecoder); |
476 | 477 |
477 #endif | 478 #endif |
OLD | NEW |