media: Limit secure (avc/hevc) decoder to 1080p

Limit secure video playback up to 1080p rather than increase memory
to accommodate 4K

Test:
  run gts -m GtsMediaTestCases -t com.google.android.media.gts.WidevineH264PlaybackTests#testL1WithUHD30
  run gts -m GtsMediaTestCases -t com.google.android.media.gts.WidevineHEVCPlaybackTests#testL1WithUHD30

b/62619917

Change-Id: I5f852e66a959120b66e34df9f40c58428d60c7e2
diff --git a/media_codecs.xml b/media_codecs.xml
index 49e6cba..9ca7d80 100644
--- a/media_codecs.xml
+++ b/media_codecs.xml
@@ -159,11 +159,11 @@
         <MediaCodec name="OMX.qcom.video.decoder.avc.secure" type="video/avc" >
             <Quirk name="requires-allocate-on-input-ports" />
             <Quirk name="requires-allocate-on-output-ports" />
-            <Limit name="size" min="64x64" max="4096x2160" />
+            <Limit name="size" min="64x64" max="1920x1088" />
             <Limit name="alignment" value="2x2" />
             <Limit name="block-size" value="16x16" />
-            <Limit name="blocks-per-second" min="1" max="972000" />
-            <Limit name="bitrate" range="1-100000000" />
+            <Limit name="blocks-per-second" min="1" max="489600" />
+            <Limit name="bitrate" range="1-60000000" />
             <Feature name="adaptive-playback" />
             <Feature name="secure-playback" required="true" />
             <Limit name="concurrent-instances" max="6" />
@@ -215,11 +215,11 @@
         <MediaCodec name="OMX.qcom.video.decoder.hevc.secure" type="video/hevc" >
             <Quirk name="requires-allocate-on-input-ports" />
             <Quirk name="requires-allocate-on-output-ports" />
-            <Limit name="size" min="64x64" max="4096x2160" />
+            <Limit name="size" min="64x64" max="1920x1088" />
             <Limit name="alignment" value="2x2" />
             <Limit name="block-size" value="16x16" />
-            <Limit name="blocks-per-second" min="1" max="972000" />
-            <Limit name="bitrate" range="1-100000000" />
+            <Limit name="blocks-per-second" min="1" max="489600" />
+            <Limit name="bitrate" range="1-60000000" />
             <Feature name="adaptive-playback" />
             <Feature name="secure-playback" required="true" />
             <Limit name="concurrent-instances" max="6" />