• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef PLUGIN_METADATA_H
17 #define PLUGIN_METADATA_H
18 
19 namespace OHOS {
20 namespace MultimediaPlugin {
21 const std::vector<std::string> META_DATA = {
22     R"(
23         {
24           "packageName":"LibJpegPlugin",
25           "version":"1.0.0.0",
26           "targetVersion":"1.0.0.0",
27           "libraryPath":"libjpegplugin.z.so",
28           "classes": [
29             {
30               "className":"OHOS::ImagePlugin::JpegDecoder",
31               "services": [
32                 {
33                   "interfaceID":2,
34                   "serviceType":0
35                 }
36               ],
37               "priority":100,
38               "capabilities": [
39                 {
40                   "name":"encodeFormat",
41                   "type":"string",
42                   "value": "image/jpeg"
43                 }
44               ]
45             },
46             {
47               "className":"OHOS::ImagePlugin::JpegEncoder",
48               "services": [
49                 {
50                   "interfaceID":3,
51                   "serviceType":0
52                 }
53               ],
54               "priority":100,
55               "capabilities": [
56                 {
57                   "name":"encodeFormat",
58                   "type":"string",
59                   "value": "image/jpeg"
60                 }
61               ]
62             }
63           ]
64         }
65     )",
66     R"(
67         {
68           "packageName":"LibPngPlugin",
69           "version":"1.0.0.0",
70           "targetVersion":"1.0.0.0",
71           "libraryPath":"libpngplugin.z.so",
72           "classes": [
73             {
74               "className":"OHOS::ImagePlugin::PngDecoder",
75               "services": [
76                 {
77                   "interfaceID":2,
78                   "serviceType":0
79                 }
80               ],
81               "priority":100,
82               "capabilities": [
83                 {
84                   "name":"encodeFormat",
85                   "type":"string",
86                   "value": "image/png"
87                 }
88               ]
89             }
90           ]
91         }
92     )",
93     R"(
94         {
95           "packageName":"LibRawPlugin",
96           "version":"1.0.0.0",
97           "targetVersion":"1.0.0.0",
98           "libraryPath":"librawplugin.z.so",
99           "classes": [
100             {
101               "className":"OHOS::ImagePlugin::RawDecoder",
102               "services": [
103                 {
104                   "interfaceID":2,
105                   "serviceType":0
106                 }
107               ],
108               "priority":100,
109               "capabilities": [
110                 {
111                   "name":"encodeFormat",
112                   "type":"string",
113                   "value": "image/x-raw"
114                 }
115               ]
116             }
117           ]
118         }
119     )",
120     R"(
121         {
122           "packageName":"LibSvgPlugin",
123           "version":"1.0.0.0",
124           "targetVersion":"1.0.0.0",
125           "libraryPath":"libsvgplugin.z.so",
126           "classes": [
127             {
128               "className":"OHOS::ImagePlugin::SvgDecoder",
129               "services": [
130                 {
131                   "interfaceID":2,
132                   "serviceType":0
133                 }
134               ],
135               "priority":100,
136               "capabilities": [
137                 {
138                   "name":"encodeFormat",
139                   "type":"string",
140                   "value": "image/svg+xml"
141                 }
142               ]
143             }
144           ]
145         }
146     )",
147     R"(
148         {
149           "packageName":"LibWebpPlugin",
150           "version":"1.0.0.0",
151           "targetVersion":"1.0.0.0",
152           "libraryPath":"libwebpplugin.z.so",
153           "classes": [
154             {
155               "className":"OHOS::ImagePlugin::WebpDecoder",
156               "services": [
157                 {
158                   "interfaceID":2,
159                   "serviceType":0
160                 }
161               ],
162               "priority":100,
163               "capabilities": [
164                 {
165                   "name":"encodeFormat",
166                   "type":"string",
167                   "value": "image/webp"
168                 }
169               ]
170             },
171             {
172               "className":"OHOS::ImagePlugin::WebpEncoder",
173               "services": [
174                 {
175                   "interfaceID":3,
176                   "serviceType":0
177                 }
178               ],
179               "priority":100,
180               "capabilities": [
181                 {
182                   "name":"encodeFormat",
183                   "type":"string",
184                   "value": "image/webp"
185                 }
186               ]
187             }
188           ]
189         }
190     )",
191     R"(
192         {
193           "packageName":"LibBmpPlugin",
194           "version":"1.0.0.0",
195           "targetVersion":"1.0.0.0",
196           "libraryPath":"libbmpplugin.z.so",
197           "classes": [
198             {
199               "className":"OHOS::ImagePlugin::BmpDecoder",
200               "services": [
201                 {
202                   "interfaceID":2,
203                   "serviceType":0
204                 }
205               ],
206               "priority":100,
207               "capabilities": [
208                 {
209                   "name":"encodeFormat",
210                   "type":"string",
211                   "value": "image/bmp"
212                 }
213               ]
214             }
215           ]
216         }
217     )",
218     R"(
219         {
220           "packageName":"LibGifPlugin",
221           "version":"1.0.0.0",
222           "targetVersion":"1.0.0.0",
223           "libraryPath":"libgifplugin.z.so",
224           "classes": [
225             {
226               "className":"OHOS::ImagePlugin::GifDecoder",
227               "services": [
228                 {
229                   "interfaceID":2,
230                   "serviceType":0
231                 }
232               ],
233               "priority":100,
234               "capabilities": [
235                 {
236                   "name":"encodeFormat",
237                   "type":"string",
238                   "value": "image/gif"
239                 }
240               ]
241             }
242           ]
243         }
244     )",
245     R"(
246         {
247           "packageName":"LibImageFormatAgent",
248           "version":"1.0.0.0",
249           "targetVersion":"1.0.0.0",
250           "libraryPath":"libimageformatagent.z.so",
251           "classes": [
252             {
253               "className":"OHOS::ImagePlugin::JpegFormatAgent",
254               "services": [
255                 {
256                   "interfaceID":1,
257                   "serviceType":0
258                 }
259               ],
260               "priority":100,
261               "capabilities": [
262                 {
263                   "name":"encodeFormat",
264                   "type":"string",
265                   "value": "image/jpeg"
266                 }
267               ]
268             },
269             {
270               "className":"OHOS::ImagePlugin::PngFormatAgent",
271               "services": [
272                 {
273                   "interfaceID":1,
274                   "serviceType":0
275                 }
276               ],
277               "priority":100,
278               "capabilities": [
279                 {
280                   "name":"encodeFormat",
281                   "type":"string",
282                   "value": "image/png"
283                 }
284               ]
285             },
286             {
287               "className":"OHOS::ImagePlugin::GifFormatAgent",
288               "services": [
289                 {
290                   "interfaceID":1,
291                   "serviceType":0
292                 }
293               ],
294               "priority":100,
295               "capabilities": [
296                 {
297                   "name":"encodeFormat",
298                   "type":"string",
299                   "value": "image/gif"
300                 }
301               ]
302             },
303             {
304               "className":"OHOS::ImagePlugin::HeifFormatAgent",
305               "services": [
306                 {
307                   "interfaceID":1,
308                   "serviceType":0
309                 }
310               ],
311               "priority":100,
312               "capabilities": [
313                 {
314                   "name":"encodeFormat",
315                   "type":"string",
316                   "value": "image/heif"
317                 }
318               ]
319             },
320             {
321               "className":"OHOS::ImagePlugin::WebpFormatAgent",
322               "services": [
323                 {
324                   "interfaceID":1,
325                   "serviceType":0
326                 }
327               ],
328               "priority":100,
329               "capabilities": [
330                 {
331                   "name":"encodeFormat",
332                   "type":"string",
333                   "value": "image/webp"
334                 }
335               ]
336             },
337             {
338               "className":"OHOS::ImagePlugin::BmpFormatAgent",
339               "services": [
340                 {
341                   "interfaceID":1,
342                   "serviceType":0
343                 }
344               ],
345               "priority":100,
346               "capabilities": [
347                 {
348                   "name":"encodeFormat",
349                   "type":"string",
350                   "value": "image/bmp"
351                 }
352               ]
353             },
354             {
355               "className":"OHOS::ImagePlugin::WbmpFormatAgent",
356               "services": [
357                 {
358                   "interfaceID":1,
359                   "serviceType":0
360                 }
361               ],
362               "priority":100,
363               "capabilities": [
364                 {
365                   "name":"encodeFormat",
366                   "type":"string",
367                   "value": "image/vnd.wap.wbmp"
368                 }
369               ]
370             },
371             {
372               "className":"OHOS::ImagePlugin::SvgFormatAgent",
373               "services": [
374                 {
375                   "interfaceID":1,
376                   "serviceType":0
377                 }
378               ],
379               "priority":100,
380               "capabilities": [
381                 {
382                   "name":"encodeFormat",
383                   "type":"string",
384                   "value": "image/svg+xml"
385                 }
386               ]
387             },
388             {
389               "className":"OHOS::ImagePlugin::RawFormatAgent",
390               "services": [
391                 {
392                   "interfaceID":1,
393                   "serviceType":0
394                 }
395               ],
396               "priority":100,
397               "capabilities": [
398                 {
399                   "name":"encodeFormat",
400                   "type":"string",
401                   "value": "image/x-raw"
402                 }
403               ]
404             }
405           ]
406         }
407     )"
408 };
409 } // namespace MultimediaPlugin
410 } // namespace OHOS
411 
412 #endif // PLUGIN_METADATA_H
413