media_codecs_8956.xml 18 KB

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