blob: 6afe04968cf7d7d8692d953af510e9d54404acaa [file] [log] [blame]
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<MediaCodecs>
<Encoders>
<MediaCodec name="c2.vea.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="599-599" />
<Limit name="measured-frame-rate-720x480" range="317-323" />
<!-- Set wider ranges to cover SKU variance: b/154660894 -->
<Limit name="measured-frame-rate-1280x720" range="122-270" />
<Limit name="measured-frame-rate-1920x1080" range="56-123" />
</MediaCodec>
</Encoders>
<Decoders>
<MediaCodec name="c2.vda.avc.decoder" type="video/avc" update="true">
<!-- b/155707252: Enlarge range for small resolution, geometric mean: 1604 -->
<Limit name="measured-frame-rate-320x240" range="1082-2380" />
<Limit name="measured-frame-rate-720x480" range="1082-1920" />
<Limit name="measured-frame-rate-1280x720" range="1082-1253" />
<Limit name="measured-frame-rate-1920x1088" range="710-710" />
</MediaCodec>
<MediaCodec name="c2.vda.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
<!-- b/155707252: Enlarge range for small resolution, geometric mean: 1639 -->
<Limit name="measured-frame-rate-320x180" range="1105-2432" />
<Limit name="measured-frame-rate-640x360" range="1105-2268" />
<Limit name="measured-frame-rate-1280x720" range="1105-1302" />
<Limit name="measured-frame-rate-1920x1080" range="659-659" />
</MediaCodec>
<MediaCodec name="c2.vda.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<!-- (b/153827927): FPS at small resolution differ a lot in different SKUs.
FPS of Kohaku is about 2600 and FPS of Kindred is about 1038.
We calculate the geometric mean of 1038 and 2600 as "value",
and enlarge the range to value/(2.2)^0.5 to value*(2.2)^0.5.
Then the real range becomes value/(2.2)^1.5 to value*(2.2)^1.5.
(i.e. 503-5360) -->
<Limit name="measured-frame-rate-320x180" range="1108-2437" />
<Limit name="measured-frame-rate-640x360" range="1108-2437" />
<Limit name="measured-frame-rate-1280x720" range="1272-1280" />
<Limit name="measured-frame-rate-1920x1080" range="836-854" />
<Limit name="measured-frame-rate-3840x2160" range="203-203" />
</MediaCodec>
</Decoders>
</MediaCodecs>