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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void initializeNewFrame(size_t) override; | 58 void initializeNewFrame(size_t) override; |
59 void decode(size_t) override; | 59 void decode(size_t) override; |
60 | 60 |
61 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra
meIndex); | 61 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra
meIndex); |
62 | 62 |
63 WebPIDecoder* m_decoder; | 63 WebPIDecoder* m_decoder; |
64 WebPDecBuffer m_decoderBuffer; | 64 WebPDecBuffer m_decoderBuffer; |
65 int m_formatFlags; | 65 int m_formatFlags; |
66 bool m_frameBackgroundHasAlpha; | 66 bool m_frameBackgroundHasAlpha; |
67 | 67 |
68 #if USE(QCMSLIB) | |
69 void readColorProfile(); | 68 void readColorProfile(); |
70 #endif | |
71 | |
72 bool updateDemuxer(); | 69 bool updateDemuxer(); |
73 bool initFrameBuffer(size_t frameIndex); | 70 bool initFrameBuffer(size_t frameIndex); |
74 void applyPostProcessing(size_t frameIndex); | 71 void applyPostProcessing(size_t frameIndex); |
75 void clearFrameBuffer(size_t frameIndex) override; | 72 void clearFrameBuffer(size_t frameIndex) override; |
76 | 73 |
77 WebPDemuxer* m_demux; | 74 WebPDemuxer* m_demux; |
78 WebPDemuxState m_demuxState; | 75 WebPDemuxState m_demuxState; |
79 bool m_haveAlreadyParsedThisData; | 76 bool m_haveAlreadyParsedThisData; |
80 int m_repetitionCount; | 77 int m_repetitionCount; |
81 int m_decodedHeight; | 78 int m_decodedHeight; |
82 | 79 |
83 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); | 80 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); |
84 AlphaBlendFunction m_blendFunction; | 81 AlphaBlendFunction m_blendFunction; |
85 | 82 |
86 void clear(); | 83 void clear(); |
87 void clearDecoder(); | 84 void clearDecoder(); |
88 | 85 |
89 // FIXME: Update libwebp's API so it does not require copying the data on ea
ch update. | 86 // FIXME: Update libwebp's API so it does not require copying the data on ea
ch update. |
90 RefPtr<SkData> m_consolidatedData; | 87 RefPtr<SkData> m_consolidatedData; |
91 }; | 88 }; |
92 | 89 |
93 } // namespace blink | 90 } // namespace blink |
94 | 91 |
95 #endif | 92 #endif |
OLD | NEW |