equal
deleted
inserted
replaced
|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __WBMPCODEC_H__ |
|
17 #define __WBMPCODEC_H__ |
|
18 |
|
19 #include <bitdev.h> |
|
20 #include <icl/imageprocessor.h> |
|
21 #include <icl/imagecodec.h> |
|
22 |
|
23 #include "WBMPConvert.h" |
|
24 |
|
25 // KWBmpMaxImageSize is the maximum size for width and height |
|
26 const TUint KWBmpMaxImageSize = KMaxTInt32; |
|
27 // WBMP Read codec. |
|
28 class CWbmpReadCodec : public CImageProcessorReadCodec |
|
29 { |
|
30 public: |
|
31 static CWbmpReadCodec* NewL(const TSize& aWbmpSize); |
|
32 |
|
33 // From CImageReadCodec |
|
34 virtual void InitFrameL(TFrameInfo& aFrameInfo, CFrameImageData& aFrameImageData, TBool aDisableErrorDiffusion, CFbsBitmap& aDestination, CFbsBitmap* aDestinationMask); |
|
35 ~CWbmpReadCodec(); |
|
36 |
|
37 protected: |
|
38 TFrameState ProcessFrameL(TBufPtr8& aSrc); |
|
39 |
|
40 void DoProcessL(); |
|
41 |
|
42 private: |
|
43 CWbmpReadCodec(const TSize& aWbmpSize); |
|
44 |
|
45 protected: |
|
46 TSize iOriginalSize; |
|
47 TSize iFrameSize; |
|
48 const TUint8* iDataPtr; |
|
49 const TUint8* iDataPtrLimit; |
|
50 TInt iBytesExpected; |
|
51 TInt iBytesProcessed; |
|
52 }; |
|
53 |
|
54 #endif // __WBMPCODEC_H__ |
|
55 |