| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkImageDecoder_DEFINED | 8 #ifndef SkImageDecoder_DEFINED |
| 9 #define SkImageDecoder_DEFINED | 9 #define SkImageDecoder_DEFINED |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 kUnknown_Format, | 30 kUnknown_Format, |
| 31 kBMP_Format, | 31 kBMP_Format, |
| 32 kGIF_Format, | 32 kGIF_Format, |
| 33 kICO_Format, | 33 kICO_Format, |
| 34 kJPEG_Format, | 34 kJPEG_Format, |
| 35 kPNG_Format, | 35 kPNG_Format, |
| 36 kWBMP_Format, | 36 kWBMP_Format, |
| 37 kWEBP_Format, | 37 kWEBP_Format, |
| 38 kPKM_Format, | 38 kPKM_Format, |
| 39 kKTX_Format, | 39 kKTX_Format, |
| 40 kASTC_Format, | |
| 41 | 40 |
| 42 kLastKnownFormat = kKTX_Format, | 41 kLastKnownFormat = kKTX_Format, |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 /** Return the format of image this decoder can decode. If this decoder can
decode multiple | 44 /** Return the format of image this decoder can decode. If this decoder can
decode multiple |
| 46 formats, kUnknown_Format will be returned. | 45 formats, kUnknown_Format will be returned. |
| 47 */ | 46 */ |
| 48 virtual Format getFormat() const; | 47 virtual Format getFormat() const; |
| 49 | 48 |
| 50 /** Return the format of the SkStreamRewindable or kUnknown_Format if it can
not be determined. | 49 /** Return the format of the SkStreamRewindable or kUnknown_Format if it can
not be determined. |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // not all of these will be available | 518 // not all of these will be available |
| 520 DECLARE_DECODER_CREATOR(BMPImageDecoder); | 519 DECLARE_DECODER_CREATOR(BMPImageDecoder); |
| 521 DECLARE_DECODER_CREATOR(GIFImageDecoder); | 520 DECLARE_DECODER_CREATOR(GIFImageDecoder); |
| 522 DECLARE_DECODER_CREATOR(ICOImageDecoder); | 521 DECLARE_DECODER_CREATOR(ICOImageDecoder); |
| 523 DECLARE_DECODER_CREATOR(JPEGImageDecoder); | 522 DECLARE_DECODER_CREATOR(JPEGImageDecoder); |
| 524 DECLARE_DECODER_CREATOR(PNGImageDecoder); | 523 DECLARE_DECODER_CREATOR(PNGImageDecoder); |
| 525 DECLARE_DECODER_CREATOR(WBMPImageDecoder); | 524 DECLARE_DECODER_CREATOR(WBMPImageDecoder); |
| 526 DECLARE_DECODER_CREATOR(WEBPImageDecoder); | 525 DECLARE_DECODER_CREATOR(WEBPImageDecoder); |
| 527 DECLARE_DECODER_CREATOR(PKMImageDecoder); | 526 DECLARE_DECODER_CREATOR(PKMImageDecoder); |
| 528 DECLARE_DECODER_CREATOR(KTXImageDecoder); | 527 DECLARE_DECODER_CREATOR(KTXImageDecoder); |
| 529 DECLARE_DECODER_CREATOR(ASTCImageDecoder); | |
| 530 | 528 |
| 531 // Typedefs to make registering decoder and formatter callbacks easier. | 529 // Typedefs to make registering decoder and formatter callbacks easier. |
| 532 // These have to be defined outside SkImageDecoder. :( | 530 // These have to be defined outside SkImageDecoder. :( |
| 533 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod
er_DecodeReg; | 531 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod
er_DecodeReg; |
| 534 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod
er_FormatReg; | 532 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod
er_FormatReg; |
| 535 | 533 |
| 536 #endif | 534 #endif |
| OLD | NEW |