Home | History | Annotate | Download | only in hammerhead
      1 <?xml version="1.0" encoding="utf-8" ?>
      2 <!-- Copyright 2013 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 <MediaCodecs>
     18     <Include href="media_codecs_google_audio.xml" />
     19     <Include href="media_codecs_google_telephony.xml" />
     20     <Settings>
     21         <Setting name="max-video-encoder-input-buffers" value="9" />
     22     </Settings>
     23     <Encoders>
     24         <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
     25             <Quirk name="requires-allocate-on-input-ports" />
     26             <Quirk name="requires-allocate-on-output-ports"/>
     27             <Quirk name="requires-loaded-to-idle-after-allocation"/>
     28             <Limit name="size" min="96x64" max="1920x1088" />
     29             <Limit name="alignment" value="2x2" />
     30             <Limit name="block-size" value="16x16" />
     31             <Limit name="blocks-per-second" min="1" max="489600" />
     32             <Limit name="bitrate" range="1-60000000" />
     33             <Limit name="concurrent-instances" max="13" />
     34         </MediaCodec>
     35         <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" >
     36             <Quirk name="requires-allocate-on-input-ports" />
     37             <Quirk name="requires-allocate-on-output-ports"/>
     38             <Quirk name="requires-loaded-to-idle-after-allocation"/>
     39             <Limit name="size" min="96x64" max="720x576" />
     40             <Limit name="alignment" value="2x2" />
     41             <Limit name="concurrent-instances" max="13" />
     42         </MediaCodec>
     43         <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
     44             <Quirk name="requires-allocate-on-input-ports" />
     45             <Quirk name="requires-allocate-on-output-ports"/>
     46             <Quirk name="requires-loaded-to-idle-after-allocation"/>
     47             <Limit name="size" min="96x64" max="3840x2160" />
     48             <Limit name="alignment" value="2x2" />
     49             <Limit name="block-size" value="16x16" />
     50             <Limit name="blocks-per-second" min="1" max="972000" />
     51             <Limit name="bitrate" range="1-100000000" />
     52             <Limit name="concurrent-instances" max="13" />
     53         </MediaCodec>
     54         <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" >
     55             <Quirk name="requires-allocate-on-input-ports" />
     56             <Quirk name="requires-allocate-on-output-ports"/>
     57             <Quirk name="requires-loaded-to-idle-after-allocation"/>
     58             <Limit name="size" min="96x64" max="3840x2160" />
     59             <Limit name="alignment" value="2x2" />
     60             <Limit name="block-size" value="16x16" />
     61             <Limit name="blocks-per-second" min="1" max="777600" />
     62             <Limit name="bitrate" range="1-20000000" />
     63             <Limit name="concurrent-instances" max="13" />
     64         </MediaCodec>
     65     </Encoders>
     66     <Decoders>
     67         <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
     68             <Quirk name="requires-allocate-on-input-ports" />
     69             <Quirk name="requires-allocate-on-output-ports"/>
     70             <Quirk name="defers-output-buffer-allocation"/>
     71             <Limit name="size" min="64x64" max="3840x2160" />
     72             <Limit name="alignment" value="2x2" />
     73             <Limit name="block-size" value="16x16" />
     74             <Limit name="blocks-per-second" min="1" max="972000" />
     75             <Limit name="bitrate" range="1-100000000" />
     76             <Feature name="adaptive-playback" />
     77             <Limit name="concurrent-instances" max="13" />
     78         </MediaCodec>
     79         <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
     80             <Quirk name="requires-allocate-on-input-ports" />
     81             <Quirk name="requires-allocate-on-output-ports"/>
     82             <Quirk name="defers-output-buffer-allocation"/>
     83             <Limit name="size" min="64x64" max="3840x2160" />
     84             <Limit name="alignment" value="2x2" />
     85             <Limit name="block-size" value="16x16" />
     86             <Limit name="blocks-per-second" min="1" max="972000" />
     87             <Limit name="bitrate" range="1-100000000" />
     88             <Feature name="adaptive-playback" />
     89             <Feature name="secure-playback" required="true" />
     90             <Limit name="concurrent-instances" max="6" />
     91         </MediaCodec>
     92         <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" >
     93             <Quirk name="requires-allocate-on-input-ports" />
     94             <Quirk name="requires-allocate-on-output-ports"/>
     95             <Quirk name="defers-output-buffer-allocation"/>
     96             <Limit name="size" min="64x64" max="1920x1088" />
     97             <Limit name="alignment" value="2x2" />
     98             <Limit name="block-size" value="16x16" />
     99             <Limit name="blocks-per-second" min="1" max="489600" />
    100             <Limit name="bitrate" range="1-60000000" />
    101             <Feature name="adaptive-playback" />
    102             <Limit name="concurrent-instances" max="13" />
    103         </MediaCodec>
    104         <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" >
    105             <Quirk name="requires-allocate-on-input-ports" />
    106             <Quirk name="requires-allocate-on-output-ports"/>
    107             <Quirk name="defers-output-buffer-allocation"/>
    108             <Limit name="size" min="64x64" max="720x576" />
    109             <Limit name="alignment" value="2x2" />
    110             <Feature name="adaptive-playback" />
    111             <Limit name="concurrent-instances" max="13" />
    112         </MediaCodec>
    113         <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
    114             <Quirk name="requires-allocate-on-input-ports" />
    115             <Quirk name="requires-allocate-on-output-ports" />
    116             <Quirk name="defers-output-buffer-allocation" />
    117             <Limit name="size" min="64x64" max="3840x2160" />
    118             <Limit name="alignment" value="2x2" />
    119             <Limit name="block-size" value="16x16" />
    120             <Limit name="blocks-per-second" min="1" max="777600" />
    121             <Limit name="bitrate" range="1-20000000" />
    122             <Feature name="adaptive-playback" />
    123             <Limit name="concurrent-instances" max="13" />
    124         </MediaCodec>
    125     </Decoders>
    126     <Include href="media_codecs_google_video.xml" />
    127 </MediaCodecs>
    128