| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef WEBPImageDecoder_h | 29 #ifndef WEBPImageDecoder_h |
| 30 #define WEBPImageDecoder_h | 30 #define WEBPImageDecoder_h |
| 31 | 31 |
| 32 #include "platform/image-decoders/ImageDecoder.h" | 32 #include "platform/image-decoders/ImageDecoder.h" |
| 33 | 33 |
| 34 #include "webp/decode.h" | 34 #include "webp/decode.h" |
| 35 #include "webp/demux.h" | 35 #include "webp/demux.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace blink { |
| 38 | 38 |
| 39 class PLATFORM_EXPORT WEBPImageDecoder : public ImageDecoder { | 39 class PLATFORM_EXPORT WEBPImageDecoder : public ImageDecoder { |
| 40 public: | 40 public: |
| 41 WEBPImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfile
Option, size_t maxDecodedBytes); | 41 WEBPImageDecoder(ImageSource::AlphaOption, ImageSource::GammaAndColorProfile
Option, size_t maxDecodedBytes); |
| 42 virtual ~WEBPImageDecoder(); | 42 virtual ~WEBPImageDecoder(); |
| 43 | 43 |
| 44 virtual String filenameExtension() const OVERRIDE { return "webp"; } | 44 virtual String filenameExtension() const OVERRIDE { return "webp"; } |
| 45 virtual bool isSizeAvailable() OVERRIDE; | 45 virtual bool isSizeAvailable() OVERRIDE; |
| 46 virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } | 46 virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; } |
| 47 virtual size_t frameCount() OVERRIDE; | 47 virtual size_t frameCount() OVERRIDE; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 int m_repetitionCount; | 82 int m_repetitionCount; |
| 83 int m_decodedHeight; | 83 int m_decodedHeight; |
| 84 | 84 |
| 85 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); | 85 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); |
| 86 AlphaBlendFunction m_blendFunction; | 86 AlphaBlendFunction m_blendFunction; |
| 87 | 87 |
| 88 void clear(); | 88 void clear(); |
| 89 void clearDecoder(); | 89 void clearDecoder(); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif | 94 #endif |
| OLD | NEW |