Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
migaverse
GitHub Repository: migaverse/skymod
Path: blob/master/system/etc/media_codecs.xml
4282 views
1
<?xml version="1.0" encoding="utf-8" ?>
2
<!-- Copyright (C) 2012 The Android Open Source Project
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
-->
16
17
<!--
18
<!DOCTYPE MediaCodecs [
19
<!ELEMENT Include EMPTY>
20
<!ATTLIST Include href CDATA #REQUIRED>
21
<!ELEMENT MediaCodecs (Decoders|Encoders|Include)*>
22
<!ELEMENT Decoders (MediaCodec|Include)*>
23
<!ELEMENT Encoders (MediaCodec|Include)*>
24
<!ELEMENT MediaCodec (Type|Quirk|Include)*>
25
<!ATTLIST MediaCodec name CDATA #REQUIRED>
26
<!ATTLIST MediaCodec type CDATA>
27
<!ELEMENT Type EMPTY>
28
<!ATTLIST Type name CDATA #REQUIRED>
29
<!ELEMENT Quirk EMPTY>
30
<!ATTLIST Quirk name CDATA #REQUIRED>
31
]>
32
33
There's a simple and a complex syntax to declare the availability of a
34
media codec:
35
36
A codec that properly follows the OpenMax spec and therefore doesn't have any
37
quirks and that only supports a single content type can be declared like so:
38
39
<MediaCodec name="OMX.foo.bar" type="something/interesting" />
40
41
If a codec has quirks OR supports multiple content types, the following syntax
42
can be used:
43
44
<MediaCodec name="OMX.foo.bar" >
45
<Type name="something/interesting" />
46
<Type name="something/else" />
47
...
48
<Quirk name="requires-allocate-on-input-ports" />
49
<Quirk name="requires-allocate-on-output-ports" />
50
<Quirk name="output-buffers-are-unreadable" />
51
</MediaCodec>
52
53
Only the three quirks included above are recognized at this point:
54
55
"requires-allocate-on-input-ports"
56
must be advertised if the component does not properly support specification
57
of input buffers using the OMX_UseBuffer(...) API but instead requires
58
OMX_AllocateBuffer to be used.
59
60
"requires-allocate-on-output-ports"
61
must be advertised if the component does not properly support specification
62
of output buffers using the OMX_UseBuffer(...) API but instead requires
63
OMX_AllocateBuffer to be used.
64
65
"output-buffers-are-unreadable"
66
must be advertised if the emitted output buffers of a decoder component
67
are not readable, i.e. use a custom format even though abusing one of
68
the official OMX colorspace constants.
69
Clients of such decoders will not be able to access the decoded data,
70
naturally making the component much less useful. The only use for
71
a component with this quirk is to render the output to the screen.
72
Audio decoders MUST NOT advertise this quirk.
73
Video decoders that advertise this quirk must be accompanied by a
74
corresponding color space converter for thumbnail extraction,
75
matching surfaceflinger support that can render the custom format to
76
a texture and possibly other code, so just DON'T USE THIS QUIRK.
77
78
-->
79
80
<MediaCodecs>
81
<Decoders>
82
<MediaCodec name="OMX.SEC.amr.dec">
83
<Type name="audio/amr-wb" />
84
<Type name="audio/3gpp" />
85
<Quirk name="needs-flush-before-disable" />
86
<Quirk name="decoder-ignores-streamcorrupt-error" />
87
</MediaCodec>
88
89
<MediaCodec name="OMX.SEC.mp3.dec">
90
<Type name="audio/mpeg"/>
91
<Type name="audio/mpeg-L1"/>
92
<Type name="audio/mpeg-L2"/>
93
<Quirk name="needs-flush-before-disable" />
94
<Quirk name="decoder-ignores-streamcorrupt-error" />
95
</MediaCodec>
96
97
<MediaCodec name="OMX.SEC.aac.dec" type="audio/mp4a-latm" >
98
<Quirk name="needs-flush-before-disable" />
99
<Quirk name="decoder-ignores-streamcorrupt-error" />
100
</MediaCodec>
101
<MediaCodec name="OMX.SEC.flac.dec" type="audio/flac" >
102
<Quirk name="needs-flush-before-disable" />
103
<Quirk name="decoder-ignores-streamcorrupt-error" />
104
</MediaCodec>
105
<MediaCodec name="OMX.SEC.wma.dec" type="audio/x-ms-wma" >
106
<Quirk name="needs-flush-before-disable" />
107
<Quirk name="decoder-ignores-streamcorrupt-error" />
108
</MediaCodec>
109
<MediaCodec name="OMX.SEC.adpcm.dec" type="audio/x-ima" >
110
<Quirk name="needs-flush-before-disable" />
111
<Quirk name="decoder-ignores-streamcorrupt-error" />
112
</MediaCodec>
113
114
<MediaCodec name="OMX.Exynos.mpeg4.dec" type="video/mp4v-es" >
115
<Quirk name="requires-allocate-on-input-ports" />
116
<Quirk name="requires-allocate-on-output-ports" />
117
<Quirk name="decoder-ignores-streamcorrupt-error" />
118
<Quirk name="video-controller-check-enable" />
119
<Limit name="size" min="32x32" max="1920x1088" />
120
<Limit name="alignment" value="2x2" />
121
<Limit name="block-size" value="16x16" />
122
<Limit name="blocks-per-second" min="1" max="979200" />
123
<Limit name="bitrate" range="1-80000000" />
124
<Feature name="adaptive-playback" />
125
</MediaCodec>
126
<MediaCodec name="OMX.Exynos.h263.dec" type="video/3gpp" >
127
<Quirk name="requires-allocate-on-input-ports" />
128
<Quirk name="requires-allocate-on-output-ports" />
129
<Quirk name="decoder-ignores-streamcorrupt-error" />
130
<Quirk name="video-controller-check-enable" />
131
<Limit name="size" min="32x32" max="720x480" />
132
<Limit name="alignment" value="4x4" />
133
<Limit name="block-size" value="16x16" />
134
<Limit name="blocks-per-second" min="1" max="979200" />
135
<Limit name="bitrate" range="1-80000000" />
136
<Feature name="adaptive-playback" />
137
</MediaCodec>
138
<MediaCodec name="OMX.Exynos.avc.dec" type="video/avc" >
139
<Quirk name="requires-allocate-on-input-ports" />
140
<Quirk name="requires-allocate-on-output-ports" />
141
<Quirk name="decoder-ignores-streamcorrupt-error" />
142
<Quirk name="video-controller-check-enable" />
143
<Limit name="size" min="32x32" max="4096x2160" />
144
<Limit name="alignment" value="2x2" />
145
<Limit name="block-size" value="16x16" />
146
<Limit name="blocks-per-second" min="1" max="979200" />
147
<Limit name="bitrate" range="1-100000000" />
148
<Feature name="adaptive-playback" />
149
</MediaCodec>
150
<MediaCodec name="OMX.Exynos.avc.dec.secure" type="video/avc" >
151
<Quirk name="requires-allocate-on-input-ports" />
152
<Quirk name="requires-allocate-on-output-ports" />
153
<Quirk name="decoder-ignores-streamcorrupt-error" />
154
<Quirk name="video-controller-check-enable" />
155
<Limit name="size" min="32x32" max="4096x2160" />
156
<Limit name="alignment" value="2x2" />
157
<Limit name="block-size" value="16x16" />
158
<Limit name="blocks-per-second" min="1" max="979200" />
159
<Limit name="bitrate" range="1-100000000" />
160
<Feature name="adaptive-playback" />
161
<Feature name="secure-playback" required="true" />
162
</MediaCodec>
163
<MediaCodec name="OMX.Exynos.vp8.dec" type="video/x-vnd.on2.vp8" >
164
<Quirk name="requires-allocate-on-input-ports" />
165
<Quirk name="requires-allocate-on-output-ports" />
166
<Quirk name="decoder-ignores-streamcorrupt-error" />
167
<Quirk name="video-controller-check-enable" />
168
<Limit name="size" min="32x32" max="4096x2160" />
169
<Limit name="alignment" value="2x2" />
170
<Limit name="block-size" value="16x16" />
171
<Limit name="blocks-per-second" min="1" max="979200" />
172
<Limit name="bitrate" range="1-60000000" />
173
<Feature name="adaptive-playback" />
174
</MediaCodec>
175
<MediaCodec name="OMX.Exynos.hevc.dec" type="video/hevc" >
176
<Quirk name="requires-allocate-on-input-ports" />
177
<Quirk name="requires-allocate-on-output-ports" />
178
<Quirk name="decoder-ignores-streamcorrupt-error" />
179
<Quirk name="video-controller-check-enable" />
180
<Limit name="size" min="64x64" max="4096x2160" />
181
<Limit name="alignment" value="2x2" />
182
<Limit name="block-size" value="64x64" />
183
<Limit name="blocks-per-second" min="1" max="61200" />
184
<Limit name="bitrate" range="1-100000000" />
185
<Feature name="adaptive-playback" />
186
</MediaCodec>
187
<MediaCodec name="OMX.Exynos.vp9.dec" type="video/x-vnd.on2.vp9" >
188
<Quirk name="requires-allocate-on-input-ports" />
189
<Quirk name="requires-allocate-on-output-ports" />
190
<Quirk name="decoder-ignores-streamcorrupt-error" />
191
<Quirk name="video-controller-check-enable" />
192
<Limit name="size" min="64x64" max="4096x2160" />
193
<Limit name="alignment" value="2x2" />
194
<Limit name="block-size" value="64x64" />
195
<Limit name="blocks-per-second" min="1" max="61200" />
196
<Limit name="bitrate" range="1-60000000" />
197
<Feature name="adaptive-playback" />
198
</MediaCodec>
199
<MediaCodec name="OMX.Exynos.vc1.dec" >
200
<Type name="video/wvc1" />
201
<Type name="video/x-ms-wmv" />
202
<Limit name="size" min="32x32" max="1920x1088" />
203
<Limit name="alignment" value="2x2" />
204
<Limit name="block-size" value="16x16" />
205
<Limit name="blocks-per-second" min="1" max="979200" />
206
<Limit name="bitrate" range="1-80000000" />
207
<Feature name="adaptive-playback" />
208
<Quirk name="requires-allocate-on-input-ports" />
209
<Quirk name="requires-allocate-on-output-ports" />
210
<Quirk name="decoder-ignores-streamcorrupt-error" />
211
<Quirk name="video-controller-check-enable" />
212
</MediaCodec>
213
214
<MediaCodec name="OMX.SEC.h263.sw.dec" type="video/3gpp" >
215
<Quirk name="decoder-ignores-streamcorrupt-error" />
216
</MediaCodec>
217
<MediaCodec name="OMX.SEC.avc.sw.dec" type="video/avc" >
218
<Quirk name="decoder-ignores-streamcorrupt-error" />
219
<Feature name="adaptive-playback" />
220
</MediaCodec>
221
<MediaCodec name="OMX.SEC.hevc.sw.dec" type="video/hevc" >
222
<Quirk name="decoder-ignores-streamcorrupt-error" />
223
<Feature name="adaptive-playback" />
224
</MediaCodec>
225
<MediaCodec name="OMX.SEC.mpeg4.sw.dec" type="video/mp4v-es" >
226
<Quirk name="decoder-ignores-streamcorrupt-error" />
227
</MediaCodec>
228
<MediaCodec name="OMX.SEC.vc1.sw.dec" >
229
<Type name="video/wvc1" />
230
<Type name="video/x-ms-wmv" />
231
<Quirk name="decoder-ignores-streamcorrupt-error" />
232
</MediaCodec>
233
<MediaCodec name="OMX.SEC.wmv7.dec" type="video/x-ms-wmv7" >
234
<Quirk name="decoder-ignores-streamcorrupt-error" />
235
</MediaCodec>
236
<MediaCodec name="OMX.SEC.wmv8.dec" type="video/x-ms-wmv8" >
237
<Quirk name="decoder-ignores-streamcorrupt-error" />
238
</MediaCodec>
239
<MediaCodec name="OMX.SEC.h263sr.dec" type="video/sorenson" >
240
<Quirk name="decoder-ignores-streamcorrupt-error" />
241
</MediaCodec>
242
<MediaCodec name="OMX.SEC.mp43.dec" type="video/mp43" >
243
<Quirk name="decoder-ignores-streamcorrupt-error" />
244
</MediaCodec>
245
<MediaCodec name="OMX.SEC.vp8.dec" type="video/x-vnd.on2.vp8" >
246
<Quirk name="decoder-ignores-streamcorrupt-error" />
247
<Feature name="adaptive-playback" />
248
</MediaCodec>
249
250
<MediaCodec name="OMX.Exynos.MP3.Decoder">
251
<Type name="audio/mpeg"/>
252
<Type name="audio/mpeg-L1"/>
253
<Type name="audio/mpeg-L2"/>
254
<Quirk name="needs-flush-before-disable" />
255
<Quirk name="supports-multiple-frames-per-input" />
256
</MediaCodec>
257
258
<MediaCodec name="OMX.Exynos.AAC.Decoder" type="audio/mp4a-latm" />
259
</Decoders>
260
261
<Encoders>
262
<MediaCodec name="OMX.Exynos.AVC.Encoder" type="video/avc" >
263
<Quirk name="requires-allocate-on-input-ports" />
264
<Quirk name="requires-allocate-on-output-ports" />
265
<Quirk name="video-controller-check-enable" />
266
<Limit name="size" min="32x32" max="3840x2160" />
267
<Limit name="alignment" value="2x2" />
268
<Limit name="block-size" value="16x16" />
269
<Limit name="blocks-per-second" min="1" max="979200" />
270
<Limit name="bitrate" range="1-100000000" />
271
</MediaCodec>
272
<MediaCodec name="OMX.Exynos.H263.Encoder" type="video/3gpp" >
273
<Quirk name="requires-allocate-on-input-ports" />
274
<Quirk name="requires-allocate-on-output-ports" />
275
<Quirk name="video-controller-check-enable" />
276
<Limit name="size" min="32x32" max="2048x1152" />
277
<Limit name="alignment" value="4x4" />
278
<Limit name="block-size" value="16x16" />
279
<Limit name="blocks-per-second" min="1" max="979200" />
280
<Limit name="bitrate" range="1-80000000" />
281
</MediaCodec>
282
<MediaCodec name="OMX.Exynos.MPEG4.Encoder" type="video/mp4v-es" >
283
<Quirk name="requires-allocate-on-input-ports" />
284
<Quirk name="requires-allocate-on-output-ports" />
285
<Quirk name="video-controller-check-enable" />
286
<Limit name="size" min="32x32" max="1920x1088" />
287
<Limit name="alignment" value="2x2" />
288
<Limit name="block-size" value="16x16" />
289
<Limit name="blocks-per-second" min="1" max="979200" />
290
<Limit name="bitrate" range="1-80000000" />
291
</MediaCodec>
292
<MediaCodec name="OMX.Exynos.HEVC.Encoder" type="video/hevc" >
293
<Quirk name="requires-allocate-on-input-ports" />
294
<Quirk name="requires-allocate-on-output-ports" />
295
<Quirk name="video-controller-check-enable" />
296
<Limit name="size" min="64x64" max="3840x2160" />
297
<Limit name="alignment" value="2x2" />
298
<Limit name="block-size" value="32x32" />
299
<Limit name="blocks-per-second" min="1" max="61200" />
300
<Limit name="bitrate" range="1-100000000" />
301
</MediaCodec>
302
</Encoders>
303
<Include href="media_codecs_google_video.xml" />
304
<Include href="media_codecs_google_audio.xml" />
305
<Include href="media_codecs_google_telephony.xml" />
306
<Encoders>
307
<MediaCodec name="OMX.SEC.naac.enc" type="audio/mp4a-latm">
308
<Limit name="channel-count" max="6" />
309
<Limit name="sample-rate" ranges="11025,12000,16000,22050,24000,32000,44100,48000" />
310
<Limit name="bitrate" range="8000-960000" />
311
</MediaCodec>
312
</Encoders>
313
</MediaCodecs>
314
315