shamu: add media_codecs_performance.xml

Bug: 22504214
Change-Id: I745debb33a765073499b46e2ed83fa31a45b329d
diff --git a/device.mk b/device.mk
index b2c8f4a..914e156 100644
--- a/device.mk
+++ b/device.mk
@@ -49,7 +49,8 @@
 
 PRODUCT_COPY_FILES += \
     device/moto/shamu/media_profiles.xml:system/etc/media_profiles.xml \
-    device/moto/shamu/media_codecs.xml:system/etc/media_codecs.xml
+    device/moto/shamu/media_codecs.xml:system/etc/media_codecs.xml \
+    device/moto/shamu/media_codecs_performance.xml:system/etc/media_codecs_performance.xml
 
 PRODUCT_COPY_FILES += \
     device/moto/shamu/mixer_paths.xml:system/etc/mixer_paths.xml \
diff --git a/media_codecs_performance.xml b/media_codecs_performance.xml
new file mode 100644
index 0000000..4126dc8
--- /dev/null
+++ b/media_codecs_performance.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2015 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="OMX.qcom.video.encoder.avc" type="video/avc" update="true">
+            <Limit name="measured-frame-rate-320x240" range="727-727" />
+            <Limit name="measured-frame-rate-720x480" range="322-322" />
+            <Limit name="measured-frame-rate-1280x720" range="147-147" />
+            <Limit name="measured-frame-rate-1920x1080" range="69-69" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" update="true">
+            <Limit name="measured-frame-rate-176x144" range="723-723" />
+            <Limit name="measured-frame-rate-352x288" range="607-607" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" update="true">
+            <Limit name="measured-frame-rate-176x144" range="710-710" />
+            <Limit name="measured-frame-rate-352x288" range="579-579" />
+            <Limit name="measured-frame-rate-640x480" range="282-282" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" update="true">
+            <Limit name="measured-frame-rate-320x180" range="162-162" />
+            <Limit name="measured-frame-rate-640x360" range="289-289" />
+            <Limit name="measured-frame-rate-1280x720" range="139-139" />
+            <Limit name="measured-frame-rate-1920x1080" range="68-68" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.h264.encoder" type="video/avc" update="true">
+            <Limit name="measured-frame-rate-320x240" range="474-474" />
+            <Limit name="measured-frame-rate-720x480" range="241-241" />
+            <Limit name="measured-frame-rate-1280x720" range="120-120" />
+            <Limit name="measured-frame-rate-1920x1080" range="54-54" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" update="true">
+            <Limit name="measured-frame-rate-176x144" range="1003-1003" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" update="true">
+            <Limit name="measured-frame-rate-176x144" range="1031-1031" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
+            <Limit name="measured-frame-rate-320x180" range="639-639" />
+            <Limit name="measured-frame-rate-640x360" range="288-288" />
+            <Limit name="measured-frame-rate-1280x720" range="111-111" />
+            <Limit name="measured-frame-rate-1920x1080" range="49-49" />
+        </MediaCodec>
+    </Encoders>
+    <Decoders>
+        <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" update="true">
+            <Limit name="measured-frame-rate-320x240" range="405-405" />
+            <Limit name="measured-frame-rate-720x480" range="248-248" />
+            <Limit name="measured-frame-rate-1280x720" range="116-116" />
+            <Limit name="measured-frame-rate-1920x1088" range="56-56" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" update="true">
+            <Limit name="measured-frame-rate-176x144" range="887-887" />
+            <Limit name="measured-frame-rate-352x288" range="865-865" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" update="true">
+            <Limit name="measured-frame-rate-352x288" range="436-436" />
+            <Limit name="measured-frame-rate-640x360" range="452-452" />
+            <Limit name="measured-frame-rate-1280x720" range="179-179" />
+            <Limit name="measured-frame-rate-1920x1080" range="88-88" />
+            <Limit name="measured-frame-rate-3840x2160" range="81-81" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" update="true">
+            <Limit name="measured-frame-rate-480x360" range="634-634" />
+        </MediaCodec>
+        <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
+            <Limit name="measured-frame-rate-320x180" range="411-411" />
+            <Limit name="measured-frame-rate-640x360" range="407-407" />
+            <Limit name="measured-frame-rate-1280x720" range="183-183" />
+            <Limit name="measured-frame-rate-1920x1080" range="91-91" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.h264.decoder" type="video/avc" update="true">
+            <Limit name="measured-frame-rate-320x240" range="647-647" />
+            <Limit name="measured-frame-rate-720x480" range="431-431" />
+            <Limit name="measured-frame-rate-1280x720" range="272-272" />
+            <Limit name="measured-frame-rate-1920x1080" range="109-109" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" update="true">
+            <Limit name="measured-frame-rate-176x144" range="964-964" />
+            <Limit name="measured-frame-rate-352x288" range="822-822" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.hevc.decoder" type="video/hevc" update="true">
+            <Limit name="measured-frame-rate-352x288" range="965-965" />
+            <Limit name="measured-frame-rate-640x360" range="640-640" />
+            <Limit name="measured-frame-rate-1280x720" range="315-315" />
+            <Limit name="measured-frame-rate-1920x1080" range="192-192" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
+            <Limit name="measured-frame-rate-320x180" range="1414-1414" />
+            <Limit name="measured-frame-rate-640x360" range="591-591" />
+            <Limit name="measured-frame-rate-1280x720" range="184-184" />
+            <Limit name="measured-frame-rate-1920x1080" range="126-126" />
+        </MediaCodec>
+        <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
+            <Limit name="measured-frame-rate-320x180" range="561-561" />
+            <Limit name="measured-frame-rate-640x360" range="510-510" />
+            <Limit name="measured-frame-rate-1280x720" range="171-171" />
+            <Limit name="measured-frame-rate-1920x1080" range="114-114" />
+        </MediaCodec>
+    </Decoders>
+</MediaCodecs>
+