Home | History | Annotate | Download | only in crespo
      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 (480p|qcif) #REQUIRED>
     26 <!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED>
     27 <!ATTLIST EncoderProfile duration (30|60) #REQUIRED>
     28 <!ATTLIST EncoderProfile cameraId (0|1) #REQUIRED>
     29 <!ELEMENT Video EMPTY>
     30 <!ATTLIST Video codec (h264|h263|m4v) #REQUIRED>
     31 <!ATTLIST Video bitRate CDATA #REQUIRED>
     32 <!ATTLIST Video width CDATA #REQUIRED>
     33 <!ATTLIST Video height CDATA #REQUIRED>
     34 <!ATTLIST Video frameRate CDATA #REQUIRED>
     35 <!ELEMENT Audio EMPTY>
     36 <!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED>
     37 <!ATTLIST Audio bitRate CDATA #REQUIRED>
     38 <!ATTLIST Audio sampleRate CDATA #REQUIRED>
     39 <!ATTLIST Audio channels (1|2) #REQUIRED>
     40 <!ELEMENT ImageEncoding EMPTY>
     41 <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
     42 <!ELEMENT ImageDecoding EMPTY>
     43 <!ATTLIST ImageDecoding memCap CDATA #REQUIRED>
     44 <!ELEMENT Camera EMPTY>
     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 <!ELEMENT VideoEditorCap EMPTY>
     74 <!ATTLIST VideoEditorCap maxInputFrameWidth CDATA #REQUIRED>
     75 <!ATTLIST VideoEditorCap maxInputFrameHeight CDATA #REQUIRED>
     76 <!ATTLIST VideoEditorCap maxOutputFrameWidth CDATA #REQUIRED>
     77 <!ATTLIST VideoEditorCap maxOutputFrameHeight CDATA #REQUIRED>
     78 <!ATTLIST VideoEditorCap maxPrefetchYUVFrames CDATA #REQUIRED>
     79 <!ELEMENT ExportVideoProfile EMPTY>
     80 <!ATTLIST ExportVideoProfile name (h264|h263|m4v) #REQUIRED>
     81 <!ATTLIST ExportVideoProfile profile CDATA #REQUIRED>
     82 <!ATTLIST ExportVideoProfile level CDATA #REQUIRED>
     83 ]>
     84 <!--
     85      This file is used to declare the multimedia profiles and capabilities
     86      on an android-powered device.
     87 -->
     88 <MediaSettings>
     89     <!-- Each camcorder profile defines a set of predefined configuration parameters -->
     90     <CamcorderProfiles cameraId="0">
     91 
     92         <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
     93             <Video codec="h264"
     94                    bitRate="3000000"
     95                    width="720"
     96                    height="480"
     97                    frameRate="30" />
     98 
     99             <Audio codec="aac"
    100                    bitRate="96000"
    101                    sampleRate="16000"
    102                    channels="1" />
    103         </EncoderProfile>
    104 
    105         <EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
    106             <Video codec="h264"
    107                    bitRate="256000"
    108                    width="176"
    109                    height="144"
    110                    frameRate="30" />
    111 
    112             <Audio codec="amrnb"
    113                    bitRate="12200"
    114                    sampleRate="8000"
    115                    channels="1" />
    116 
    117         </EncoderProfile>
    118 
    119         <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
    120             <Video codec="h264"
    121                    bitRate="3000000"
    122                    width="720"
    123                    height="480"
    124                    frameRate="30" />
    125 
    126             <!-- Audio settings are not used for timealpse video recording -->
    127             <Audio codec="aac"
    128                    bitRate="96000"
    129                    sampleRate="16000"
    130                    channels="1" />
    131         </EncoderProfile>
    132 
    133         <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="30">
    134             <Video codec="h264"
    135                    bitRate="256000"
    136                    width="176"
    137                    height="144"
    138                    frameRate="30" />
    139             <!-- Audio settings are not used for timealpse video recording -->
    140             <Audio codec="amrnb"
    141                    bitRate="12200"
    142                    sampleRate="8000"
    143                    channels="1" />
    144         </EncoderProfile>
    145 
    146         <ImageEncoding quality="90" />
    147         <ImageEncoding quality="80" />
    148         <ImageEncoding quality="70" />
    149         <ImageDecoding memCap="20000000" />
    150 
    151     </CamcorderProfiles>
    152 
    153     <CamcorderProfiles cameraId="1">
    154 
    155         <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
    156             <Video codec="h264"
    157                    bitRate="1000000"
    158                    width="640"
    159                    height="480"
    160                    frameRate="15" />
    161 
    162             <Audio codec="aac"
    163                    bitRate="96000"
    164                    sampleRate="16000"
    165                    channels="1" />
    166         </EncoderProfile>
    167 
    168         <EncoderProfile quality="qcif" fileFormat="3gp" duration="30">
    169             <Video codec="h264"
    170                    bitRate="256000"
    171                    width="176"
    172                    height="144"
    173                    frameRate="15" />
    174 
    175             <Audio codec="amrnb"
    176                    bitRate="12200"
    177                    sampleRate="8000"
    178                    channels="1" />
    179 
    180         </EncoderProfile>
    181 
    182         <EncoderProfile quality="timelapse480p" fileFormat="mp4" duration="60">
    183             <Video codec="h264"
    184                    bitRate="1000000"
    185                    width="640"
    186                    height="480"
    187                    frameRate="15" />
    188 
    189             <!-- Audio settings are not used for timealpse video recording -->
    190             <Audio codec="aac"
    191                    bitRate="96000"
    192                    sampleRate="16000"
    193                    channels="1" />
    194         </EncoderProfile>
    195 
    196         <EncoderProfile quality="timelapseqcif" fileFormat="3gp" duration="30">
    197             <Video codec="h264"
    198                    bitRate="256000"
    199                    width="176"
    200                    height="144"
    201                    frameRate="15" />
    202             <!-- Audio settings are not used for timealpse video recording -->
    203             <Audio codec="amrnb"
    204                    bitRate="12200"
    205                    sampleRate="8000"
    206                    channels="1" />
    207         </EncoderProfile>
    208 
    209         <ImageEncoding quality="90" />
    210         <ImageEncoding quality="80" />
    211         <ImageEncoding quality="70" />
    212         <ImageDecoding memCap="20000000" />
    213 
    214     </CamcorderProfiles>
    215 
    216 
    217     <EncoderOutputFileFormat name="3gp" />
    218     <EncoderOutputFileFormat name="mp4" />
    219 
    220     <!--
    221          If a codec is not enabled, it is invisible to the applications
    222          In other words, the applications won't be able to use the codec
    223          or query the capabilities of the codec at all if it is disabled
    224     -->
    225     <VideoEncoderCap name="h264" enabled="true"
    226         minBitRate="64000" maxBitRate="3000000"
    227         minFrameWidth="176" maxFrameWidth="720"
    228         minFrameHeight="144" maxFrameHeight="480"
    229         minFrameRate="15" maxFrameRate="30" />
    230 
    231     <VideoEncoderCap name="h263" enabled="true"
    232         minBitRate="64000" maxBitRate="1000000"
    233         minFrameWidth="176" maxFrameWidth="720"
    234         minFrameHeight="144" maxFrameHeight="480"
    235         minFrameRate="15" maxFrameRate="30" />
    236 
    237     <VideoEncoderCap name="m4v" enabled="true"
    238         minBitRate="64000" maxBitRate="2000000"
    239         minFrameWidth="176" maxFrameWidth="720"
    240         minFrameHeight="144" maxFrameHeight="480"
    241         minFrameRate="15" maxFrameRate="30" />
    242 
    243     <AudioEncoderCap name="aac" enabled="true"
    244         minBitRate="8192" maxBitRate="96000"
    245         minSampleRate="8000" maxSampleRate="16000"
    246         minChannels="1" maxChannels="1" />
    247 
    248     <AudioEncoderCap name="amrwb" enabled="true"
    249         minBitRate="6600" maxBitRate="23050"
    250         minSampleRate="16000" maxSampleRate="16000"
    251         minChannels="1" maxChannels="1" />
    252 
    253     <AudioEncoderCap name="amrnb" enabled="true"
    254         minBitRate="5525" maxBitRate="12200"
    255         minSampleRate="8000" maxSampleRate="8000"
    256         minChannels="1" maxChannels="1" />
    257 
    258     <!--
    259         FIXME:
    260         We do not check decoder capabilities at present
    261         At present, we only check whether windows media is visible
    262         for TEST applications. For other applications, we do
    263         not perform any checks at all.
    264     -->
    265     <VideoDecoderCap name="wmv" enabled="false"/>
    266     <AudioDecoderCap name="wma" enabled="false"/>
    267     <!--
    268         The VideoEditor Capability configuration:
    269         - maxInputFrameWidth: maximum video width of imported video clip.
    270         - maxInputFrameHeight: maximum video height of imported video clip.
    271         - maxOutputFrameWidth: maximum video width of exported video clip.
    272         - maxOutputFrameHeight: maximum video height of exported video clip.
    273         - maxPrefetchYUVFrames: maximum prefetch YUV frames for encoder,
    274         used to limit the amount of memory for prefetched YUV frames.
    275         For this platform, it allows maximum 8MB(1.3MB per 720p frame x 6
    276         frames) memory.
    277     -->
    278     <VideoEditorCap  maxInputFrameWidth="1280"
    279         maxInputFrameHeight="720" maxOutputFrameWidth="1280"
    280         maxOutputFrameHeight="720" maxPrefetchYUVFrames="6"/>
    281     <!--
    282         The VideoEditor Export codec profile and level values
    283         correspond to the values in OMX_Video.h.
    284         E.g. for h264, profile value 1 means OMX_VIDEO_AVCProfileBaseline
    285         and  level 2048 means OMX_VIDEO_AVCLevel4.
    286         Please note that the values are in decimal.
    287         These values are for video encoder.
    288     -->
    289     <!--
    290       Codec = h.264, Baseline profile, level 4
    291     -->
    292     <ExportVideoProfile name="h264" profile= "1" level="2048"/>
    293     <!--
    294       Codec = h.263, Baseline profile, level 0
    295     -->
    296     <ExportVideoProfile name="h263" profile= "1" level="1"/>
    297     <!--
    298       Codec = mpeg4, Simple profile, level 5
    299     -->
    300     <ExportVideoProfile name="m4v" profile= "1" level="128"/>
    301 </MediaSettings>
    302