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 27 matching lines...) Expand all Loading... |
38 class PLATFORM_EXPORT WEBPImageDecoder final : public ImageDecoder { | 38 class PLATFORM_EXPORT WEBPImageDecoder final : public ImageDecoder { |
39 WTF_MAKE_NONCOPYABLE(WEBPImageDecoder); | 39 WTF_MAKE_NONCOPYABLE(WEBPImageDecoder); |
40 public: | 40 public: |
41 WEBPImageDecoder(AlphaOption, GammaAndColorProfileOption, size_t maxDecodedB
ytes); | 41 WEBPImageDecoder(AlphaOption, GammaAndColorProfileOption, size_t maxDecodedB
ytes); |
42 ~WEBPImageDecoder() override; | 42 ~WEBPImageDecoder() override; |
43 | 43 |
44 // ImageDecoder: | 44 // ImageDecoder: |
45 String filenameExtension() const override { return "webp"; } | 45 String filenameExtension() const override { return "webp"; } |
46 void onSetData(SharedBuffer* data) override; | 46 void onSetData(SharedBuffer* data) override; |
47 int repetitionCount() const override; | 47 int repetitionCount() const override; |
48 bool frameIsCompleteAtIndex(size_t) const override; | 48 bool frameIsFullyReceivedAtIndex(size_t) const override; |
49 float frameDurationAtIndex(size_t) const override; | 49 float frameDurationAtIndex(size_t) const override; |
50 size_t clearCacheExceptFrame(size_t) override; | 50 size_t clearCacheExceptFrame(size_t) override; |
51 | 51 |
52 private: | 52 private: |
53 // ImageDecoder: | 53 // ImageDecoder: |
54 virtual void decodeSize() { updateDemuxer(); } | 54 virtual void decodeSize() { updateDemuxer(); } |
55 size_t decodeFrameCount() override; | 55 size_t decodeFrameCount() override; |
56 void initializeNewFrame(size_t) override; | 56 void initializeNewFrame(size_t) override; |
57 void decode(size_t) override; | 57 void decode(size_t) override; |
58 | 58 |
(...skipping 22 matching lines...) Expand all Loading... |
81 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); | 81 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); |
82 AlphaBlendFunction m_blendFunction; | 82 AlphaBlendFunction m_blendFunction; |
83 | 83 |
84 void clear(); | 84 void clear(); |
85 void clearDecoder(); | 85 void clearDecoder(); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |