|
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 // Registry file for the JPEG Bitmap Decoder Implementation |
|
15 // |
|
16 // |
|
17 |
|
18 #include <ecom/registryinfo.rh> |
|
19 #include <icl/icl_uids.hrh> |
|
20 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
21 #include <icl/icl_uids_const.hrh> |
|
22 #include <icl/icl_uids_def.hrh> |
|
23 #endif |
|
24 #include <icl/imagetransform.hrh> |
|
25 |
|
26 RESOURCE REGISTRY_INFO theInfo |
|
27 { |
|
28 dll_uid = KJPGCodecDllUidValue; |
|
29 interfaces = |
|
30 { |
|
31 INTERFACE_INFO |
|
32 { |
|
33 interface_uid = KDecoderInterfaceUidValue; |
|
34 implementations = |
|
35 { |
|
36 BINARY_IMPLEMENTATION_INFO |
|
37 { |
|
38 implementation_uid = KJPGDecoderImplementationUidValue; |
|
39 version_no = 1; |
|
40 display_name = "JPEG"; |
|
41 default_data = {0xFF, 0xD8}; |
|
42 opaque_data = { 2, 0, 0, |
|
43 0x10, 0x1F, 0x45, 0xD8, |
|
44 0x00, 0x00, 0x00, 0x00, |
|
45 0x10, 0x1F, 0x7C, 0x4F, |
|
46 1, |
|
47 0x2E, 0x6A, 0x70, 0x67, 0x0D, // ".jpg" |
|
48 2, |
|
49 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x65, 0x67, 0x0D, // "image/jpeg" |
|
50 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x67, 0x0D, // "image/jpg" |
|
51 11, |
|
52 0x10, 0x27, 0x37, 0xFB, // KSwCodecUidValue |
|
53 0x10, 0x27, 0x37, 0xFF, // KUidExifSupport |
|
54 0x10, 0x28, 0x70, 0x49, // KUidJpgAutoRotationSupport |
|
55 0x10, 0x27, 0x38, 0x0E, // KThumbnailSupportUidValue |
|
56 0x10, 0x27, 0x38, 0x10, // KDecodeToReducedSizeSupportUidValue |
|
57 0x10, 0x27, 0x38, 0x03, // KUidJPGSequential |
|
58 0x10, 0x27, 0x38, 0x04, // KUidJPGProgressive |
|
59 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
60 0x00, 0x00, 0x3D, 0x00, // Extensions: Crop | Rotation | MirrorHA | MirrorVA | Scaling |
|
61 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
62 0x00, 0x00, 0x02, 0x00 // Extensions: Stream |
|
63 }; |
|
64 }, |
|
65 |
|
66 BINARY_IMPLEMENTATION_INFO |
|
67 { |
|
68 implementation_uid = KJPGDecoderImplementation2UidValue; |
|
69 version_no = 1; |
|
70 display_name = "JPEG"; |
|
71 default_data = {0xFF, 0xD8}; |
|
72 opaque_data = { 2, 0, 0, |
|
73 0x10, 0x1F, 0x45, 0xD8, |
|
74 0x00, 0x00, 0x00, 0x00, |
|
75 0x10, 0x1F, 0x7C, 0x60, // KUidICLJpegImageFrameInterface |
|
76 1, |
|
77 0x2E, 0x6A, 0x70, 0x67, 0x0D, // ".jpg" |
|
78 1, |
|
79 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x65, 0x67, 0x0D, // "image/jpeg" |
|
80 9, |
|
81 0x10, 0x27, 0x37, 0x63, // KFormatYUVMonochromeUid |
|
82 0x10, 0x27, 0x37, 0x68, // KFormatYUV420PlanarUid |
|
83 0x10, 0x27, 0x37, 0x69, // KFormatYUV422InterleavedUid |
|
84 0x10, 0x27, 0x37, 0x6D, // KUidFormatYUV420PlanarReversed |
|
85 0x10, 0x27, 0x37, 0xFF, // KUidExifSupport |
|
86 0x10, 0x27, 0x38, 0x03, // KUidJPGSequential |
|
87 0x10, 0x27, 0x37, 0xFB, // KSwCodecUidValue |
|
88 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
89 0x00, 0x00, 0x02, 0x00 // Extensions: Stream |
|
90 }; |
|
91 } |
|
92 }; |
|
93 }, |
|
94 |
|
95 INTERFACE_INFO |
|
96 { |
|
97 interface_uid = KEncoderInterfaceUidValue; |
|
98 implementations = |
|
99 { |
|
100 BINARY_IMPLEMENTATION_INFO |
|
101 { |
|
102 implementation_uid = KJPGEncoderImplementationUidValue; |
|
103 version_no = 1; |
|
104 display_name = "JPEG"; |
|
105 default_data = {0x3F}; // "?" - Won't match |
|
106 opaque_data = { 2, |
|
107 0, 0, |
|
108 0x10, 0x1F, 0x45, 0xD8, |
|
109 0, 0, 0, 0, |
|
110 0x10, 0x1F, 0x7C, 0x60, // KUidICLJpegImageFrameInterface |
|
111 1, |
|
112 0x2E, 0x6A, 0x70, 0x67, 0x0D, // .jpg |
|
113 1, |
|
114 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x65, 0x67, 0x0D, // image/jpeg |
|
115 8, |
|
116 0x10, 0x27, 0x37, 0xFB, // KSwCodecUidValue |
|
117 0x10, 0x27, 0x37, 0xFF, // KUidExifSupport |
|
118 0x10, 0x27, 0x38, 0x0E, // KThumbnailSupportUidValue |
|
119 0x10, 0x27, 0x38, 0x0F, // KThumbnailAutogenerationUidValue |
|
120 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
121 0x00, 0x00, 0x1E, 0x00, // Extensions: Rotation | MirrorHA | MirrorVA | UseWithSetThumbnail |
|
122 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
123 0x00, 0x00, 0x01, 0x00 // Extensions: Stream |
|
124 }; |
|
125 }, |
|
126 |
|
127 BINARY_IMPLEMENTATION_INFO |
|
128 { |
|
129 implementation_uid = KJPGEncoderImplementation2UidValue; |
|
130 version_no = 1; |
|
131 display_name = "JPEG"; |
|
132 default_data = {0x3F}; // "?" - Won't match |
|
133 opaque_data = { 2, |
|
134 0, 0, |
|
135 0x10, 0x1F, 0x45, 0xD8, |
|
136 0, 0, 0, 0, |
|
137 0x10, 0x1F, 0x7C, 0x60, // KUidICLJpegImageFrameInterface |
|
138 1, |
|
139 0x2E, 0x6A, 0x70, 0x67, 0x0D, // .jpg |
|
140 1, |
|
141 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x65, 0x67, 0x0D, // image/jpeg |
|
142 10, |
|
143 0x10, 0x27, 0x37, 0x63, // KFormatYUVMonochromeUid |
|
144 0x10, 0x27, 0x37, 0x68, // KFormatYUV420PlanarUid |
|
145 0x10, 0x27, 0x37, 0x69, // KFormatYUV422InterleavedUid |
|
146 0x10, 0x27, 0x37, 0x6D, // KUidFormatYUV420PlanarReversed |
|
147 0x10, 0x27, 0x37, 0xFB, // KSwCodecUidValue |
|
148 0x10, 0x27, 0x37, 0xFF, // KUidExifSupport |
|
149 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
150 0x00, 0x00, 0x0E, 0x00, // Extensions: Rotation | MirrorHA | MirrorVA |
|
151 0x10, 0x28, 0x33, 0xD8, // KUidICLExtension |
|
152 0x00, 0x00, 0x01, 0x00 // Extensions: Stream |
|
153 }; |
|
154 } |
|
155 }; |
|
156 }, |
|
157 |
|
158 INTERFACE_INFO |
|
159 { |
|
160 interface_uid = KUidTransformInterface; |
|
161 implementations = |
|
162 { |
|
163 BINARY_IMPLEMENTATION_INFO |
|
164 { |
|
165 implementation_uid = KUidTransformJpegPluginUidValue; |
|
166 version_no = 1; |
|
167 display_name = "JPEG"; |
|
168 default_data = {0xFF, 0xD8}; |
|
169 // version, flags, ImageTypeUid ImageSubTypeUid FileSuffixNum, FileSuffix, MimeTypeNum, MimeType |
|
170 opaque_data = {1, 0x00, 0x00, 0x10, 0x1F, 0x45, 0xD8, 0, 0, 0, 0, 1, 0x2E, 0x6A, 0x70, 0x67, 0x0D, 1, 0x69, 0x6D, 0x61, 0x67, 0x65, 0x2F, 0x6A, 0x70, 0x65, 0x67, 0x0D}; |
|
171 } |
|
172 }; |
|
173 } |
|
174 }; |
|
175 } |
|
176 |