| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra
meIndex); | 60 bool decodeSingleFrame(const uint8_t* dataBytes, size_t dataSize, size_t fra
meIndex); |
| 61 | 61 |
| 62 WebPIDecoder* m_decoder; | 62 WebPIDecoder* m_decoder; |
| 63 WebPDecBuffer m_decoderBuffer; | 63 WebPDecBuffer m_decoderBuffer; |
| 64 int m_formatFlags; | 64 int m_formatFlags; |
| 65 bool m_frameBackgroundHasAlpha; | 65 bool m_frameBackgroundHasAlpha; |
| 66 bool m_hasColorProfile; | 66 bool m_hasColorProfile; |
| 67 | 67 |
| 68 #if USE(QCMSLIB) | 68 #if USE(QCMSLIB) |
| 69 qcms_transform* colorTransform() const { return m_transform; } | 69 qcms_transform* colorTransform() const { return m_transform; } |
| 70 bool createColorTransform(const char* data, size_t); | 70 bool createColorTransform(const char* data, size_t, ColorProfileStatus&); |
| 71 void clearColorTransform(); | 71 void clearColorTransform(); |
| 72 void readColorProfile(); | 72 ColorProfileStatus readColorProfile(); |
| 73 | 73 |
| 74 qcms_transform* m_transform; | 74 qcms_transform* m_transform; |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 bool updateDemuxer(); | 77 bool updateDemuxer(); |
| 78 bool initFrameBuffer(size_t frameIndex); | 78 bool initFrameBuffer(size_t frameIndex); |
| 79 void applyPostProcessing(size_t frameIndex); | 79 void applyPostProcessing(size_t frameIndex); |
| 80 void clearFrameBuffer(size_t frameIndex) override; | 80 void clearFrameBuffer(size_t frameIndex) override; |
| 81 | 81 |
| 82 WebPDemuxer* m_demux; | 82 WebPDemuxer* m_demux; |
| 83 WebPDemuxState m_demuxState; | 83 WebPDemuxState m_demuxState; |
| 84 bool m_haveAlreadyParsedThisData; | 84 bool m_haveAlreadyParsedThisData; |
| 85 int m_repetitionCount; | 85 int m_repetitionCount; |
| 86 int m_decodedHeight; | 86 int m_decodedHeight; |
| 87 | 87 |
| 88 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); | 88 typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int); |
| 89 AlphaBlendFunction m_blendFunction; | 89 AlphaBlendFunction m_blendFunction; |
| 90 | 90 |
| 91 void clear(); | 91 void clear(); |
| 92 void clearDecoder(); | 92 void clearDecoder(); |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| 96 | 96 |
| 97 #endif | 97 #endif |
| OLD | NEW |