#include "webp/decode.h"
#include "webp/demux.h"
-namespace WebCore {
+namespace blink {
class PLATFORM_EXPORT WEBPImageDecoder : public ImageDecoder {
public:
virtual String filenameExtension() const OVERRIDE { return "webp"; }
virtual bool isSizeAvailable() OVERRIDE;
+ virtual bool hasColorProfile() const OVERRIDE { return m_hasColorProfile; }
virtual size_t frameCount() OVERRIDE;
virtual ImageFrame* frameBufferAtIndex(size_t) OVERRIDE;
virtual void setData(SharedBuffer* data, bool allDataReceived) OVERRIDE;
WebPDecBuffer m_decoderBuffer;
int m_formatFlags;
bool m_frameBackgroundHasAlpha;
+ bool m_hasColorProfile;
#if USE(QCMSLIB)
qcms_transform* colorTransform() const { return m_transform; }
int m_repetitionCount;
int m_decodedHeight;
+ typedef void (*AlphaBlendFunction)(ImageFrame&, ImageFrame&, int, int, int);
+ AlphaBlendFunction m_blendFunction;
+
void clear();
void clearDecoder();
};
-} // namespace WebCore
+} // namespace blink
#endif