|
1 // Copyright (c) 2001-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 #include <ecom/ecom.h> |
|
17 #include <ecom/implementationproxy.h> |
|
18 #include <icl/icl_uids.hrh> |
|
19 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
20 #include <icl/icl_uids_const.hrh> |
|
21 #include <icl/icl_uids_def.hrh> |
|
22 #endif |
|
23 #include "MBMCodec.h" |
|
24 |
|
25 #include <icl/imageconstruct.h> |
|
26 |
|
27 class CMbmDecodeConstruct : public CImageDecodeConstruct |
|
28 { |
|
29 public: |
|
30 static CMbmDecodeConstruct* NewL(); |
|
31 |
|
32 // from CImageDecodeConstruct |
|
33 CImageDecoderPlugin* NewPluginL() const; |
|
34 }; |
|
35 |
|
36 CMbmDecodeConstruct* CMbmDecodeConstruct::NewL() |
|
37 { |
|
38 CMbmDecodeConstruct* self = new (ELeave) CMbmDecodeConstruct; |
|
39 CleanupStack::PushL(self); |
|
40 self->ConstructL(); |
|
41 CleanupStack::Pop(self); |
|
42 return self; |
|
43 } |
|
44 |
|
45 CImageDecoderPlugin* CMbmDecodeConstruct::NewPluginL() const |
|
46 { |
|
47 return CMbmDecoder::NewL(); |
|
48 } |
|
49 |
|
50 class CMbmEncodeConstruct : public CImageEncodeConstruct |
|
51 { |
|
52 public: |
|
53 static CMbmEncodeConstruct* NewL(); |
|
54 |
|
55 // from CImageEncodeConstruct |
|
56 CImageEncoderPlugin* NewPluginL() const; |
|
57 }; |
|
58 |
|
59 CMbmEncodeConstruct* CMbmEncodeConstruct::NewL() |
|
60 { |
|
61 CMbmEncodeConstruct* self = new (ELeave) CMbmEncodeConstruct; |
|
62 CleanupStack::PushL(self); |
|
63 self->ConstructL(); |
|
64 CleanupStack::Pop(self); |
|
65 return self; |
|
66 } |
|
67 |
|
68 CImageEncoderPlugin* CMbmEncodeConstruct::NewPluginL() const |
|
69 { |
|
70 return CMbmEncoder::NewL(); |
|
71 } |
|
72 |
|
73 |
|
74 // Exported proxy for instantiation method resolution |
|
75 |
|
76 // Define the Implementation UIDs for TIFF decoder |
|
77 const TImplementationProxy ImplementationTable[] = |
|
78 { |
|
79 IMPLEMENTATION_PROXY_ENTRY(KMBMDecoderImplementationUidValue, CMbmDecodeConstruct::NewL), |
|
80 IMPLEMENTATION_PROXY_ENTRY(KMBMEncoderImplementationUidValue, CMbmEncodeConstruct::NewL), |
|
81 }; |
|
82 |
|
83 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
84 { |
|
85 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
86 return ImplementationTable; |
|
87 } |