OSDN Git Service

init.sh: fix virgl support of newer kernel
[android-x86/device-generic-common.git] / media_profiles.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2010 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 <!DOCTYPE MediaSettings [
17 <!ELEMENT MediaSettings (CamcorderProfiles,
18                          EncoderOutputFileFormat+,
19                          VideoEncoderCap+,
20                          AudioEncoderCap+,
21                          VideoDecoderCap,
22                          AudioDecoderCap)>
23 <!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)>
24 <!ELEMENT EncoderProfile (Video, Audio)>
25 <!ATTLIST EncoderProfile quality (high|low) #REQUIRED>
26 <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
27 <!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
28 <!ELEMENT Video EMPTY>
29 <!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
30 <!ATTLIST Video bitRate CDATA #REQUIRED>
31 <!ATTLIST Video width CDATA #REQUIRED>
32 <!ATTLIST Video height CDATA #REQUIRED>
33 <!ATTLIST Video frameRate CDATA #REQUIRED>
34 <!ELEMENT Audio EMPTY>
35 <!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
36 <!ATTLIST Audio bitRate CDATA #REQUIRED>
37 <!ATTLIST Audio sampleRate CDATA #REQUIRED>
38 <!ATTLIST Audio channels (1|2) #REQUIRED>
39 <!ELEMENT ImageEncoding EMPTY>
40 <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
41 <!ELEMENT ImageDecoding EMPTY>
42 <!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
43 <!ELEMENT Camera EMPTY>
44 <!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
45 <!ELEMENT EncoderOutputFileFormat EMPTY>
46 <!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED>
47 <!ELEMENT VideoEncoderCap EMPTY>
48 <!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED>
49 <!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED>
50 <!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED>
51 <!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED>
52 <!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED>
53 <!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED>
54 <!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED>
55 <!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED>
56 <!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED>
57 <!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED>
58 <!ELEMENT AudioEncoderCap EMPTY>
59 <!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED>
60 <!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED>
61 <!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED>
62 <!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED>
63 <!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED>
64 <!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED>
65 <!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED>
66 <!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED>
67 <!ELEMENT VideoDecoderCap EMPTY>
68 <!ATTLIST VideoDecoderCap name (wmv) #REQUIRED>
69 <!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED>
70 <!ELEMENT AudioDecoderCap EMPTY>
71 <!ATTLIST AudioDecoderCap name (wma) #REQUIRED>
72 <!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED>
73 ]>
74 <!--
75      This file is used to declare the multimedia profiles and capabilities
76      on an android-powered device.
77 -->
78 <MediaSettings>
79     <!-- Each camcorder profile defines a set of predefined configuration parameters -->
80     <CamcorderProfiles cameraId="0">
81
82         <EncoderProfile quality="low" fileFormat="mp4" duration="30">
83             <Video codec="h264"
84                    bitRate="256000"
85                    width="176"
86                    height="144"
87                    frameRate="30" />
88
89             <Audio codec="amrnb"
90                    bitRate="12200"
91                    sampleRate="8000"
92                    channels="1" />
93
94         </EncoderProfile>
95
96         <EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
97             <Video codec="h264"
98                    bitRate="256000"
99                    width="176"
100                    height="144"
101                    frameRate="30" />
102
103             <Audio codec="amrnb"
104                    bitRate="12200"
105                    sampleRate="8000"
106                    channels="1" />
107         </EncoderProfile>
108
109         <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
110             <Video codec="h264"
111                    bitRate="256000"
112                    width="352"
113                    height="288"
114                    frameRate="30" />
115
116             <Audio codec="amrnb"
117                    bitRate="12200"
118                    sampleRate="8000"
119                    channels="1" />
120         </EncoderProfile>
121
122         <EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
123             <Video codec="h264"
124                    bitRate="640000"
125                    width="320"
126                    height="240"
127                    frameRate="15" />
128
129             <Audio codec="aac"
130                    bitRate="32000"
131                    sampleRate="44100"
132                    channels="1" />
133
134         </EncoderProfile>
135         <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
136             <Video codec="h264"
137                    bitRate="3000000"
138                    width="640"
139                    height="480"
140                    frameRate="30" />
141
142             <Audio codec="aac"
143                    bitRate="12200"
144                    sampleRate="8000"
145                    channels="1" />
146         </EncoderProfile>
147
148         <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
149             <Video codec="h264"
150                    bitRate="3000000"
151                    width="1280"
152                    height="720"
153                    frameRate="30" />
154
155             <Audio codec="aac"
156                    bitRate="12200"
157                    sampleRate="8000"
158                    channels="1" />
159         </EncoderProfile>
160
161         <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
162             <Video codec="h264"
163                    bitRate="256000"
164                    width="176"
165                    height="144"
166                    frameRate="30" />
167
168             <Audio codec="amrnb"
169                    bitRate="12200"
170                    sampleRate="8000"
171                    channels="1" />
172
173         </EncoderProfile>
174
175         <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
176             <Video codec="h264"
177                    bitRate="256000"
178                    width="176"
179                    height="144"
180                    frameRate="30" />
181
182             <Audio codec="amrnb"
183                    bitRate="12200"
184                    sampleRate="8000"
185                    channels="1" />
186         </EncoderProfile>
187
188         <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
189             <Video codec="h264"
190                    bitRate="256000"
191                    width="352"
192                    height="288"
193                    frameRate="30" />
194
195             <Audio codec="amrnb"
196                    bitRate="12200"
197                    sampleRate="8000"
198                    channels="1" />
199         </EncoderProfile>
200
201         <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
202             <Video codec="h264"
203                    bitRate="3000000"
204                    width="640"
205                    height="480"
206                    frameRate="30" />
207
208             <Audio codec="aac"
209                    bitRate="12200"
210                    sampleRate="8000"
211                    channels="1" />
212         </EncoderProfile>
213
214         <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
215             <Video codec="h264"
216                    bitRate="3000000"
217                    width="1280"
218                    height="720"
219                    frameRate="30" />
220
221             <Audio codec="aac"
222                    bitRate="12200"
223                    sampleRate="8000"
224                    channels="1" />
225         </EncoderProfile>
226
227         <ImageEncoding quality="90" />
228         <ImageEncoding quality="80" />
229         <ImageEncoding quality="70" />
230         <ImageDecoding memCap="20000000" />
231
232         <Camera previewFrameRate="30" />
233
234     </CamcorderProfiles>
235
236     <CamcorderProfiles cameraId="1">
237
238         <EncoderProfile quality="high" fileFormat="mp4" duration="60">
239             <Video codec="h264"
240                    bitRate="3000000"
241                    width="1280"
242                    height="720"
243                    frameRate="30" />
244
245             <Audio codec="aac"
246                    bitRate="12200"
247                    sampleRate="8000"
248                    channels="1" />
249         </EncoderProfile>
250
251         <EncoderProfile quality="low" fileFormat="mp4" duration="30">
252             <Video codec="h264"
253                    bitRate="256000"
254                    width="176"
255                    height="144"
256                    frameRate="30" />
257
258             <Audio codec="amrnb"
259                    bitRate="12200"
260                    sampleRate="8000"
261                    channels="1" />
262         </EncoderProfile>
263
264         <EncoderProfile quality="qcif" fileFormat="mp4" duration="30">
265             <Video codec="h264"
266                    bitRate="256000"
267                    width="176"
268                    height="144"
269                    frameRate="30" />
270
271             <Audio codec="amrnb"
272                    bitRate="12200"
273                    sampleRate="8000"
274                    channels="1" />
275         </EncoderProfile>
276
277         <EncoderProfile quality="qvga" fileFormat="mp4" duration="30">
278             <Video codec="h264"
279                    bitRate="640000"
280                    width="320"
281                    height="240"
282                    frameRate="15" />
283
284             <Audio codec="aac"
285                    bitRate="32000"
286                    sampleRate="44100"
287                    channels="1" />
288
289         </EncoderProfile>
290
291         <EncoderProfile quality="cif" fileFormat="mp4" duration="30">
292             <Video codec="h264"
293                    bitRate="256000"
294                    width="352"
295                    height="288"
296                    frameRate="30" />
297
298             <Audio codec="amrnb"
299                    bitRate="12200"
300                    sampleRate="8000"
301                    channels="1" />
302         </EncoderProfile>
303
304         <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
305             <Video codec="h264"
306                    bitRate="3000000"
307                    width="640"
308                    height="480"
309                    frameRate="30" />
310
311             <Audio codec="aac"
312                    bitRate="12200"
313                    sampleRate="8000"
314                    channels="1" />
315         </EncoderProfile>
316
317         <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
318             <Video codec="h264"
319                    bitRate="3000000"
320                    width="1280"
321                    height="720"
322                    frameRate="30" />
323
324             <Audio codec="aac"
325                    bitRate="12200"
326                    sampleRate="8000"
327                    channels="1" />
328         </EncoderProfile>
329
330         <EncoderProfile quality="timelapsehigh" fileFormat="mp4" duration="60">
331             <Video codec="h264"
332                    bitRate="3000000"
333                    width="1280"
334                    height="720"
335                    frameRate="30" />
336
337             <Audio codec="aac"
338                    bitRate="12200"
339                    sampleRate="8000"
340                    channels="1" />
341         </EncoderProfile>
342
343         <EncoderProfile quality="timelapselow" fileFormat="mp4" duration="30">
344             <Video codec="h264"
345                    bitRate="256000"
346                    width="176"
347                    height="144"
348                    frameRate="30" />
349
350             <Audio codec="amrnb"
351                    bitRate="12200"
352                    sampleRate="8000"
353                    channels="1" />
354
355         </EncoderProfile>
356
357         <EncoderProfile quality="timelapseqcif" fileFormat="mp4" duration="30">
358             <Video codec="h264"
359                    bitRate="256000"
360                    width="176"
361                    height="144"
362                    frameRate="30" />
363
364             <Audio codec="amrnb"
365                    bitRate="12200"
366                    sampleRate="8000"
367                    channels="1" />
368         </EncoderProfile>
369
370         <EncoderProfile quality="timelapsecif" fileFormat="mp4" duration="30">
371             <Video codec="h264"
372                    bitRate="256000"
373                    width="352"
374                    height="288"
375                    frameRate="30" />
376
377             <Audio codec="amrnb"
378                    bitRate="12200"
379                    sampleRate="8000"
380                    channels="1" />
381         </EncoderProfile>
382
383         <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
384             <Video codec="h264"
385                    bitRate="3000000"
386                    width="640"
387                    height="480"
388                    frameRate="30" />
389
390             <Audio codec="aac"
391                    bitRate="12200"
392                    sampleRate="8000"
393                    channels="1" />
394         </EncoderProfile>
395
396         <EncoderProfile quality="timelapse720p" fileFormat="mp4" duration="60">
397             <Video codec="h264"
398                    bitRate="3000000"
399                    width="1280"
400                    height="720"
401                    frameRate="30" />
402
403             <Audio codec="aac"
404                    bitRate="12200"
405                    sampleRate="8000"
406                    channels="1" />
407         </EncoderProfile>
408
409
410         <ImageEncoding quality="90" />
411         <ImageEncoding quality="80" />
412         <ImageEncoding quality="70" />
413         <ImageDecoding memCap="20000000" />
414
415         <Camera previewFrameRate="30" />
416
417     </CamcorderProfiles>
418
419     <EncoderOutputFileFormat name="3gp" />
420     <EncoderOutputFileFormat name="mp4" />
421
422     <!--
423          If a codec is not enabled, it is invisible to the applications
424          In other words, the applications won't be able to use the codec
425          or query the capabilities of the codec at all if it is disabled
426     -->
427     <VideoEncoderCap name="h264" enabled="true"
428         minBitRate="64000" maxBitRate="13000000"
429         minFrameWidth="176" maxFrameWidth="1920"
430         minFrameHeight="144" maxFrameHeight="1080"
431         minFrameRate="1" maxFrameRate="30" />
432
433     <VideoEncoderCap name="h263" enabled="true"
434         minBitRate="64000" maxBitRate="1000000"
435         minFrameWidth="176" maxFrameWidth="800"
436         minFrameHeight="144" maxFrameHeight="480"
437         minFrameRate="1" maxFrameRate="24" />
438
439     <VideoEncoderCap name="m4v" enabled="true"
440         minBitRate="64000" maxBitRate="2000000"
441         minFrameWidth="176" maxFrameWidth="800"
442         minFrameHeight="144" maxFrameHeight="480"
443         minFrameRate="1" maxFrameRate="24" />
444
445     <AudioEncoderCap name="amrnb" enabled="true"
446         minBitRate="5525" maxBitRate="12200"
447         minSampleRate="8000" maxSampleRate="8000"
448         minChannels="1" maxChannels="1" />
449
450     <AudioEncoderCap name="amrwb" enabled="true"
451         minBitRate="6600" maxBitRate="23850"
452         minSampleRate="16000" maxSampleRate="16000"
453         minChannels="1" maxChannels="1" />
454
455     <AudioEncoderCap name="aac" enabled="true"
456         minBitRate="5525" maxBitRate="250000"
457         minSampleRate="8000" maxSampleRate="44100"
458         minChannels="1" maxChannels="1" />
459
460     <!--
461         FIXME:
462         We do not check decoder capabilities at present
463         At present, we only check whether windows media is visible
464         for TEST applications. For other applications, we do
465         not perform any checks at all.
466     -->
467     <VideoDecoderCap name="wmv" enabled="true"/>
468     <AudioDecoderCap name="wma" enabled="true"/>
469
470     <!--
471         The VideoEditor Capability configuration:
472         - maxInputFrameWidth: maximum video width of imported video clip.
473         - maxInputFrameHeight: maximum video height of imported video clip.
474         - maxOutputFrameWidth: maximum video width of exported video clip.
475         - maxOutputFrameHeight: maximum video height of exported video clip.
476         - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
477         used to limit the amount of memory for prefetched YUV frames.
478         For this platform, it allows maximum 13MB(1.3MB per 720p frame x 10
479         frames) memory.
480     -->
481     <VideoEditorCap maxInputFrameWidth="1280"
482         maxInputFrameHeight="720" maxOutputFrameWidth="1280"
483         maxOutputFrameHeight="720" maxPrefetchYUVFrames="10"/>
484
485 </MediaSettings>