1<?xml version="1.0" encoding="utf-8" ?>
2<!--
3/*
4** Copyright 2017, 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<!-- The 'range' values below are based on tests run 2016-04-13 on Ubuntu 14.04
21     x86-64, Xeon 2.8 GHz x 10
22
23     The range values are set to (meas / sqrt(tolerance)) and
24     (meas * sqrt(tolerance)).
25     These values maximize the 'success' window for the tests performed in
26     cts/libs/deviceutil/src/android/cts/util/MediaUtils.java.
27     That file defines 'tolerance' as sqrt(12.1).
28
29     Where multiple results were obtained, the geometric mean was used.
30
31        OMX.google.h264.encoder  video/avc            320x 240 measured 1294.2
32        OMX.google.h264.decoder  video/avc            320x 240 measured 7204.1, 9151.4
33
34        OMX.google.h263.encoder  video/3gpp           176x 144 measured 2127.0
35        OMX.google.h263.decoder  video/3gpp           176x 144 measured 7574.0
36
37        OMX.google.mpeg4.encoder video/mp4v-es        176x 144 measured 2783.8
38        OMX.google.mpeg4.decoder video/mp4v-es        176x 144 measured 6954.2
39
40        OMX.google.vp8.encoder   video/x-vnd.on2.vp8 1280x 720 measured  195.0
41        OMX.google.vp8.encoder   video/x-vnd.on2.vp8 1920x1080 measured   93.3,   91.1
42        OMX.google.vp8.decoder   video/x-vnd.on2.vp8 1280x 720 measured 1196.1, 1211.3
43        OMX.google.vp8.decoder   video/x-vnd.on2.vp8 1920x1080 measured  483.7,  497.6
44-->
45
46<MediaCodecs>
47    <Encoders>
48        <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
49            <!-- 3 runs, min 849 max 1008 gmean 943 -->
50            <Limit name="measured-frame-rate-176x144" range="849-1008" />
51        </MediaCodec>
52        <MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
53            <!-- 3 runs, min 496 max 629 gmean 565 -->
54            <Limit name="measured-frame-rate-320x240" range="496-629" />
55            <!-- 2 runs, min 197 max 203 gmean 201 -->
56            <Limit name="measured-frame-rate-720x480" range="197-203" />
57            <!-- 2 runs, min 93 max 97 gmean 95 -->
58            <Limit name="measured-frame-rate-1280x720" range="93-97" />
59            <!-- 2 runs, min 45 max 47 gmean 46 -->
60            <Limit name="measured-frame-rate-1920x1080" range="45-47" />
61        </MediaCodec>
62        <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
63            <!-- 3 runs, min 881 max 1142 gmean 994 -->
64            <Limit name="measured-frame-rate-176x144" range="881-1142" />
65        </MediaCodec>
66        <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
67            <!-- 3 runs, min 249 max 285 gmean 264 -->
68            <Limit name="measured-frame-rate-320x180" range="249-285" />
69            <!-- 3 runs, min 104 max 115 gmean 109 -->
70            <Limit name="measured-frame-rate-640x360" range="104-115" />
71            <!-- 3 runs, min 34 max 35 gmean 34 -->
72            <Limit name="measured-frame-rate-1280x720" range="34-35" />
73            <!-- 3 runs, min 26 max 29 gmean 27 -->
74            <Limit name="measured-frame-rate-1920x1080" range="26-29" />
75        </MediaCodec>
76    </Encoders>
77    <Decoders>
78        <MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
79            <!-- 4 runs, min 196 max 297 gmean 265 -->
80            <Limit name="measured-frame-rate-320x240" range="196-297" />
81            <!-- 4 runs, min 138 max 158 gmean 151 -->
82            <Limit name="measured-frame-rate-720x480" range="138-158" />
83            <!-- 4 runs, min 60 max 65 gmean 62 -->
84            <Limit name="measured-frame-rate-1280x720" range="60-65" />
85            <!-- 4 runs, min 27 max 31 gmean 29 -->
86            <Limit name="measured-frame-rate-1920x1080" range="27-31" />
87        </MediaCodec>
88        <MediaCodec name="c2.android.h263.decoder" type="video/3gpp" update="true">
89            <!-- 4 runs, min 247 max 354 gmean 307 -->
90            <Limit name="measured-frame-rate-176x144" range="247-354" />
91            <!-- 4 runs, min 230 max 333 gmean 277 -->
92            <Limit name="measured-frame-rate-352x288" range="230-333" />
93        </MediaCodec>
94        <MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
95            <!-- 4 runs, min 234 max 315 gmean 276 -->
96            <Limit name="measured-frame-rate-352x288" range="234-315" />
97            <!-- 4 runs, min 215 max 267 gmean 242 -->
98            <Limit name="measured-frame-rate-640x360" range="215-267" />
99            <!-- 4 runs, min 209 max 249 gmean 236 -->
100            <Limit name="measured-frame-rate-720x480" range="209-249" />
101            <!-- 4 runs, min 125 max 146 gmean 139 -->
102            <Limit name="measured-frame-rate-1280x720" range="125-146" />
103            <!-- 4 runs, min 80 max 89 gmean 84 -->
104            <Limit name="measured-frame-rate-1920x1080" range="80-89" />
105        </MediaCodec>
106        <MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
107            <!-- 4 runs, min 285 max 404 gmean 344 -->
108            <Limit name="measured-frame-rate-176x144" range="285-404" />
109        </MediaCodec>
110        <MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
111            <!-- 4 runs, min 253 max 340 gmean 288 -->
112            <Limit name="measured-frame-rate-320x180" range="253-340" />
113            <!-- 4 runs, min 183 max 243 gmean 221 -->
114            <Limit name="measured-frame-rate-640x360" range="183-243" />
115            <!-- 4 runs, min 107 max 113 gmean 110 -->
116            <Limit name="measured-frame-rate-1280x720" range="107-113" />
117            <!-- 4 runs, min 50 max 59 gmean 53 -->
118            <Limit name="measured-frame-rate-1920x1080" range="50-59" />
119        </MediaCodec>
120        <MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
121            <!-- 4 runs, min 264 max 311 gmean 283 -->
122            <Limit name="measured-frame-rate-320x180" range="264-311" />
123            <!-- 4 runs, min 189 max 255 gmean 224 -->
124            <Limit name="measured-frame-rate-640x360" range="189-255" />
125            <!-- 4 runs, min 127 max 138 gmean 224 -->
126            <Limit name="measured-frame-rate-1280x720" range="127-138" />
127            <!-- 4 runs, min 65 max 88 gmean 77 -->
128            <Limit name="measured-frame-rate-1920x1080" range="65-88" />
129        </MediaCodec>
130        <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
131            <!-- 3 runs, min 1246 max 1390 gmean 1342 -->
132            <Limit name="measured-frame-rate-176x144" range="1246-1390" />
133        </MediaCodec>
134        <MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
135            <!-- 5 runs, min 299 max 629 gmean 567 -->
136            <Limit name="measured-frame-rate-320x240" range="299-629" />
137            <!-- 4 runs, min 215 max 250 gmean 232 -->
138            <Limit name="measured-frame-rate-720x480" range="215-250" />
139            <!-- 4 runs, min 75 max 85 gmean 78 -->
140            <Limit name="measured-frame-rate-1280x720" range="75-85" />
141            <!-- 4 runs, min 31 max 34 gmean 33 -->
142            <Limit name="measured-frame-rate-1920x1080" range="31-34" />
143        </MediaCodec>
144        <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
145            <!-- 4 runs, min 754 max 817 gmean 775 -->
146            <Limit name="measured-frame-rate-352x288" range="754-817" />
147            <!-- 4 runs, min 323 max 394 gmean 373 -->
148            <Limit name="measured-frame-rate-640x360" range="323-394" />
149            <!-- 4 runs, min 349 max 372 gmean 358 -->
150            <Limit name="measured-frame-rate-720x480" range="349-372" />
151            <!-- 4 runs, min 144 max 157 gmean 151 -->
152            <Limit name="measured-frame-rate-1280x720" range="144-157" />
153            <!-- 4 runs, min 74 max 85 gmean 80 -->
154            <Limit name="measured-frame-rate-1920x1080" range="74-85" />
155        </MediaCodec>
156        <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" update="true">
157            <!-- 4 runs, min 1439 max 1625 gmean 1523 -->
158            <Limit name="measured-frame-rate-176x144" range="1439-1625" />
159        </MediaCodec>
160        <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
161            <!-- 3 runs, min 1129 max 1261 gmean 1190 -->
162            <Limit name="measured-frame-rate-320x180" range="1129-1261" />
163            <!-- 3 runs, min 471 max 525 gmean 504 -->
164            <Limit name="measured-frame-rate-640x360" range="471-525" />
165            <!-- 3 runs, min 126 max 145 gmean 132 -->
166            <Limit name="measured-frame-rate-1280x720" range="126-145" />
167            <!-- 3 runs, min 48 max 51 gmean 49 -->
168            <Limit name="measured-frame-rate-1920x1080" range="48-51" />
169        </MediaCodec>
170        <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
171            <!-- 2 runs, min 968 max 1101 gmean 1044 -->
172            <Limit name="measured-frame-rate-320x180" range="968-1101" />
173            <!-- 3 runs, min 291 max 338 gmean 319 -->
174            <Limit name="measured-frame-rate-640x360" range="291-338" />
175            <!-- Those values are from buildbots -->
176            <Limit name="measured-frame-rate-1280x720" range="280-400" />
177            <!-- Buildbot gets ~180 if it is in the first run, ~230 if it is the second run -->
178            <Limit name="measured-frame-rate-1920x1080" range="178-240" />
179        </MediaCodec>
180    </Decoders>
181</MediaCodecs>
182