|
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 __MBMCONVERT_H__ |
|
17 #define __MBMCONVERT_H__ |
|
18 |
|
19 #include "icl/ImagePlugin.h" |
|
20 #include "MBMCodec.h" |
|
21 |
|
22 |
|
23 // Decoder. |
|
24 class CMbmReadCodec; |
|
25 class CMbmDecoder : public CImageDecoderPlugin |
|
26 { |
|
27 public: |
|
28 static CMbmDecoder* NewL(); |
|
29 virtual ~CMbmDecoder(); |
|
30 |
|
31 virtual void ImageType(TInt aFrameNumber, TUid& aImageType, TUid& aImageSubType) const; |
|
32 CFrameInfoStrings* FrameInfoStringsL(RFs& aFs, TInt aFrameNumber); |
|
33 |
|
34 protected: |
|
35 void ScanDataL(); |
|
36 |
|
37 private: |
|
38 CMbmDecoder(); |
|
39 |
|
40 // From CImageDecoderPlugin |
|
41 // Called by ScanDataL. |
|
42 // Opens file, scans header and validates format. |
|
43 void ReadFormatL(); |
|
44 protected: |
|
45 TUint32 iRootStreamOffset; |
|
46 }; |
|
47 |
|
48 |
|
49 // Encoder. |
|
50 class CMbmWriteCodec; |
|
51 class CMbmEncoder : public CImageEncoderPlugin |
|
52 { |
|
53 public: |
|
54 static CMbmEncoder* NewL(); |
|
55 ~CMbmEncoder(); |
|
56 // From CImageEncoderPlugin |
|
57 void PrepareEncoderL(const CFrameImageData* aImageData); |
|
58 void UpdateHeaderL(); |
|
59 |
|
60 private: |
|
61 CMbmEncoder(); |
|
62 |
|
63 private: |
|
64 TDisplayMode iWriteDisplayMode; |
|
65 }; |
|
66 |
|
67 #endif // __MBMCONVERT_H__ |