1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012-2020 The Linux Foundation. All rights reserved.
3     Not a contribution.
4     Copyright (C) 2012-2013 The Android Open Source Project
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
35There's a simple and a complex syntax to declare the availability of a
36media codec:
37
38A codec that properly follows the OpenMax spec and therefore doesn't have any
39quirks and that only supports a single content type can be declared like so:
40
41    <MediaCodec name="OMX.foo.bar" type="something/interesting" />
42
43If a codec has quirks OR supports multiple content types, the following syntax
44can 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
55Only 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"performance-point"
84    Vendor-guaranteed performance advertised to the applications
85        <Limit name="performance-point-widthxheight" value="fps" />
86
87    -For each of the resolutions, the advertised fps is the max supported,
88    with HW-friendly color format and considering video-only.
89    -Performance for any intermediate resolution will be that of the
90    next-higher-advertised-resolution.
91
92    standard sizes: 480p/576p (SD), 720p (HD), 1080p (FHD), 2160p (UHD)
93    standard frame rates: 24, 25, 30, 48+, 50, 60, 100*, 120*, 200*, 240* fps
94        * HD+ only
95        + SD only
96    - All supported standard performance points are listed (unless they are
97    covered by another listed standard performance point)
98    - Non-standard performance points are listed along with all the standard
99    performance points covered by them.
100-->
101<!--
102"block-count"
103    Used by following MediaCodecInfo apis:
104        getSupportedWidthsFor(height) and
105        getSupportedHeightsFor(width)
106-->
107<!--
108 Non-Secure decoder capabilities
109 (MB is defined as 16x16)
110 _____________________________________________________________________
111 | Codec       | W       H       fps     Mbps    MB/s        Max MB/s|
112 |_____________|_____________________________________________________|
113 | h264        | 1920    1088    480     220     3916800     7776000 |
114 |             | 3820    2160    240     220     7735500             |
115 |             | 4096    2160    120     220     4147200             |
116 |             | 7680    4320    60      220     7776000             |
117 | hevc        | 1920    1088    480     220     3916800     7776000 |
118 |             | 3820    2160    240     220     7735500             |
119 |             | 4096    2160    120     220     4147200             |
120 |             | 7680    4320    60      220     7776000             |
121 | mpeg4-sw    | 1920    1088    30      40      244800      244800  |
122 |             | 1280    720     30      40      108000              |
123 | vp8         | 1280    720     120     220     432000      1036800 |
124 |             | 1920    1088    120     220     979200              |
125 |             | 3840    2160    30      220     972000              |
126 |             | 4096    2160    30      220     1036800             |
127 | vp9         | 1920    1088    480     220     3916800     7776000 |
128 |             | 3820    2160    240     220     7735500             |
129 |             | 4096    2160    120     220     4147200             |
130 |             | 7680    4320    60      220     7776000             |
131 | h263-sw     | 864     480     30      16      48600       48600   |
132 | mpeg2       | 1020    1088    60i     40      130050      244800  |
133 |             | 1920    1088    30      40      244800              |
134 |_____________|_____________________________________________________|
135
136 Secure decoder capabilities
137 (MB is defined as 16x16)
138 __________________________________________________________________
139 | Codec    | W       H       fps     Mbps    MB/s        Max MB/s|
140 |__________|_____________________________________________________|
141 | h264     | 1280    720     60      40      216000      2073600 |
142 |          | 1920    1088    60      40      489600              |
143 |          | 3840    2160    60      40      1944000             |
144 |          | 4096    2160    60      40      2073600             |
145 |          | 4096    2304    30      40      1105920             |
146 | hevc     | 1280    720     60      40      216000      2073600 |
147 |          | 1920    1088    60      40      489600              |
148 |          | 3840    2160    60      40      1944000             |
149 |          | 4096    2160    60      40      2073600             |
150 |          | 4096    2304    30      40      1105920             |
151 | vp9      | 1280    720     60      40      216000      2073600 |
152 |          | 1920    1088    60      40      489600              |
153 |          | 3840    2160    60      40      1944000             |
154 |          | 4096    2160    60      40      2073600             |
155 |          | 4096    2304    30      40      1105920             |
156 | mpeg2    | 1920    1088    30      40      244800      244800  |
157 |__________|_____________________________________________________|
158
159 Non-Secure encoder capabilities (Secure not supported)
160 (MB is defined as 16x16)
161 __________________________________________________________________
162 | Codec    | W       H       fps     Mbps    MB/s        Max MB/s|
163 |__________|_____________________________________________________|
164 | h264     | 1280    720     960     220     3456000     3916800 |
165 |          | 1920    1088    480     220     3916800             |
166 |          | 3840    2160    120     220     3888000             |
167 |          | 4096    2160    60      220     2073600             |
168 |          | 8192    4320    24      220     3317760             |
169 | hevc     | 1280    720     960     220     3456000     3916800 |
170 |          | 1920    1088    480     220     3916800             |
171 |          | 3840    2160    120     220     3888000             |
172 |          | 4096    2160    60      220     2073600             |
173 |          | 8192    4320    24      220     3317760             |
174 | hevc.cq  | 512     512     3825    220     3916800     3916800 |
175 | mpeg4-sw | 1280    720     30      4       108000      108000  |
176 | vp8      | 1280    720     60      70      216000      2073600 |
177 |          | 1920    1088    60      70      489600              |
178 |          | 3840    2160    60      70      1944000             |
179 |          | 4096    2160    60      70      2073600             |
180 | h263-sw  | 864     480     30      2       48600       48600   |
181 |__________|_____________________________________________________|
182-->
183
184<MediaCodecs>
185    <Include href="media_codecs_google_audio.xml" />
186    <Include href="media_codecs_google_telephony.xml" />
187    <Settings>
188        <Setting name="max-video-encoder-input-buffers" value="11" />
189    </Settings>
190    <Encoders>
191        <!-- Video Hardware  -->
192        <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
193            <Quirk name="requires-allocate-on-input-ports" />
194            <Quirk name="requires-allocate-on-output-ports" />
195            <Quirk name="requires-loaded-to-idle-after-allocation" />
196            <Limit name="size" min="128x128" max="8192x8192" />
197            <Limit name="alignment" value="2x2" />
198            <Limit name="block-size" value="16x16" />
199            <Limit name="block-count" range="64-138240" />
200            <Limit name="blocks-per-second" min="64" max="3916800" />
201            <Limit name="bitrate" range="1-220000000" />
202            <Limit name="frame-rate" range="1-960" />
203            <Limit name="concurrent-instances" max="16" />
204            <Limit name="performance-point-1280x720" value="960" />
205            <Limit name="performance-point-1920x1080" value="480" />
206            <Limit name="performance-point-1920x1080" value="240" />
207            <Limit name="performance-point-3840x2160" value="120" />
208            <Limit name="performance-point-7680x4320" value="30" />
209        </MediaCodec>
210        <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" >
211            <Quirk name="requires-allocate-on-input-ports" />
212            <Quirk name="requires-allocate-on-output-ports" />
213            <Quirk name="requires-loaded-to-idle-after-allocation" />
214            <Limit name="size" min="128x128" max="4096x4096" />
215            <Limit name="alignment" value="2x2" />
216            <Limit name="block-size" value="16x16" />
217            <Limit name="block-count" range="64-34560" />
218            <Limit name="blocks-per-second" min="64" max="2073600" />
219            <Limit name="bitrate" range="1-70000000" />
220            <Limit name="frame-rate" range="1-60" />
221            <Limit name="concurrent-instances" max="16" />
222            <Limit name="performance-point-3840x2160" value="60" />
223            <Limit name="performance-point-4096x2160" value="60" />
224        </MediaCodec>
225        <MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" >
226            <Quirk name="requires-allocate-on-input-ports" />
227            <Quirk name="requires-allocate-on-output-ports" />
228            <Quirk name="requires-loaded-to-idle-after-allocation" />
229            <Limit name="size" min="128x128" max="8192x8192" />
230            <Limit name="alignment" value="2x2" />
231            <Limit name="block-size" value="16x16" />
232            <Limit name="block-count" range="64-138240" />
233            <Limit name="blocks-per-second" min="64" max="3916800" />
234            <Limit name="bitrate" range="1-160000000" />
235            <Limit name="frame-rate" range="1-960" />
236            <Limit name="concurrent-instances" max="16" />
237            <Feature name="bitrate-modes" value="VBR,CBR" />
238            <Limit name="performance-point-1280x720" value="960" />
239            <Limit name="performance-point-1920x1080" value="480" />
240            <Limit name="performance-point-1920x1080" value="240" />
241            <Limit name="performance-point-3840x2160" value="120" />
242            <Limit name="performance-point-7680x4320" value="30" />
243        </MediaCodec>
244        <MediaCodec name="OMX.qcom.video.encoder.hevc.cq" type="video/hevc" >
245            <Quirk name="requires-allocate-on-input-ports" />
246            <Quirk name="requires-allocate-on-output-ports" />
247            <Quirk name="requires-loaded-to-idle-after-allocation" />
248            <Limit name="size" min="128x128" max="512x512" />
249            <Limit name="alignment" value="2x2" />
250            <Limit name="block-size" value="16x16" />
251            <Limit name="frame-rate" range="1-20" />
252            <Limit name="concurrent-instances" max="16" />
253            <Limit name="quality" range="0-100" default="80" />
254            <Feature name="bitrate-modes" value="CQ" />
255            <Limit name="performance-point-512x512" value="3825" />
256        </MediaCodec>
257        <MediaCodec name="OMX.qcom.video.encoder.heic" type="image/vnd.android.heic" >
258            <Quirk name="requires-allocate-on-input-ports" />
259            <Quirk name="requires-allocate-on-input-ports" />
260            <Quirk name="requires-allocate-on-output-ports" />
261            <Quirk name="requires-loaded-to-idle-after-allocation" />
262            <Limit name="size" min="512x512" max="16384x16384" />
263            <Limit name="alignment" value="2x2" />
264            <Limit name="block-size" value="16x16" />
265            <Limit name="frame-rate" range="1-20" />
266            <Limit name="concurrent-instances" max="6" />
267            <Limit name="quality" range="0-100" default="80" />
268            <Feature name="bitrate-modes" value="CQ" />
269            <Limit name="performance-point-16384x8192" value="3" />
270            <Limit name="performance-point-1920x1080" value="6" />
271        </MediaCodec>
272        <!-- Video Software -->
273        <MediaCodec name="OMX.qcom.video.encoder.h263sw" type="video/3gpp" >
274            <Quirk name="requires-allocate-on-input-ports" />
275            <Quirk name="requires-allocate-on-output-ports" />
276            <Quirk name="requires-loaded-to-idle-after-allocation" />
277            <Limit name="size" min="96x96" max="864x864" />
278            <Limit name="alignment" value="4x4" />
279            <Limit name="block-size" value="16x16" />
280            <Limit name="block-count" range="36-1620" />
281            <Limit name="blocks-per-second" min="36" max="48600" />
282            <Limit name="bitrate" range="1-2000000" />
283            <Limit name="frame-rate" range="1-30" />
284            <Limit name="concurrent-instances" max="3" />
285            <Limit name="performance-point-720x576" value="25" />
286            <Limit name="performance-point-720x480" value="30" />
287            <Limit name="performance-point-864x480" value="30" />
288        </MediaCodec>
289        <MediaCodec name="OMX.qcom.video.encoder.mpeg4sw" type="video/mp4v-es" >
290             <Quirk name="requires-allocate-on-input-ports" />
291             <Quirk name="requires-allocate-on-output-ports" />
292             <Quirk name="requires-loaded-to-idle-after-allocation" />
293             <Limit name="size" min="96x96" max="864x864" />
294             <Limit name="alignment" value="2x2" />
295             <Limit name="block-size" value="16x16" />
296             <Limit name="block-count" range="36-1620" />
297             <Limit name="blocks-per-second" min="36" max="48600" />
298             <Limit name="bitrate" range="1-8000000" />
299             <Limit name="frame-rate" range="1-30" />
300             <Limit name="concurrent-instances" max="3" />
301             <Limit name="performance-point-720x576" value="25" />
302             <Limit name="performance-point-720x480" value="30" />
303             <Limit name="performance-point-864x480" value="30" />
304        </MediaCodec>
305    </Encoders>
306    <Decoders>
307       <!-- Video Hardware  -->
308        <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
309            <Quirk name="requires-allocate-on-input-ports" />
310            <Quirk name="requires-allocate-on-output-ports" />
311            <Limit name="size" min="128x128" max="8192x8192" />
312            <Limit name="alignment" value="2x2" />
313            <Limit name="block-size" value="16x16" />
314            <Limit name="block-count" range="64-138240" />
315            <Limit name="blocks-per-second" min="64" max="7776000" />
316            <Limit name="bitrate" range="1-220000000" />
317            <Limit name="frame-rate" range="1-960" />
318            <Feature name="adaptive-playback" />
319            <Limit name="concurrent-instances" max="16" />
320            <Limit name="performance-point-1280x720" value="960" />
321            <Limit name="performance-point-1920x1080" value="480" />
322            <Limit name="performance-point-3840x2160" value="240" />
323            <Limit name="performance-point-4096x2160" value="120" />
324            <Limit name="performance-point-7680x4320" value="60" />
325            <Limit name="performance-point-8192x4320" value="48" />
326        </MediaCodec>
327        <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
328            <Quirk name="requires-allocate-on-input-ports" />
329            <Quirk name="requires-allocate-on-output-ports" />
330            <Limit name="size" min="128x128" max="4096x4096" />
331            <Limit name="alignment" value="2x2" />
332            <Limit name="block-size" value="16x16" />
333            <Limit name="block-count" range="64-34560" />
334            <Limit name="blocks-per-second" min="64" max="2073600" />
335            <Limit name="bitrate" range="1-40000000" />
336            <Limit name="frame-rate" range="1-60" />
337            <Feature name="adaptive-playback" />
338            <Feature name="secure-playback" required="true" />
339            <Limit name="concurrent-instances" max="3" />
340            <Limit name="performance-point-3840x2160" value="60" />
341            <Limit name="performance-point-4096x2304" value="60" />
342        </MediaCodec>
343        <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
344            <Quirk name="requires-allocate-on-input-ports" />
345            <Quirk name="requires-allocate-on-output-ports" />
346            <Limit name="size" min="128x128" max="1920x1920" />
347            <Limit name="alignment" value="2x2" />
348            <Limit name="block-size" value="16x16" />
349            <Limit name="block-count" range="64-8160" />
350            <Limit name="blocks-per-second" min="64" max="244800" />
351            <Limit name="bitrate" range="1-40000000" />
352            <Limit name="frame-rate" range="1-30" />
353            <Feature name="adaptive-playback" />
354            <Limit name="concurrent-instances" max="16" />
355            <Limit name="performance-point-1920x1080" value="30" />
356        </MediaCodec>
357        <MediaCodec name="OMX.qcom.video.decoder.mpeg2.secure" type="video/mpeg2" >
358            <Quirk name="requires-allocate-on-input-ports" />
359            <Quirk name="requires-allocate-on-output-ports" />
360            <Limit name="size" min="128x128" max="1920x1920" />
361            <Limit name="alignment" value="2x2" />
362            <Limit name="block-size" value="16x16" />
363            <Limit name="block-count" range="64-8160" />
364            <Limit name="blocks-per-second" min="64" max="244800" />
365            <Limit name="bitrate" range="1-40000000" />
366            <Limit name="frame-rate" range="1-30" />
367            <Feature name="adaptive-playback" />
368            <Feature name="secure-playback" required="true" />
369            <Limit name="concurrent-instances" max="3" />
370            <Limit name="performance-point-1920x1080" value="30" />
371        </MediaCodec>
372        <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
373            <Quirk name="requires-allocate-on-input-ports" />
374            <Quirk name="requires-allocate-on-output-ports" />
375            <Limit name="size" min="128x128" max="4096x4096" />
376            <Limit name="alignment" value="2x2" />
377            <Limit name="block-size" value="16x16" />
378            <Limit name="block-count" range="64-34560" />
379            <Limit name="blocks-per-second" min="64" max="1036800" />
380            <Limit name="bitrate" range="1-100000000" />
381            <Limit name="frame-rate" range="1-120" />
382            <Feature name="adaptive-playback" />
383            <Limit name="concurrent-instances" max="16" />
384            <Limit name="performance-point-1920x1080" value="120" />
385            <Limit name="performance-point-3840x2160" value="30" />
386            <Limit name="performance-point-4096x2160" value="30" />
387        </MediaCodec>
388        <MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" >
389            <Quirk name="requires-allocate-on-input-ports" />
390            <Quirk name="requires-allocate-on-output-ports" />
391            <Limit name="size" min="128x128" max="8192x8192" />
392            <Limit name="alignment" value="2x2" />
393            <Limit name="block-size" value="16x16" />
394            <Limit name="block-count" range="64-138240" />
395            <Limit name="blocks-per-second" min="64" max="7776000" />
396            <Limit name="bitrate" range="1-100000000" />
397            <Limit name="frame-rate" range="1-960" />
398            <Feature name="adaptive-playback" />
399            <Limit name="concurrent-instances" max="6" />
400            <Limit name="performance-point-1280x720" value="960" />
401            <Limit name="performance-point-1920x1080" value="480" />
402            <Limit name="performance-point-3840x2160" value="240" />
403            <Limit name="performance-point-4096x2160" value="120" />
404            <Limit name="performance-point-7680x4320" value="60" />
405            <Limit name="performance-point-8192x4320" value="48" />
406        </MediaCodec>
407        <MediaCodec name="OMX.qcom.video.decoder.vp9.secure" type="video/x-vnd.on2.vp9" >
408            <Quirk name="requires-allocate-on-input-ports" />
409            <Quirk name="requires-allocate-on-output-ports" />
410            <Limit name="size" min="128x128" max="4096x4096" />
411            <Limit name="alignment" value="2x2" />
412            <Limit name="block-size" value="16x16" />
413            <Limit name="block-count" range="64-34560" />
414            <Limit name="blocks-per-second" min="64" max="2073600" />
415            <Limit name="bitrate" range="1-40000000" />
416            <Limit name="frame-rate" range="1-60" />
417            <Feature name="adaptive-playback" />
418            <Feature name="secure-playback" required="true" />
419            <Limit name="concurrent-instances" max="3" />
420            <Limit name="performance-point-3840x2160" value="60" />
421            <Limit name="performance-point-4096x2304" value="60" />
422        </MediaCodec>
423        <MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
424            <Quirk name="requires-allocate-on-input-ports" />
425            <Quirk name="requires-allocate-on-output-ports" />
426            <Limit name="size" min="128x128" max="8192x8192" />
427            <Limit name="alignment" value="2x2" />
428            <Limit name="block-size" value="16x16" />
429            <Limit name="block-count" range="64-138240" />
430            <Limit name="blocks-per-second" min="64" max="7776000" />
431            <Limit name="bitrate" range="1-160000000" />
432            <Limit name="frame-rate" range="1-960" />
433            <Feature name="adaptive-playback" />
434            <Limit name="concurrent-instances" max="16" />
435            <Limit name="performance-point-1280x720" value="960" />
436            <Limit name="performance-point-1920x1080" value="480" />
437            <Limit name="performance-point-3840x2160" value="240" />
438            <Limit name="performance-point-4096x2160" value="120" />
439            <Limit name="performance-point-7680x4320" value="60" />
440            <Limit name="performance-point-8192x4320" value="48" />
441        </MediaCodec>
442        <MediaCodec name="OMX.qcom.video.decoder.hevc.secure" type="video/hevc" >
443            <Quirk name="requires-allocate-on-input-ports" />
444            <Quirk name="requires-allocate-on-output-ports" />
445            <Limit name="size" min="128x128" max="4096x4096" />
446            <Limit name="alignment" value="2x2" />
447            <Limit name="block-size" value="16x16" />
448            <Limit name="block-count" range="64-34560" />
449            <Limit name="blocks-per-second" min="64" max="2073600" />
450            <Limit name="bitrate" range="1-40000000" />
451            <Limit name="frame-rate" range="1-60" />
452            <Feature name="adaptive-playback" />
453            <Feature name="secure-playback" required="true" />
454            <Limit name="concurrent-instances" max="3" />
455            <Limit name="performance-point-3840x2160" value="60" />
456            <Limit name="performance-point-4096x2304" value="60" />
457        </MediaCodec>
458        <!-- Video Software -->
459        <MediaCodec name="OMX.qti.video.decoder.h263sw" type="video/3gpp" >
460             <Quirk name="requires-allocate-on-input-ports" />
461             <Quirk name="requires-allocate-on-output-ports" />
462             <Limit name="size" min="96x96" max="864x864" />
463             <Limit name="alignment" value="4x4" />
464             <Limit name="block-size" value="16x16" />
465             <Limit name="block-count" range="36-1620" />
466             <Limit name="blocks-per-second" min="36" max="48600" />
467             <Limit name="bitrate" range="1-16000000" />
468             <Limit name="frame-rate" range="1-30" />
469             <Feature name="adaptive-playback" />
470             <Limit name="concurrent-instances" max="4" />
471             <Limit name="performance-point-720x480" value="30" />
472             <Limit name="performance-point-720x576" value="25" />
473             <Limit name="performance-point-864x480" value="30" />
474        </MediaCodec>
475        <MediaCodec name="OMX.qti.video.decoder.mpeg4sw" type="video/mp4v-es">
476             <Quirk name="requires-allocate-on-input-ports" />
477             <Quirk name="requires-allocate-on-output-ports" />
478             <Limit name="size" min="96x96" max="1920x1920" />
479             <Limit name="alignment" value="2x2" />
480             <Limit name="block-size" value="16x16" />
481             <Limit name="block-count" range="36-8160" />
482             <Limit name="blocks-per-second" min="36" max="244800" />
483             <Limit name="bitrate" range="1-40000000" />
484             <Limit name="frame-rate" range="1-30" />
485             <Limit name="concurrent-instances" max="4" />
486             <Limit name="performance-point-1920x1080" value="30" />
487        </MediaCodec>
488        <MediaCodec name="OMX.google.opus.decoder" type="audio/opus" update="true" rank="100"/>
489    </Decoders>
490    <Include href="media_codecs_google_video.xml" />
491</MediaCodecs>
492