equal
deleted
inserted
replaced
46 #ifndef ANIMATIONDECODERWRAPPED_H_ |
46 #ifndef ANIMATIONDECODERWRAPPED_H_ |
47 #define ANIMATIONDECODERWRAPPED_H_ |
47 #define ANIMATIONDECODERWRAPPED_H_ |
48 |
48 |
49 // INCLUDES |
49 // INCLUDES |
50 |
50 |
|
51 #include <../bidi.h> |
|
52 #include "config.h" |
51 #include <e32base.h> |
53 #include <e32base.h> |
52 #include <imageconversion.h> // TFrameInfo |
54 #include <imageconversion.h> // TFrameInfo |
|
55 #include <RefPtr.h> |
53 |
56 |
54 // FORWARD DECLARATIONS |
57 // FORWARD DECLARATIONS |
55 class CMaskedBitmap; |
58 class CMaskedBitmap; |
56 class CBufferedImageDecoder; |
59 class CBufferedImageDecoder; |
57 class CSynDecodeThread; |
60 class CSynDecodeThread; |
58 namespace WebCore { |
61 namespace WebCore { |
59 class ImageObserver; |
62 class ImageObserver; |
60 } |
63 class SharedBuffer; |
61 // CONSTANTS |
64 }; |
62 |
65 |
63 _LIT(KMimeJPEG, "image/jpeg"); |
66 _LIT(KMimeJPEG, "image/jpeg"); |
64 _LIT(KMimeJPG, "image/jpg"); |
67 _LIT(KMimeJPG, "image/jpg"); |
65 _LIT(KMimeGIF, "image/gif"); |
68 _LIT(KMimeGIF, "image/gif"); |
66 _LIT(KMimePNG, "image/png"); |
69 _LIT(KMimePNG, "image/png"); |
104 public: |
107 public: |
105 |
108 |
106 /* |
109 /* |
107 * From MIHLFileImage, see base class header. |
110 * From MIHLFileImage, see base class header. |
108 */ |
111 */ |
109 void OpenL( const TDesC8& aData, TDesC* aMIMEType, TBool aIsComplete ); |
112 void OpenL( WebCore::SharedBuffer* aData, TDesC* aMIMEType, TBool aIsComplete ); |
110 void OpenAndDecodeSyncL( const TDesC8& aData ); |
113 void OpenAndDecodeSyncL( const TDesC8& aData ); |
111 |
114 |
112 /* |
115 /* |
113 * From MIHLFileImage, see base class header. |
116 * From MIHLFileImage, see base class header. |
114 */ |
117 */ |
115 void AddDataL( const TDesC8& aData, TBool aIsComplete ); |
|
116 |
|
117 /* |
|
118 * From MIHLFileImage, see base class header. |
|
119 */ |
|
120 TSize Size() const { return iFrameInfo.iOverallSizeInPixels; } |
118 TSize Size() const { return iFrameInfo.iOverallSizeInPixels; } |
121 |
119 |
122 /* |
120 /* |
123 * From MIHLFileImage, see base class header. |
121 * From MIHLFileImage, see base class header. |
124 */ |
122 */ |
125 TDisplayMode DisplayMode() const { return KMaxDepth; } |
123 TDisplayMode DisplayMode() const { return KMaxDepth;} |
126 |
124 |
127 /* |
125 /* |
128 * From MIHLFileImage, see base class header. |
126 * From MIHLFileImage, see base class header. |
129 */ |
127 */ |
130 TDisplayMode MaskDisplayMode() const; |
128 TDisplayMode MaskDisplayMode() const; |
131 |
129 |
223 EStartLoad, |
221 EStartLoad, |
224 ECompleteLoad, |
222 ECompleteLoad, |
225 }; |
223 }; |
226 |
224 |
227 private: // Data |
225 private: // Data |
228 |
226 RefPtr<WebCore::SharedBuffer> m_data; |
|
227 TPtrC8 m_dataptr; |
229 // Image status & state |
228 // Image status & state |
230 TRequestStatus* iImageStatus; |
229 TRequestStatus* iImageStatus; |
231 TImageState iImageState; |
230 TImageState iImageState; |
232 |
231 |
233 // Own: Image decoder |
232 // Own: Image decoder |
234 CBufferedImageDecoder* iDecoder; // owned |
233 CImageDecoder* iDecoder; // owned |
235 |
234 |
236 TFrameInfo iFrameInfo; |
235 TFrameInfo iFrameInfo; |
237 TBool iAnimation; |
236 TBool iAnimation; |
238 TInt iAnimationFrameCount; |
237 TInt iAnimationFrameCount; |
239 |
238 |