| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 enum Format { | 31 enum Format { |
| 32 kUnknown_Format, | 32 kUnknown_Format, |
| 33 kBMP_Format, | 33 kBMP_Format, |
| 34 kGIF_Format, | 34 kGIF_Format, |
| 35 kICO_Format, | 35 kICO_Format, |
| 36 kJPEG_Format, | 36 kJPEG_Format, |
| 37 kPNG_Format, | 37 kPNG_Format, |
| 38 kWBMP_Format, | 38 kWBMP_Format, |
| 39 kWEBP_Format, | 39 kWEBP_Format, |
| 40 kPKM_Format, |
| 40 | 41 |
| 41 kLastKnownFormat = kWEBP_Format, | 42 kLastKnownFormat = kWEBP_Format, |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 /** Return the format of image this decoder can decode. If this decoder can
decode multiple | 45 /** Return the format of image this decoder can decode. If this decoder can
decode multiple |
| 45 formats, kUnknown_Format will be returned. | 46 formats, kUnknown_Format will be returned. |
| 46 */ | 47 */ |
| 47 virtual Format getFormat() const; | 48 virtual Format getFormat() const; |
| 48 | 49 |
| 49 /** Return the format of the SkStreamRewindable or kUnknown_Format if it can
not be determined. | 50 /** 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... |
| 518 | 519 |
| 519 // All the decoders known by Skia. Note that, depending on the compiler settings
, | 520 // All the decoders known by Skia. Note that, depending on the compiler settings
, |
| 520 // not all of these will be available | 521 // not all of these will be available |
| 521 DECLARE_DECODER_CREATOR(BMPImageDecoder); | 522 DECLARE_DECODER_CREATOR(BMPImageDecoder); |
| 522 DECLARE_DECODER_CREATOR(GIFImageDecoder); | 523 DECLARE_DECODER_CREATOR(GIFImageDecoder); |
| 523 DECLARE_DECODER_CREATOR(ICOImageDecoder); | 524 DECLARE_DECODER_CREATOR(ICOImageDecoder); |
| 524 DECLARE_DECODER_CREATOR(JPEGImageDecoder); | 525 DECLARE_DECODER_CREATOR(JPEGImageDecoder); |
| 525 DECLARE_DECODER_CREATOR(PNGImageDecoder); | 526 DECLARE_DECODER_CREATOR(PNGImageDecoder); |
| 526 DECLARE_DECODER_CREATOR(WBMPImageDecoder); | 527 DECLARE_DECODER_CREATOR(WBMPImageDecoder); |
| 527 DECLARE_DECODER_CREATOR(WEBPImageDecoder); | 528 DECLARE_DECODER_CREATOR(WEBPImageDecoder); |
| 529 DECLARE_DECODER_CREATOR(PKMImageDecoder); |
| 528 | 530 |
| 529 | 531 |
| 530 // Typedefs to make registering decoder and formatter callbacks easier. | 532 // Typedefs to make registering decoder and formatter callbacks easier. |
| 531 // These have to be defined outside SkImageDecoder. :( | 533 // These have to be defined outside SkImageDecoder. :( |
| 532 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod
er_DecodeReg; | 534 typedef SkTRegistry<SkImageDecoder*(*)(SkStreamRewindable*)> SkImageDecod
er_DecodeReg; |
| 533 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod
er_FormatReg; | 535 typedef SkTRegistry<SkImageDecoder::Format(*)(SkStreamRewindable*)> SkImageDecod
er_FormatReg; |
| 534 | 536 |
| 535 #endif | 537 #endif |
| OLD | NEW |