Advertisement
wellthatsucks

Untitled

Aug 14th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.00 KB | None | 0 0
  1. 255|msm8996:/ # cat system/etc/media_codecs.xml
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <!-- Copyright (C) 2012-2013 The Android Open Source Project
  4. Copyright (C) 2012, 2017 The Linux Foundation. All rights reserved.
  5. Not a contribution.
  6.  
  7. Licensed under the Apache License, Version 2.0 (the "License");
  8. you may not use this file except in compliance with the License.
  9. You may obtain a copy of the License at
  10.  
  11. http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13. Unless required by applicable law or agreed to in writing, software
  14. distributed under the License is distributed on an "AS IS" BASIS,
  15. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. See the License for the specific language governing permissions and
  17. limitations under the License.
  18. -->
  19.  
  20. <!--
  21. <!DOCTYPE MediaCodecs [
  22. <!ELEMENT Include EMPTY>
  23. <!ATTLIST Include href CDATA #REQUIRED>
  24. <!ELEMENT MediaCodecs (Decoders|Encoders|Include)*>
  25. <!ELEMENT Decoders (MediaCodec|Include)*>
  26. <!ELEMENT Encoders (MediaCodec|Include)*>
  27. <!ELEMENT MediaCodec (Type|Quirk|Include)*>
  28. <!ATTLIST MediaCodec name CDATA #REQUIRED>
  29. <!ATTLIST MediaCodec type CDATA>
  30. <!ELEMENT Type EMPTY>
  31. <!ATTLIST Type name CDATA #REQUIRED>
  32. <!ELEMENT Quirk EMPTY>
  33. <!ATTLIST Quirk name CDATA #REQUIRED>
  34. ]>
  35.  
  36. There's a simple and a complex syntax to declare the availability of a
  37. media codec:
  38.  
  39. A codec that properly follows the OpenMax spec and therefore doesn't have any
  40. quirks and that only supports a single content type can be declared like so:
  41.  
  42. <MediaCodec name="OMX.foo.bar" type="something/interesting" />
  43.  
  44. If a codec has quirks OR supports multiple content types, the following syntax
  45. can be used:
  46.  
  47. <MediaCodec name="OMX.foo.bar" >
  48. <Type name="something/interesting" />
  49. <Type name="something/else" />
  50. ...
  51. <Quirk name="requires-allocate-on-input-ports" />
  52. <Quirk name="requires-allocate-on-output-ports" />
  53. <Quirk name="output-buffers-are-unreadable" />
  54. </MediaCodec>
  55.  
  56. Only the three quirks included above are recognized at this point:
  57.  
  58. "requires-allocate-on-input-ports"
  59. must be advertised if the component does not properly support specification
  60. of input buffers using the OMX_UseBuffer(...) API but instead requires
  61. OMX_AllocateBuffer to be used.
  62.  
  63. "requires-allocate-on-output-ports"
  64. must be advertised if the component does not properly support specification
  65. of output buffers using the OMX_UseBuffer(...) API but instead requires
  66. OMX_AllocateBuffer to be used.
  67.  
  68. "output-buffers-are-unreadable"
  69. must be advertised if the emitted output buffers of a decoder component
  70. are not readable, i.e. use a custom format even though abusing one of
  71. the official OMX colorspace constants.
  72. Clients of such decoders will not be able to access the decoded data,
  73. naturally making the component much less useful. The only use for
  74. a component with this quirk is to render the output to the screen.
  75. Audio decoders MUST NOT advertise this quirk.
  76. Video decoders that advertise this quirk must be accompanied by a
  77. corresponding color space converter for thumbnail extraction,
  78. matching surfaceflinger support that can render the custom format to
  79. a texture and possibly other code, so just DON'T USE THIS QUIRK.
  80.  
  81.  
  82. -->
  83.  
  84. <!--
  85. 8996 Decoder capabilities
  86. ______________________________________________________
  87. | Codec | W H fps Mbps MB/s |
  88. |__________|_________________________________________|
  89. | h264 | 3840 2160 60 100 1958400 |
  90. | | (4096) (2160) (56) (100) |
  91. | hevc | 3840 2160 60 100 1958400 |
  92. | | (4096) (2160) (56) (100) |
  93. | mpeg4 | 1920 1088 60 60 489600 |
  94. | vc1 | 1920 1088 60 60 489600 |
  95. | vp8 | 3840 2160 30 100 979200 |
  96. | vp9 | 3840 2160 30 100 979200 |
  97. | divx3 | 720 480 30 2 40500 |
  98. | div4/5/6 | 1920 1088 30 10 244800 |
  99. | h263 | 864 480 30 2 48600 |
  100. | mpeg2 | 1920 1088 30 40 244800 |
  101. |__________|_________________________________________|
  102.  
  103. Secure 8996 Decoder capabilities
  104. | hevc | 3840 2160 30 35 979200 |
  105. | h264 | 3840 2160 30 35 979200 |
  106. | vp9 | 3840 2160 30 35 979200 |
  107. | mpeg2 | 1920 1088 30 20 244800 |
  108. | vc1 | 1920 1088 30 20 244800 |
  109. |__________|_________________________________________|
  110.  
  111.  
  112. 8996 Encoder capabilities
  113. ______________________________________________________
  114. | Codec | W H fps Mbps MB/s |
  115. |__________|_________________________________________|
  116. | h264 | 3840 2160 30 100 979200 |
  117. | hevc | 3840 2160 30 100 979200 |
  118. | mpeg4 | 1920 1088 60 60 489600 |
  119. | vp8 | 3840 2160 30 100 979200 |
  120. | h263 | 864 480 30 2 48600 |
  121. |__________|_________________________________________|
  122. -->
  123.  
  124. <MediaCodecs>
  125. <Include href="media_codecs_google_audio.xml" />
  126. <Include href="media_codecs_google_telephony.xml" />
  127. <Settings>
  128. <Setting name="max-video-encoder-input-buffers" value="11" />
  129. </Settings>
  130. <Encoders>
  131. <!-- Audio Hardware -->
  132. <!-- Audio Software -->
  133. <!-- Video Hardware -->
  134. <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
  135. <Quirk name="requires-allocate-on-input-ports" />
  136. <Quirk name="requires-allocate-on-output-ports" />
  137. <Quirk name="requires-loaded-to-idle-after-allocation" />
  138. <Limit name="size" min="96x64" max="4096x2160" />
  139. <Limit name="alignment" value="2x2" />
  140. <Limit name="block-size" value="16x16" />
  141. <Limit name="blocks-per-second" min="1" max="979200" />
  142. <Limit name="bitrate" range="1-100000000" />
  143. <Limit name="frame-rate" range="1-240" />
  144. <Limit name="concurrent-instances" max="16" />
  145. <!-- vt-version, upper 16 bit major version lower 16 bit minor version -->
  146. <Limit name="vt-version" value="65537" />
  147. <Limit name="vt-low-latency" value="1" />
  148. <Limit name="vt-max-instances" value="16" />
  149. <Limit name="vt-max-temporal-layer-count" value="3" />
  150. <Limit name="vt-max-ref-frames" value="9" />
  151. <Limit name="vt-max-ltr-frames" value="3" />
  152. <Limit name="vt-max-level" value="52" />
  153. <Limit name="vt-ratecontrol" value="0" />
  154. <Limit name="vt-slice-control-modes-bitmask" value="15" />
  155. <Limit name="vt-max-macroblock-processing-rate" value="972000" />
  156. <Limit name="vt-down-scale-factor" value="8" />
  157. <Limit name="vt-min-scale-factor" value="1" />
  158. <Limit name="vt-slice-hdr-spacing" value="1" />
  159. <Feature name="intra-refresh" />
  160. </MediaCodec>
  161. <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
  162. <Quirk name="requires-allocate-on-input-ports" />
  163. <Quirk name="requires-allocate-on-output-ports" />
  164. <Quirk name="requires-loaded-to-idle-after-allocation"/>
  165. <Limit name="size" min="96x64" max="1920x1088" />
  166. <Limit name="alignment" value="2x2" />
  167. <Limit name="block-size" value="16x16" />
  168. <Limit name="blocks-per-second" min="1" max="489600" />
  169. <Limit name="bitrate" range="1-60000000" />
  170. <Limit name="frame-rate" range="1-240" />
  171. <Limit name="concurrent-instances" max="16" />
  172. </MediaCodec>
  173. <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" >
  174. <Quirk name="requires-allocate-on-input-ports" />
  175. <Quirk name="requires-allocate-on-output-ports" />
  176. <Quirk name="requires-loaded-to-idle-after-allocation" />
  177. <Limit name="size" min="96x64" max="864x480" />
  178. <Limit name="alignment" value="2x2" />
  179. <Limit name="block-size" value="16x16" />
  180. <Limit name="blocks-per-second" min="1" max="48600" />
  181. <Limit name="bitrate" range="1-2000000" />
  182. <Limit name="frame-rate" range="1-240" />
  183. <Limit name="concurrent-instances" max="16" />
  184. </MediaCodec>
  185. <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" >
  186. <Quirk name="requires-allocate-on-input-ports" />
  187. <Quirk name="requires-allocate-on-output-ports" />
  188. <Quirk name="requires-loaded-to-idle-after-allocation" />
  189. <Limit name="size" min="96x64" max="3840x2160" />
  190. <Limit name="alignment" value="2x2" />
  191. <Limit name="block-size" value="16x16" />
  192. <Limit name="blocks-per-second" min="1" max="979200" />
  193. <Limit name="bitrate" range="1-100000000" />
  194. <Limit name="frame-rate" range="1-240" />
  195. <Limit name="concurrent-instances" max="16" />
  196. <Feature name="intra-refresh" />
  197. </MediaCodec>
  198. <MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" >
  199. <Quirk name="requires-allocate-on-input-ports" />
  200. <Quirk name="requires-allocate-on-output-ports" />
  201. <Quirk name="requires-loaded-to-idle-after-allocation" />
  202. <Limit name="size" min="162x64" max="4096x2160" />
  203. <Limit name="alignment" value="2x2" />
  204. <Limit name="block-size" value="16x16" />
  205. <Limit name="blocks-per-second" min="1" max="979200" />
  206. <Limit name="bitrate" range="1-100000000" />
  207. <Limit name="frame-rate" range="1-240" />
  208. <Limit name="concurrent-instances" max="16" />
  209. <Feature name="intra-refresh" />
  210. </MediaCodec>
  211. </Encoders>
  212. <Decoders>
  213. <!-- Video Hardware -->
  214. <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
  215. <Quirk name="requires-allocate-on-input-ports" />
  216. <Quirk name="requires-allocate-on-output-ports" />
  217. <Limit name="size" min="64x64" max="4096x2160" />
  218. <Limit name="alignment" value="2x2" />
  219. <Limit name="block-size" value="16x16" />
  220. <Limit name="blocks-per-second" min="1" max="1958400" />
  221. <Limit name="bitrate" range="1-100000000" />
  222. <Limit name="frame-rate" range="1-240" />
  223. <Limit name="vt-version" value="65537" />
  224. <Limit name="vt-low-latency" value="1" />
  225. <Limit name="vt-max-macroblock-processing-rate" value="972000" />
  226. <Limit name="vt-max-level" value="52" />
  227. <Limit name="vt-max-instances" value="16" />
  228. <Feature name="adaptive-playback" />
  229. <Limit name="concurrent-instances" max="16" />
  230. </MediaCodec>
  231. <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
  232. <Quirk name="requires-allocate-on-input-ports" />
  233. <Quirk name="requires-allocate-on-output-ports" />
  234. <Limit name="size" min="64x64" max="3840x2160" />
  235. <Limit name="alignment" value="2x2" />
  236. <Limit name="block-size" value="16x16" />
  237. <Limit name="blocks-per-second" min="1" max="979200" />
  238. <Limit name="bitrate" range="1-35000000" />
  239. <Limit name="frame-rate" range="1-240" />
  240. <Feature name="adaptive-playback" />
  241. <Feature name="secure-playback" required="true" />
  242. <Limit name="concurrent-instances" max="6" />
  243. </MediaCodec>
  244. <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" >
  245. <Quirk name="requires-allocate-on-input-ports" />
  246. <Quirk name="requires-allocate-on-output-ports"/>
  247. <Limit name="size" min="64x64" max="1920x1088" />
  248. <Limit name="alignment" value="2x2" />
  249. <Limit name="block-size" value="16x16" />
  250. <Limit name="blocks-per-second" min="1" max="489600" />
  251. <Limit name="bitrate" range="1-60000000" />
  252. <Limit name="frame-rate" range="1-240" />
  253. <Feature name="adaptive-playback" />
  254. <Limit name="concurrent-instances" max="16" />
  255. </MediaCodec>
  256. <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
  257. <Quirk name="requires-allocate-on-input-ports" />
  258. <Quirk name="requires-allocate-on-output-ports" />
  259. <Limit name="size" min="96x64" max="1920x1088" />
  260. <Limit name="alignment" value="2x2" />
  261. <Limit name="block-size" value="16x16" />
  262. <Limit name="blocks-per-second" min="1" max="244800" />
  263. <Limit name="bitrate" range="1-40000000" />
  264. <Limit name="frame-rate" range="1-240" />
  265. <Feature name="adaptive-playback" />
  266. <Limit name="concurrent-instances" max="16" />
  267. </MediaCodec>
  268. <MediaCodec name="OMX.qcom.video.decoder.mpeg2.secure" type="video/mpeg2" >
  269. <Quirk name="requires-allocate-on-input-ports" />
  270. <Quirk name="requires-allocate-on-output-ports" />
  271. <Limit name="size" min="96x64" max="1920x1088" />
  272. <Limit name="alignment" value="2x2" />
  273. <Limit name="block-size" value="16x16" />
  274. <Limit name="blocks-per-second" min="1" max="244800" />
  275. <Limit name="bitrate" range="1-20000000" />
  276. <Limit name="frame-rate" range="1-240" />
  277. <Feature name="adaptive-playback" />
  278. <Feature name="secure-playback" required="true" />
  279. <Limit name="concurrent-instances" max="6" />
  280. </MediaCodec>
  281. <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" >
  282. <Quirk name="requires-allocate-on-input-ports" />
  283. <Quirk name="requires-allocate-on-output-ports" />
  284. <Limit name="size" min="64x64" max="864x480" />
  285. <Limit name="alignment" value="2x2" />
  286. <Limit name="block-size" value="16x16" />
  287. <Limit name="blocks-per-second" min="1" max="489600" />
  288. <Limit name="bitrate" range="1-2000000" />
  289. <Limit name="frame-rate" range="1-240" />
  290. <Feature name="adaptive-playback" />
  291. <Limit name="concurrent-instances" max="16" />
  292. </MediaCodec>
  293. <MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
  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="489600" />
  300. <Limit name="bitrate" range="1-60000000" />
  301. <Limit name="frame-rate" range="1-240" />
  302. <Feature name="adaptive-playback" />
  303. <Limit name="concurrent-instances" max="16" />
  304. </MediaCodec>
  305. <MediaCodec name="OMX.qcom.video.decoder.vc1.secure" type="video/x-ms-wmv" >
  306. <Quirk name="requires-allocate-on-input-ports" />
  307. <Quirk name="requires-allocate-on-output-ports" />
  308. <Limit name="size" min="64x64" max="1920x1088" />
  309. <Limit name="alignment" value="2x2" />
  310. <Limit name="block-size" value="16x16" />
  311. <Limit name="blocks-per-second" min="1" max="244800" />
  312. <Limit name="bitrate" range="1-20000000" />
  313. <Limit name="frame-rate" range="1-240" />
  314. <Feature name="adaptive-playback" />
  315. <Feature name="secure-playback" required="true" />
  316. <Limit name="concurrent-instances" max="6" />
  317. </MediaCodec>
  318. <MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" >
  319. <Quirk name="requires-allocate-on-input-ports" />
  320. <Quirk name="requires-allocate-on-output-ports" />
  321. <Limit name="size" min="64x64" max="1920x1088" />
  322. <Limit name="alignment" value="2x2" />
  323. <Limit name="block-size" value="16x16" />
  324. <Limit name="blocks-per-second" min="1" max="244800" />
  325. <Limit name="bitrate" range="1-10000000" />
  326. <Limit name="frame-rate" range="1-240" />
  327. <Feature name="adaptive-playback" />
  328. <Limit name="concurrent-instances" max="16" />
  329. </MediaCodec>
  330. <MediaCodec name="OMX.qcom.video.decoder.divx311" type="video/divx311" >
  331. <Quirk name="requires-allocate-on-input-ports" />
  332. <Quirk name="requires-allocate-on-output-ports" />
  333. <Limit name="size" min="64x64" max="720x480" />
  334. <Limit name="alignment" value="2x2" />
  335. <Limit name="block-size" value="16x16" />
  336. <Limit name="blocks-per-second" min="1" max="40500" />
  337. <Limit name="bitrate" range="1-2000000" />
  338. <Limit name="frame-rate" range="1-240" />
  339. <Feature name="adaptive-playback" />
  340. <Limit name="concurrent-instances" max="16" />
  341. </MediaCodec>
  342. <MediaCodec name="OMX.qcom.video.decoder.divx4" type="video/divx4" >
  343. <Quirk name="requires-allocate-on-input-ports" />
  344. <Quirk name="requires-allocate-on-output-ports" />
  345. <Limit name="size" min="64x64" max="1920x1088" />
  346. <Limit name="alignment" value="2x2" />
  347. <Limit name="block-size" value="16x16" />
  348. <Limit name="blocks-per-second" min="1" max="244800" />
  349. <Limit name="bitrate" range="1-10000000" />
  350. <Limit name="frame-rate" range="1-240" />
  351. <Feature name="adaptive-playback" />
  352. <Limit name="concurrent-instances" max="16" />
  353. </MediaCodec>
  354. <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
  355. <Quirk name="requires-allocate-on-input-ports" />
  356. <Quirk name="requires-allocate-on-output-ports" />
  357. <Limit name="size" min="64x64" max="3840x2160" />
  358. <Limit name="alignment" value="2x2" />
  359. <Limit name="block-size" value="16x16" />
  360. <Limit name="blocks-per-second" min="1" max="979200" />
  361. <Limit name="bitrate" range="1-100000000" />
  362. <Limit name="frame-rate" range="1-240" />
  363. <Feature name="adaptive-playback" />
  364. <Limit name="concurrent-instances" max="16" />
  365. </MediaCodec>
  366. <MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" >
  367. <Quirk name="requires-allocate-on-input-ports" />
  368. <Quirk name="requires-allocate-on-output-ports" />
  369. <Limit name="size" min="64x64" max="3840x2160" />
  370. <Limit name="alignment" value="2x2" />
  371. <Limit name="block-size" value="16x16" />
  372. <Limit name="blocks-per-second" min="1" max="979200" />
  373. <Limit name="bitrate" range="1-100000000" />
  374. <Limit name="frame-rate" range="1-240" />
  375. <Feature name="adaptive-playback" />
  376. <Limit name="concurrent-instances" max="16" />
  377. </MediaCodec>
  378. <MediaCodec name="OMX.qcom.video.decoder.vp9.secure" type="video/x-vnd.on2.vp9" >
  379. <Quirk name="requires-allocate-on-input-ports" />
  380. <Quirk name="requires-allocate-on-output-ports" />
  381. <Limit name="size" min="64x64" max="3840x2160" />
  382. <Limit name="alignment" value="2x2" />
  383. <Limit name="block-size" value="16x16" />
  384. <Limit name="blocks-per-second" min="1" max="979200" />
  385. <Limit name="bitrate" range="1-35000000" />
  386. <Limit name="frame-rate" range="1-240" />
  387. <Feature name="adaptive-playback" />
  388. <Feature name="secure-playback" required="true" />
  389. <Limit name="concurrent-instances" max="6" />
  390. </MediaCodec>
  391. <MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
  392. <Quirk name="requires-allocate-on-input-ports" />
  393. <Quirk name="requires-allocate-on-output-ports" />
  394. <Limit name="size" min="64x64" max="4096x2160" />
  395. <Limit name="alignment" value="2x2" />
  396. <Limit name="block-size" value="16x16" />
  397. <Limit name="blocks-per-second" min="1" max="1958400" />
  398. <Limit name="bitrate" range="1-100000000" />
  399. <Limit name="frame-rate" range="1-240" />
  400. <Feature name="adaptive-playback" />
  401. <Limit name="concurrent-instances" max="16" />
  402. </MediaCodec>
  403. <MediaCodec name="OMX.qcom.video.decoder.hevc.secure" type="video/hevc" >
  404. <Quirk name="requires-allocate-on-input-ports" />
  405. <Quirk name="requires-allocate-on-output-ports" />
  406. <Limit name="size" min="64x64" max="3840x2160" />
  407. <Limit name="alignment" value="2x2" />
  408. <Limit name="block-size" value="16x16" />
  409. <Limit name="blocks-per-second" min="1" max="979200" />
  410. <Limit name="bitrate" range="1-35000000" />
  411. <Limit name="frame-rate" range="1-240" />
  412. <Feature name="adaptive-playback" />
  413. <Feature name="secure-playback" required="true" />
  414. <Limit name="concurrent-instances" max="6" />
  415. </MediaCodec>
  416. <!-- Audio Software -->
  417. <MediaCodec name="OMX.qti.audio.decoder.flac" type="audio/flac" >
  418. <Limit name="concurrent-instances" max="10" />
  419. </MediaCodec>
  420. </Decoders>
  421. <Include href="media_codecs_google_video.xml" />
  422. </MediaCodecs>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement