blob: 8d373aaec50e0bdcb56ea2c6744047eab66318c7 [file] [log] [blame]
Sungjoong Kangf51999a2012-07-25 18:02:17 -07001<?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
83 <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
84 <Video codec="h264"
85 bitRate="3000000"
86 width="1280"
87 height="720"
88 frameRate="30" />
89
90 <Audio codec="aac"
91 bitRate="96000"
92 sampleRate="16000"
93 channels="1" />
94
95 </EncoderProfile>
96
97 <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
98 <Video codec="h264"
99 bitRate="3000000"
100 width="640"
101 height="480"
102 frameRate="30" />
103
104 <Audio codec="aac"
105 bitRate="96000"
106 sampleRate="16000"
107 channels="1" />
108
109 </EncoderProfile>
110
111 <ImageEncoding quality="90" />
112 <ImageEncoding quality="80" />
113 <ImageEncoding quality="70" />
114 <ImageDecoding memCap="20000000" />
115
116 </CamcorderProfiles>
117
118 <CamcorderProfiles cameraId="1">
119
120 <EncoderProfile quality="720p" fileFormat="mp4" duration="60">
121 <Video codec="h264"
122 bitRate="1000000"
123 width="1280"
124 height="720"
125 frameRate="30" />
126
127 <Audio codec="aac"
128 bitRate="96000"
129 sampleRate="16000"
130 channels="1" />
131
132 </EncoderProfile>
133 <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
134 <Video codec="h264"
135 bitRate="1000000"
136 width="640"
137 height="480"
138 frameRate="30" />
139
140 <Audio codec="aac"
141 bitRate="96000"
142 sampleRate="16000"
143 channels="1" />
144
145 </EncoderProfile>
146
147 <ImageEncoding quality="90" />
148 <ImageEncoding quality="80" />
149 <ImageEncoding quality="70" />
150 <ImageDecoding memCap="20000000" />
151
152 </CamcorderProfiles>
153
154 <EncoderOutputFileFormat name="3gp" />
155 <EncoderOutputFileFormat name="mp4" />
156
157 <!--
158 If a codec is not enabled, it is invisible to the applications
159 In other words, the applications won't be able to use the codec
160 or query the capabilities of the codec at all if it is disabled
161 -->
162
163 <!--
164 FIXME : we only check Mpeg4 encorder cap and other codec doesn't check
165 codec cap
166 -->
167 <VideoEncoderCap name="h264" enabled="true"
168 minBitRate="64000" maxBitRate="3000000"
169 minFrameWidth="176" maxFrameWidth="1920"
170 minFrameHeight="144" maxFrameHeight="1080"
171 minFrameRate="7" maxFrameRate="60" />
172
173 <VideoEncoderCap name="h263" enabled="true"
174 minBitRate="64000" maxBitRate="1000000"
175 minFrameWidth="176" maxFrameWidth="1920"
176 minFrameHeight="144" maxFrameHeight="1080"
177 minFrameRate="7" maxFrameRate="60" />
178
179 <VideoEncoderCap name="m4v" enabled="true"
180 minBitRate="64000" maxBitRate="2000000"
181 minFrameWidth="176" maxFrameWidth="1920"
182 minFrameHeight="144" maxFrameHeight="1080"
183 minFrameRate="7" maxFrameRate="60" />
184
185 <AudioEncoderCap name="aac" enabled="true"
186 minBitRate="8192" maxBitRate="96000"
187 minSampleRate="8000" maxSampleRate="16000"
188 minChannels="1" maxChannels="1" />
189
190 <AudioEncoderCap name="amrnb" enabled="true"
191 minBitRate="5525" maxBitRate="12200"
192 minSampleRate="8000" maxSampleRate="8000"
193 minChannels="1" maxChannels="1" />
194
195 <!--
196 FIXME:
197 We do not check decoder capabilities at present
198 At present, we only check whether windows media is visible
199 for TEST applications. For other applications, we do
200 not perform any checks at all.
201 -->
202 <VideoDecoderCap name="wmv" enabled="false"/>
203 <AudioDecoderCap name="wma" enabled="false"/>
204</MediaSettings>