1<?xml version="1.0" encoding="utf-8" ?>
2<!-- Copyright (C) 2014 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<Included>
18    <Decoders>
19        <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es">
20            <!-- profiles and levels:  ProfileSimple : Level3 -->
21            <Limit name="size" min="2x2" max="352x288" />
22            <Limit name="alignment" value="2x2" />
23            <Limit name="block-size" value="16x16" />
24            <Limit name="blocks-per-second" range="12-11880" />
25            <Limit name="bitrate" range="1-384000" />
26            <Feature name="adaptive-playback" />
27        </MediaCodec>
28        <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp">
29            <!-- profiles and levels:  ProfileBaseline : Level30, ProfileBaseline : Level45
30                    ProfileISWV2 : Level30, ProfileISWV2 : Level45 -->
31            <Limit name="size" min="2x2" max="352x288" />
32            <Limit name="alignment" value="2x2" />
33            <Limit name="bitrate" range="1-384000" />
34            <Feature name="adaptive-playback" />
35        </MediaCodec>
36        <MediaCodec name="OMX.google.h264.decoder" type="video/avc">
37            <!-- profiles and levels:  ProfileHigh : Level41 -->
38            <Limit name="size" min="16x16" max="1920x1088" />
39            <Limit name="alignment" value="2x2" />
40            <Limit name="block-size" value="16x16" />
41            <Limit name="blocks-per-second" range="1-244800" />
42            <Limit name="bitrate" range="1-12000000" />
43            <Feature name="adaptive-playback" />
44        </MediaCodec>
45        <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc">
46            <!-- profiles and levels:  ProfileMain : MainTierLevel51 -->
47            <Limit name="size" min="2x2" max="2048x2048" />
48            <Limit name="alignment" value="2x2" />
49            <Limit name="block-size" value="8x8" />
50            <Limit name="block-count" range="1-139264" />
51            <Limit name="blocks-per-second" range="1-2000000" />
52            <Limit name="bitrate" range="1-10000000" />
53            <Feature name="adaptive-playback" />
54        </MediaCodec>
55        <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8">
56            <Limit name="size" min="2x2" max="2048x2048" />
57            <Limit name="alignment" value="2x2" />
58            <Limit name="block-size" value="16x16" />
59            <Limit name="blocks-per-second" range="1-1000000" />
60            <Limit name="bitrate" range="1-40000000" />
61            <Feature name="adaptive-playback" />
62        </MediaCodec>
63        <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9">
64            <Limit name="size" min="2x2" max="2048x2048" />
65            <Limit name="alignment" value="2x2" />
66            <Limit name="block-size" value="16x16" />
67            <Limit name="blocks-per-second" range="1-500000" />
68            <Limit name="bitrate" range="1-40000000" />
69            <Feature name="adaptive-playback" />
70        </MediaCodec>
71    </Decoders>
72
73    <Encoders>
74        <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp">
75            <!-- profiles and levels:  ProfileBaseline : Level45 -->
76            <Limit name="size" min="176x144" max="176x144" />
77            <Limit name="alignment" value="16x16" />
78            <Limit name="bitrate" range="1-128000" />
79        </MediaCodec>
80        <MediaCodec name="OMX.google.h264.encoder" type="video/avc">
81            <!-- profiles and levels:  ProfileBaseline : Level41 -->
82            <Limit name="size" min="16x16" max="1920x1088" />
83            <Limit name="alignment" value="2x2" />
84            <Limit name="block-size" value="16x16" />
85            <Limit name="blocks-per-second" range="1-244800" />
86            <!-- Changed range from 12000000 to 20000000 for b/31648354 -->
87            <Limit name="bitrate" range="1-20000000" />
88            <Feature name="intra-refresh" />
89        </MediaCodec>
90        <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es">
91            <!-- profiles and levels:  ProfileCore : Level2 -->
92            <Limit name="size" min="16x16" max="176x144" />
93            <Limit name="alignment" value="16x16" />
94            <Limit name="block-size" value="16x16" />
95            <Limit name="blocks-per-second" range="12-1485" />
96            <Limit name="bitrate" range="1-64000" />
97        </MediaCodec>
98        <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8">
99            <!-- profiles and levels:  ProfileMain : Level_Version0-3 -->
100            <Limit name="size" min="2x2" max="2048x2048" />
101            <Limit name="alignment" value="2x2" />
102            <Limit name="bitrate" range="1-40000000" />
103            <Feature name="bitrate-modes" value="VBR,CBR" />
104        </MediaCodec>
105    </Encoders>
106</Included>
107