Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8" ?> |
| 2 | <!-- Copyright (C) 2012 The Android Open Source Project |
| 3 | Copyright (C) 2014 The Linux Foundation. All rights reserved. |
| 4 | Not a contribution. |
| 5 | |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | --> |
| 18 | |
| 19 | <!-- |
| 20 | <!DOCTYPE MediaCodecs [ |
| 21 | <!ELEMENT Include EMPTY> |
| 22 | <!ATTLIST Include href CDATA #REQUIRED> |
| 23 | <!ELEMENT MediaCodecs (Decoders|Encoders|Include)*> |
| 24 | <!ELEMENT Decoders (MediaCodec|Include)*> |
| 25 | <!ELEMENT Encoders (MediaCodec|Include)*> |
| 26 | <!ELEMENT MediaCodec (Type|Quirk|Include)*> |
| 27 | <!ATTLIST MediaCodec name CDATA #REQUIRED> |
| 28 | <!ATTLIST MediaCodec type CDATA> |
| 29 | <!ELEMENT Type EMPTY> |
| 30 | <!ATTLIST Type name CDATA #REQUIRED> |
| 31 | <!ELEMENT Quirk EMPTY> |
| 32 | <!ATTLIST Quirk name CDATA #REQUIRED> |
| 33 | ]> |
| 34 | |
| 35 | There's a simple and a complex syntax to declare the availability of a |
| 36 | media codec: |
| 37 | |
| 38 | A codec that properly follows the OpenMax spec and therefore doesn't have any |
| 39 | quirks and that only supports a single content type can be declared like so: |
| 40 | |
| 41 | <MediaCodec name="OMX.foo.bar" type="something/interesting" /> |
| 42 | |
| 43 | If a codec has quirks OR supports multiple content types, the following syntax |
| 44 | can be used: |
| 45 | |
| 46 | <MediaCodec name="OMX.foo.bar" > |
| 47 | <Type name="something/interesting" /> |
| 48 | <Type name="something/else" /> |
| 49 | ... |
| 50 | <Quirk name="requires-allocate-on-input-ports" /> |
| 51 | <Quirk name="requires-allocate-on-output-ports" /> |
| 52 | <Quirk name="output-buffers-are-unreadable" /> |
| 53 | </MediaCodec> |
| 54 | |
| 55 | Only the three quirks included above are recognized at this point: |
| 56 | |
| 57 | "requires-allocate-on-input-ports" |
| 58 | must be advertised if the component does not properly support specification |
| 59 | of input buffers using the OMX_UseBuffer(...) API but instead requires |
| 60 | OMX_AllocateBuffer to be used. |
| 61 | |
| 62 | "requires-allocate-on-output-ports" |
| 63 | must be advertised if the component does not properly support specification |
| 64 | of output buffers using the OMX_UseBuffer(...) API but instead requires |
| 65 | OMX_AllocateBuffer to be used. |
| 66 | |
| 67 | "output-buffers-are-unreadable" |
| 68 | must be advertised if the emitted output buffers of a decoder component |
| 69 | are not readable, i.e. use a custom format even though abusing one of |
| 70 | the official OMX colorspace constants. |
| 71 | Clients of such decoders will not be able to access the decoded data, |
| 72 | naturally making the component much less useful. The only use for |
| 73 | a component with this quirk is to render the output to the screen. |
| 74 | Audio decoders MUST NOT advertise this quirk. |
| 75 | Video decoders that advertise this quirk must be accompanied by a |
| 76 | corresponding color space converter for thumbnail extraction, |
| 77 | matching surfaceflinger support that can render the custom format to |
| 78 | a texture and possibly other code, so just DON'T USE THIS QUIRK. |
| 79 | |
| 80 | |
| 81 | --> |
| 82 | |
| 83 | <!-- |
| 84 | Decoder capabilities for 8916 |
| 85 | _________________________________________________________________ |
| 86 | | Codec | W H fps Mbps MB/s | Encode Secure-dec | |
| 87 | |__________|_________________________________________|___________________| |
| 88 | | h264 | 1920 1088 30 20 244800 | Y Y | |
| 89 | | hevc | 1280 720 30 3 108300 | N N | // Software |
| 90 | | mpeg4 | 1920 1088 30 20 244800 | Y N | |
| 91 | | vc1 | 1920 1088 30 20 244800 | N Y | |
| 92 | | vp8 | 1920 1088 30 20 244800 | N N | |
| 93 | | divx3 | 720 480 30 2 40500 | N N | |
| 94 | | div4/5/6 | 1920 1088 30 10 244800 | N N | |
| 95 | | h263 | 864 480 30 2 48600 | Y N | |
| 96 | | mpeg2 | 1920 1088 30 20 244800 | N Y | |
| 97 | |__________|_________________________________________|___________________| |
| 98 | --> |
| 99 | |
| 100 | <!-- |
| 101 | Encoder capabilities for 8916 |
| 102 | ___________________________________________________ |
| 103 | | Codec | W H fps Mbps MB/s | |
| 104 | |__________|_________________________________________| |
| 105 | | h264 | 1920 1088 30 20 244800 | |
| 106 | | mpeg4 | 1920 1088 30 20 244800 | |
| 107 | | h263 | 720 576 30 2 48600 | |
| 108 | | vp8 | 1920 1088 30 20 244800 | |
| 109 | |____________________________________________________| |
| 110 | --> |
| 111 | <MediaCodecs> |
| 112 | <Include href="media_codecs_google_audio.xml" /> |
| 113 | <Include href="media_codecs_google_telephony.xml" /> |
| 114 | <Encoders> |
| 115 | <!-- Audio Hardware --> |
| 116 | <MediaCodec name="OMX.qcom.audio.encoder.evrc" type="audio/evrc" > |
| 117 | <Quirk name="requires-allocate-on-input-ports" /> |
| 118 | <Quirk name="requires-allocate-on-output-ports" /> |
| 119 | </MediaCodec> |
| 120 | <MediaCodec name="OMX.qcom.audio.encoder.qcelp13" type="audio/qcelp" > |
| 121 | <Quirk name="requires-allocate-on-input-ports" /> |
| 122 | <Quirk name="requires-allocate-on-output-ports" /> |
| 123 | </MediaCodec> |
| 124 | <!-- Audio Software --> |
| 125 | <!-- Video Hardware --> |
| 126 | <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" > |
| 127 | <Quirk name="requires-allocate-on-input-ports" /> |
| 128 | <Quirk name="requires-allocate-on-output-ports" /> |
| 129 | <Quirk name="requires-loaded-to-idle-after-allocation" /> |
| 130 | <Limit name="size" min="96x64" max="1920x1088" /> |
| 131 | <Limit name="alignment" value="2x2" /> |
| 132 | <Limit name="block-size" value="16x16" /> |
| 133 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 134 | <Limit name="bitrate" range="1-20000000" /> |
| 135 | </MediaCodec> |
| 136 | <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" > |
| 137 | <Quirk name="requires-allocate-on-input-ports" /> |
| 138 | <Quirk name="requires-allocate-on-output-ports" /> |
| 139 | <Quirk name="requires-loaded-to-idle-after-allocation"/> |
| 140 | <Limit name="size" min="96x64" max="1920x1088" /> |
| 141 | <Limit name="alignment" value="2x2" /> |
| 142 | <Limit name="block-size" value="16x16" /> |
| 143 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 144 | <Limit name="bitrate" range="1-20000000" /> |
| 145 | </MediaCodec> |
| 146 | <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" > |
| 147 | <Quirk name="requires-allocate-on-input-ports" /> |
| 148 | <Quirk name="requires-allocate-on-output-ports" /> |
| 149 | <Quirk name="requires-loaded-to-idle-after-allocation" /> |
| 150 | <Limit name="size" min="96x64" max="720x576" /> |
| 151 | <Limit name="alignment" value="2x2" /> |
| 152 | <Limit name="block-size" value="16x16" /> |
| 153 | <Limit name="blocks-per-second" min="1" max="48600" /> |
| 154 | <Limit name="bitrate" range="1-2000000" /> |
| 155 | </MediaCodec> |
| 156 | <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" > |
| 157 | <Quirk name="requires-allocate-on-input-ports" /> |
| 158 | <Quirk name="requires-allocate-on-output-ports" /> |
| 159 | <Quirk name="requires-loaded-to-idle-after-allocation" /> |
| 160 | <Limit name="size" min="96x64" max="1920x1088" /> |
| 161 | <Limit name="alignment" value="2x2" /> |
| 162 | <Limit name="block-size" value="16x16" /> |
| 163 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 164 | <Limit name="bitrate" range="1-20000000" /> |
| 165 | </MediaCodec> |
| 166 | </Encoders> |
| 167 | <Decoders> |
| 168 | <!-- Audio Hardware --> |
| 169 | <MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma" > |
| 170 | <Quirk name="requires-global-flush" /> |
| 171 | <Quirk name="requires-wma-pro-component" /> |
| 172 | </MediaCodec> |
| 173 | <MediaCodec name="OMX.qcom.audio.decoder.wmaLossLess" type="audio/x-ms-wma-lossless" > |
| 174 | <Quirk name="requires-global-flush" /> |
| 175 | </MediaCodec> |
| 176 | <MediaCodec name="OMX.qcom.audio.decoder.wma10Pro" type="audio/x-ms-wma-pro" > |
| 177 | <Quirk name="requires-global-flush" /> |
| 178 | </MediaCodec> |
| 179 | <MediaCodec name="OMX.qcom.audio.decoder.amrwbplus" type="audio/amr-wb-plus" > |
| 180 | </MediaCodec> |
| 181 | <!-- Audio Software --> |
| 182 | <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm" /> |
| 183 | <MediaCodec name="OMX.qcom.audio.decoder.Qcelp13" type="audio/qcelp" > |
| 184 | <Quirk name="requires-global-flush" /> |
| 185 | </MediaCodec> |
| 186 | <MediaCodec name="OMX.qcom.audio.decoder.evrc" type="audio/evrc" > |
| 187 | <Quirk name="requires-global-flush" /> |
| 188 | </MediaCodec> |
| 189 | <!-- Video Hardware --> |
| 190 | <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" > |
| 191 | <Quirk name="requires-allocate-on-input-ports" /> |
| 192 | <Quirk name="requires-allocate-on-output-ports" /> |
| 193 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 194 | <Limit name="alignment" value="2x2" /> |
| 195 | <Limit name="block-size" value="16x16" /> |
| 196 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 197 | <Limit name="bitrate" range="1-20000000" /> |
| 198 | <Feature name="adaptive-playback" /> |
| 199 | </MediaCodec> |
| 200 | <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" > |
| 201 | <Quirk name="requires-allocate-on-input-ports" /> |
| 202 | <Quirk name="requires-allocate-on-output-ports" /> |
| 203 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 204 | <Limit name="alignment" value="2x2" /> |
| 205 | <Limit name="block-size" value="16x16" /> |
| 206 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 207 | <Limit name="bitrate" range="1-20000000" /> |
| 208 | <Feature name="adaptive-playback" /> |
| 209 | <Feature name="secure-playback" required="true" /> |
| 210 | </MediaCodec> |
| 211 | <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" > |
| 212 | <Quirk name="requires-allocate-on-input-ports" /> |
| 213 | <Quirk name="requires-allocate-on-output-ports" /> |
| 214 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 215 | <Limit name="alignment" value="2x2" /> |
| 216 | <Limit name="block-size" value="16x16" /> |
| 217 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 218 | <Limit name="bitrate" range="1-20000000" /> |
| 219 | <Feature name="adaptive-playback" /> |
| 220 | </MediaCodec> |
| 221 | <MediaCodec name="OMX.qcom.video.decoder.mpeg2.secure" type="video/mpeg2" > |
| 222 | <Quirk name="requires-allocate-on-input-ports" /> |
| 223 | <Quirk name="requires-allocate-on-output-ports" /> |
| 224 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 225 | <Limit name="alignment" value="2x2" /> |
| 226 | <Limit name="block-size" value="16x16" /> |
| 227 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 228 | <Limit name="bitrate" range="1-20000000" /> |
| 229 | <Feature name="adaptive-playback" /> |
| 230 | <Feature name="secure-playback" required="true" /> |
| 231 | </MediaCodec> |
| 232 | <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" > |
| 233 | <Quirk name="requires-allocate-on-input-ports" /> |
| 234 | <Quirk name="requires-allocate-on-output-ports" /> |
| 235 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 236 | <Limit name="alignment" value="2x2" /> |
| 237 | <Limit name="block-size" value="16x16" /> |
| 238 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 239 | <Limit name="bitrate" range="1-20000000" /> |
| 240 | <Feature name="adaptive-playback" /> |
| 241 | </MediaCodec> |
| 242 | <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" > |
| 243 | <Quirk name="requires-allocate-on-input-ports" /> |
| 244 | <Quirk name="requires-allocate-on-output-ports" /> |
| 245 | <Limit name="size" min="64x64" max="864x480" /> |
| 246 | <Limit name="alignment" value="2x2" /> |
| 247 | <Limit name="block-size" value="16x16" /> |
| 248 | <Limit name="blocks-per-second" min="1" max="48600" /> |
| 249 | <Limit name="bitrate" range="1-2000000" /> |
| 250 | <Feature name="adaptive-playback" /> |
| 251 | </MediaCodec> |
| 252 | <MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" > |
| 253 | <Quirk name="requires-allocate-on-input-ports" /> |
| 254 | <Quirk name="requires-allocate-on-output-ports" /> |
| 255 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 256 | <Limit name="alignment" value="2x2" /> |
| 257 | <Limit name="block-size" value="16x16" /> |
| 258 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 259 | <Limit name="bitrate" range="1-20000000" /> |
| 260 | <Feature name="adaptive-playback" /> |
| 261 | </MediaCodec> |
| 262 | <MediaCodec name="OMX.qcom.video.decoder.vc1.secure" type="video/x-ms-wmv" > |
| 263 | <Quirk name="requires-allocate-on-input-ports" /> |
| 264 | <Quirk name="requires-allocate-on-output-ports" /> |
| 265 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 266 | <Limit name="alignment" value="2x2" /> |
| 267 | <Limit name="block-size" value="16x16" /> |
| 268 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 269 | <Limit name="bitrate" range="1-20000000" /> |
| 270 | <Feature name="adaptive-playback" /> |
| 271 | <Feature name="secure-playback" required="true" /> |
| 272 | </MediaCodec> |
| 273 | <MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" > |
| 274 | <Quirk name="requires-allocate-on-input-ports" /> |
| 275 | <Quirk name="requires-allocate-on-output-ports" /> |
| 276 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 277 | <Limit name="alignment" value="2x2" /> |
| 278 | <Limit name="block-size" value="16x16" /> |
| 279 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 280 | <Limit name="bitrate" range="1-10000000" /> |
| 281 | <Feature name="adaptive-playback" /> |
| 282 | </MediaCodec> |
| 283 | <MediaCodec name="OMX.qcom.video.decoder.divx311" type="video/divx311" > |
| 284 | <Quirk name="requires-allocate-on-input-ports" /> |
| 285 | <Quirk name="requires-allocate-on-output-ports" /> |
| 286 | <Limit name="size" min="64x64" max="720x480" /> |
| 287 | <Limit name="alignment" value="2x2" /> |
| 288 | <Limit name="block-size" value="16x16" /> |
| 289 | <Limit name="blocks-per-second" min="1" max="40500" /> |
| 290 | <Limit name="bitrate" range="1-2000000" /> |
| 291 | <Feature name="adaptive-playback" /> |
| 292 | </MediaCodec> |
| 293 | <MediaCodec name="OMX.qcom.video.decoder.divx4" type="video/divx4" > |
| 294 | <Quirk name="requires-allocate-on-input-ports" /> |
| 295 | <Quirk name="requires-allocate-on-output-ports" /> |
| 296 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 297 | <Limit name="alignment" value="2x2" /> |
| 298 | <Limit name="block-size" value="16x16" /> |
| 299 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 300 | <Limit name="bitrate" range="1-10000000" /> |
| 301 | <Feature name="adaptive-playback" /> |
| 302 | </MediaCodec> |
| 303 | <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" > |
| 304 | <Quirk name="requires-allocate-on-input-ports" /> |
| 305 | <Quirk name="requires-allocate-on-output-ports" /> |
| 306 | <Limit name="size" min="64x64" max="1920x1088" /> |
| 307 | <Limit name="alignment" value="2x2" /> |
| 308 | <Limit name="block-size" value="16x16" /> |
| 309 | <Limit name="blocks-per-second" min="1" max="244800" /> |
| 310 | <Limit name="bitrate" range="1-20000000" /> |
| 311 | <Feature name="adaptive-playback" /> |
| 312 | </MediaCodec> |
| 313 | <MediaCodec name="OMX.qcom.video.decoder.hevcswvdec" type="video/hevc" > |
| 314 | <Quirk name="requires-allocate-on-input-ports" /> |
| 315 | <Quirk name="requires-allocate-on-output-ports" /> |
| 316 | <Limit name="size" min="64x64" max="1280x720" /> |
| 317 | <Limit name="alignment" value="2x2" /> |
| 318 | <Limit name="block-size" value="16x16" /> |
| 319 | <Limit name="blocks-per-second" min="1" max="108300" /> |
| 320 | <Limit name="bitrate" range="1-3000000" /> |
| 321 | <Feature name="adaptive-playback" /> |
| 322 | </MediaCodec> |
| 323 | </Decoders> |
| 324 | <Include href="media_codecs_google_video.xml" /> |
| 325 | <Include href="media_codecs_ffmpeg.xml" /> |
| 326 | </MediaCodecs> |