ossi: kang media config from other device

This commit is contained in:
subhagamer
2024-04-07 11:09:53 +05:30
committed by lahaina
parent 19df913560
commit 3f0e5242cb
4 changed files with 1063 additions and 1017 deletions

View File

@@ -19,7 +19,6 @@
<!-- disable TV and telephony domains by default. These must be opted in by OEMs -->
<Domain name="telephony" enabled="false" />
<Domain name="tv" enabled="false" />
<Variant name="slow-cpu" enabled="false" />
</Settings>
<Decoders>
<MediaCodec name="c2.android.mp3.decoder" type="audio/mpeg">
@@ -104,141 +103,121 @@
<Alias name="OMX.MTK.AUDIO.DECODER.ALAC" />
<Limit name="channel-count" max="8" />
</MediaCodec>
<!-- #ifdef OPLUS_BUG_COMPATIBILITY -->
<!-- xiaomiaobiao-xinzhi@MULTIMEDIA.MediaServer.CTS.4721281, 2022/11/5, Modify for CTS test -->
<!--
<MediaCodec name="c2.mtk.wma.decoder" type="audio/x-ms-wma">
<Alias name="OMX.MTK.AUDIO.DECODER.WMA" />
<Limit name="channel-count" max="2" />
</MediaCodec>
-->
<!-- #else //OPLUS_BUG_COMPATIBILITY -->
<MediaCodec name="c2.mtk.mp3.decoder" type="audio/mpeg" rank="5">
<Alias name="OMX.MTK.AUDIO.DECODER.MP3" />
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
<Limit name="bitrate" range="8000-320000" />
</MediaCodec>
<!--
<MediaCodec name="c2.mtk.mpeg2.decoder" type="video/mpeg2" >
<Alias name="OMX.MTK.VIDEO.DECODER.MPEG2" />
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="16" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
-->
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" >
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC" />
<Limit name="size" min="16x16" max="2048x1088" />
<Limit name="blocks-per-second" range="1-491520" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Feature name="can-swap-width-height" value="1"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.mpeg4.decoder" type="video/mp4v-es" >
<Alias name="OMX.MTK.VIDEO.DECODER.MPEG4" />
<Limit name="size" min="16x16" max="2048x1088" />
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" >
<Alias name="OMX.MTK.VIDEO.DECODER.H263" />
<Limit name="size" min="128x96" max="1408x1152" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-1280x720" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" >
<Alias name="OMX.MTK.VIDEO.DECODER.AVC" />
<Limit name="size" min="64x64" max="4096x2176" />
<Limit name="size" min="64x64" max="2048x1088" />
<Quirk name="wants-NAL-fragments" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<!-- #ifdef OPLUS_BUG_STABILITY-->
<!-- Yugang.Ma@MULTIMEDIA.MEDIASERVER.PLAYER.4298357, 2022/09/01, add for wallpaper play-->
<Feature name="can-swap-width-height"/>
<!-- #endif OPLUS_BUG_STABILITY-->
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x719" value="180" />
<Limit name="performance-point-1280x720" value="120" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-8704" />
<Limit name="blocks-per-second" range="1-261120" />
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder.secure" type="video/avc" >
<Alias name="OMX.MTK.VIDEO.DECODER.AVC.secure" />
<Limit name="size" min="64x64" max="1920x1088" />
<Quirk name="wants-NAL-fragments" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/>
<Feature name="can-swap-width-height" value="1"/>
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-8160" />
<Limit name="blocks-per-second" range="1-244800" />
<Limit name="concurrent-instances" max="1" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" >
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC" />
<Limit name="size" min="16x16" max="4096x2176" />
<Feature name="adaptive-playback"/>
<!-- #ifdef OPLUS_BUG_STABILITY-->
<!-- Yugang.Ma@MULTIMEDIA.MEDIASERVER.PLAYER.4298357, 2022/09/01, add for wallpaper play-->
<Feature name="can-swap-width-height"/>
<!-- #endif OPLUS_BUG_STABILITY-->
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x719" value="180" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder.secure" type="video/hevc" >
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC.secure" />
<Limit name="size" min="16x16" max="1920x1088" />
<Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.heif.decoder" type="image/vnd.android.heic" >
<Alias name="OMX.MTK.VIDEO.DECODER.HEIF" />
<Limit name="size" min="16x16" max="16383x16383" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-3840x2160" value="30" />
</MediaCodec>
<!--
<MediaCodec name="c2.mtk.vpx.decoder" type="video/x-vnd.on2.vp8" >
<Alias name="OMX.MTK.VIDEO.DECODER.VPX" />
<Limit name="size" min="16x16" max="2048x1088" />
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-1920x1088" value="30" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="concurrent-instances" max="16" />
<Attribute name="software-codec" />
</MediaCodec>
<MediaCodec name="c2.mtk.vp9.decoder" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.MTK.VIDEO.DECODER.VP9" />
<Limit name="size" min="16x16" max="4096x2176" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x720" value="60" />
</MediaCodec>
<MediaCodec name="c2.mtk.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.MTK.VIDEO.DECODER.VP9.secure" />
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="wants-NAL-fragments" />
<Feature name="secure-playback" required="true" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.av1.decoder" type="video/av01" >
<Alias name="OMX.MTK.VIDEO.DECODER.AV1" />
<Limit name="size" min="16x16" max="4096x2176" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x719" value="180" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.mtk.av1.decoder.secure" type="video/av01" >
<Limit name="size" min="16x16" max="1920x1088" />
<Quirk name="wants-NAL-fragments" />
<Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" />
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.mpeg2.decoder" type="video/mpeg2" >
<Alias name="OMX.MTK.VIDEO.DECODER.MPEG2" />
<Limit name="size" min="16x16" max="2048x1088" />
<Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-1920x1088" value="30" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="concurrent-instances" max="16" />
<Attribute name="software-codec" />
</MediaCodec>
-->
<!--
<MediaCodec name="c2.mtk.vc1.decoder" type="video/x-ms-wmv" >
<Alias name="OMX.MTK.VIDEO.DECODER.VC1" />
<Limit name="size" min="16x16" max="1920x1088" />
<Limit name="concurrent-instances" max="15" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Feature name="can-swap-width-height" value="1"/>
<Limit name="performance-point-1920x1088" value="30" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
-->
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es">
<Alias name="OMX.google.mpeg4.decoder" />
<!-- profiles and levels: ProfileSimple : Level3 -->
<Limit name="size" min="2x2" max="352x288" />
@@ -248,7 +227,7 @@
<Limit name="bitrate" range="1-384000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.h263.decoder" type="video/3gpp" update="true">
<MediaCodec name="c2.android.h263.decoder" type="video/3gpp">
<Alias name="OMX.google.h263.decoder" />
<!-- profiles and levels: ProfileBaseline : Level30, ProfileBaseline : Level45
ProfileISWV2 : Level30, ProfileISWV2 : Level45 -->
@@ -257,17 +236,18 @@
<Limit name="bitrate" range="1-384000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<!--HS03S_T code for AL5626TDEV-268 by zhongbin at 2022/10/11 start-->
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<Alias name="OMX.google.h264.decoder" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="size" min="2x2" max="1920x1088" />
<!-- profiles and levels: ProfileHigh : Level51 -->
<Limit name="block-count" range="1-16384" />
<Limit name="blocks-per-second" range="1-491520" />
<Limit name="block-count" range="1-6000" /> <!-- 1600x960 -->
<Limit name="blocks-per-second" range="1-180000" /> <!-- 1600x960@30 -->
<Limit name="bitrate" range="1-40000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<!--HS03S_T code for AL5626TDEV-268 by zhongbin at 2022/10/11 end-->
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
<Alias name="OMX.google.hevc.decoder" />
<Limit name="alignment" value="2x2" />
@@ -279,27 +259,27 @@
<Limit name="bitrate" range="1-5000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
<MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8">
<Alias name="OMX.google.vp8.decoder" />
<Limit name="size" min="2x2" max="2048x2048" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-8192" /> <!-- max 2048x1024 -->
<Limit name="blocks-per-second" range="1-1000000" />
<Limit name="bitrate" range="1-40000000" />
<Limit name="blocks-per-second" range="1-1000000" />
<Limit name="bitrate" range="1-40000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9">
<Alias name="OMX.google.vp9.decoder" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="size" min="2x2" max="1280x1280" />
<Limit name="block-count" range="1-3600" /> <!-- max 1280x720 -->
<Limit name="blocks-per-second" range="1-108000" />
<Limit name="bitrate" range="1-5000000" />
<Limit name="block-count" range="1-3600" /> <!-- max 1280x720 -->
<Limit name="blocks-per-second" range="1-108000" />
<Limit name="bitrate" range="1-5000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.av1.decoder" type="video/av01" update="true">
<MediaCodec name="c2.android.av1.decoder" type="video/av01">
<Limit name="size" min="2x2" max="1920x1080" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
@@ -308,7 +288,7 @@
<Limit name="bitrate" range="1-120000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg2.decoder" type="video/mpeg2" domain="tv" update="true">
<MediaCodec name="c2.android.mpeg2.decoder" type="video/mpeg2" domain="tv">
<Alias name="OMX.google.mpeg2.decoder" />
<!-- profiles and levels: ProfileMain : LevelHL -->
<Limit name="size" min="16x16" max="1920x1088" />
@@ -356,77 +336,47 @@
<Limit name="complexity" range="0-10" default="5" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
<MediaCodec name="c2.mtk.mpeg4.encoder" type="video/mp4v-es" >
<Alias name="OMX.MTK.VIDEO.ENCODER.MPEG4" />
<Limit name="size" min="176x144" max="640x480" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="16" />
<Limit name="performance-point-640x480" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.h263.encoder" type="video/3gpp" >
<Alias name="OMX.MTK.VIDEO.ENCODER.H263" />
<Limit name="size" min="176x144" max="176x144" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="concurrent-instances" max="10" />
<Limit name="performance-point-640x480" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.mpeg4.encoder" type="video/mp4v-es" >
<Alias name="OMX.MTK.VIDEO.ENCODER.MPEG4" />
<Limit name="size" min="176x144" max="176x144" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="concurrent-instances" max="10" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Limit name="concurrent-instances" max="15" />
<Limit name="performance-point-640x480" value="30" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.encoder" type="video/avc" >
<Alias name="OMX.MTK.VIDEO.ENCODER.AVC" />
<Limit name="size" min="160x128" max="3840x2176" />
<Limit name="alignment" value="16x16" />
<Limit name="size" min="176x144" max="1920x1080" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="concurrent-instances" max="10" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x719" value="180" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.encoder.secure" type="video/avc" >
<Limit name="size" min="160x128" max="1920x1088" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="concurrent-instances" max="10" />
<Limit name="performance-point-1920x1088" value="30" />
<Feature name="special-codec" required="true" />
</MediaCodec>
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" >
<Alias name="OMX.MTK.VIDEO.ENCODER.HEVC" />
<Limit name="size" min="160x128" max="3840x2176" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="quality" range="0-100" default="50" />
<Limit name="concurrent-instances" max="10" />
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
<Limit name="performance-point-3840x2160" value="30" />
<Limit name="performance-point-1280x719" value="180" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.mtk.heif.encoder" type="image/vnd.android.heic" >
<Alias name="OMX.MTK.VIDEO.ENCODER.HEIF" />
<!-- #ifndef OPLUS_BUG_COMPATIBILITY-->
<!-- CaiBo@MM.MediaServer.CTS.3318645, 2022/3/15, Modify for CTS test-->
<!--
<Limit name="size" min="16x16" max="16383x16383" />
-->
<!-- #else OPLUS_BUG_COMPATIBILITY-->
<Limit name="size" min="160x128" max="16383x16383" />
<!-- #endif OPLUS_BUG_COMPATIBILITY-->
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="quality" range="0-100" default="50" />
<Limit name="blocks-per-second" range="1-244800" />
<Limit name="complexity" default="0" range="0-1" />
<Quirk name="requires-allocate-on-input-ports" />
<Quirk name="requires-allocate-on-output-ports" />
<Feature name="can-swap-width-height" />
<Limit name="concurrent-instances" max="16" />
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
<Limit name="performance-point-3840x2160" value="30" />
</MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
<Limit name="performance-point-1920x1080" value="30" />
</MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp">
<Alias name="OMX.google.h263.encoder" />
<!-- profiles and levels: ProfileBaseline : Level45 -->
<Limit name="size" min="176x144" max="176x144" />
<Limit name="alignment" value="16x16" />
<Limit name="bitrate" range="1-128000" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es">
<Alias name="OMX.google.mpeg4.encoder" />
<!-- profiles and levels: ProfileCore : Level2 -->
<Limit name="size" min="16x16" max="176x144" />
@@ -440,20 +390,20 @@
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="size" min="16x16" max="1808x1808" />
<!-- profiles and levels: ProfileBaseline : Level3 -->
<Limit name="block-count" range="1-1620" />
<Limit name="blocks-per-second" range="1-40500" />
<Limit name="bitrate" range="1-2000000" />
<!-- profiles and levels: ProfileBaseline : Level3 -->
<Limit name="block-count" range="1-1620" />
<Limit name="blocks-per-second" range="1-40500" />
<Limit name="bitrate" range="1-2000000" />
<Feature name="intra-refresh" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Alias name="OMX.google.vp8.encoder" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="size" min="2x2" max="1280x1280" />
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit name="block-count" range="1-3600" /> <!-- max 1280x720 -->
<Limit name="bitrate" range="1-20000000" />
<Limit name="size" min="2x2" max="640x640" />
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit name="block-count" range="1-1600" /> <!-- max 1280x720 -->
<Limit name="bitrate" range="1-20000000" />
<Feature name="bitrate-modes" value="VBR,CBR" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true" enabled="false">

View File

@@ -86,12 +86,11 @@ Only the three quirks included above are recognized at this point:
<MediaCodec name="OMX.MTK.AUDIO.DECODER.GSM" type="audio/gsm" >
<Limit name="channel-count" max="1" />
</MediaCodec>
<!-- #ifdef OPLUS_BUG_COMPATIBILITY -->
<!-- guyishuang@MULTIMEDIA.MediaServer.CTS.2378060, 2021/10/27, Modify for CTS test -->
<!--
<MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" >
<Limit name="channel-count" max="2" />
</MediaCodec>
<!--hs03s code for DEVAL5625-752 by daiweiwei at 2021/05/31 start -->
<!--<MediaCodec name="OMX.MTK.AUDIO.DECODER.WMA" type="audio/x-ms-wma" />-->
<!-- <Limit name="channel-count" max="2" />-->
<!--</MediaCodec> -->
<!--hs03s code for DEVAL5625-752 by daiweiwei at 2021/05/31 end -->
<MediaCodec name="OMX.MTK.AUDIO.DECODER.ADPCM.MS" type="audio/x-adpcm-ms" >
<Limit name="channel-count" max="8" />
</MediaCodec>
@@ -106,7 +105,5 @@ Only the three quirks included above are recognized at this point:
<MediaCodec name="OMX.MTK.AUDIO.DECODER.ALAC" type="audio/alac" >
<Limit name="channel-count" max="8" />
</MediaCodec>
-->
<!-- #endif OPLUS_BUG_COMPATIBILITY -->
</Decoders>
</Included>

View File

@@ -79,133 +79,119 @@ Only the three quirks included above are recognized at this point:
<MediaCodecs>
<Encoders>
<!-- MTK codec -->
<!-- A037 code for P220516-05081 by yangmingxi at 2022/05/19 start -->
<MediaCodec name="c2.mtk.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="158-348" />
<Limit name="measured-frame-rate-176x144" range="385-385" />
<Limit name="measured-frame-rate-0352x0288" range="145-506" />
</MediaCodec>
<!-- A037 code for P220516-05081 by yangmingxi at 2022/05/19 end -->
<MediaCodec name="c2.mtk.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="124-273" />
<Limit name="measured-frame-rate-176x144" range="136-300" />
<Limit name="measured-frame-rate-0352x0288" range="107-235" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="66-145" />
<Limit name="measured-frame-rate-720x480" range="142-312" />
<Limit name="measured-frame-rate-1280x720" range="64-141" />
<Limit name="measured-frame-rate-1920x1080" range="30-66" />
</MediaCodec>
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="98-216" />
<Limit name="measured-frame-rate-720x480" range="40-88" />
<Limit name="measured-frame-rate-1280x720" range="40-80" />
<Limit name="measured-frame-rate-3840x2160" range="13-29" />
<Limit name="measured-frame-rate-320x240" range="161-561" />
<Limit name="measured-frame-rate-720x480" range="67-234" />
<Limit name="measured-frame-rate-1280x720" range="29-102" />
</MediaCodec>
<!-- Google codec -->
<MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="101-223" />
<Limit name="measured-frame-rate-720x480" range="60-130" />
<Limit name="measured-frame-rate-1280x720" range="21-46" />
<Limit name="measured-frame-rate-1920x1080" range="13-29" />
<Limit name="measured-frame-rate-320x240" range="183-636" />
<Limit name="measured-frame-rate-720x480" range="45-156" />
<Limit name="measured-frame-rate-1280x720" range="28-96" />
<Limit name="measured-frame-rate-1920x1080" range="14-50" />
</MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="275-605" />
<Limit name="measured-frame-rate-176x144" range="124-273" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="10-22" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="263-579" />
<Limit name="measured-frame-rate-176x144" range="120-263" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="140-308" />
<Limit name="measured-frame-rate-640x360" range="69-151" />
<Limit name="measured-frame-rate-1280x720" range="13-29" />
<Limit name="measured-frame-rate-1920x1080" range="9-20" />
<Limit name="measured-frame-rate-320x180" range="30-67" />
<Limit name="measured-frame-rate-640x360" range="45-156" />
<Limit name="measured-frame-rate-1280x720" range="20-68" />
<Limit name="measured-frame-rate-1920x1080" range="13-29" />
</MediaCodec>
</Encoders>
<Decoders>
<!-- MTK codec -->
<!--HS03S_T code for AL5626TDEV-265 by zhongbin at 2022/10/11 start -->
<MediaCodec name="c2.mtk.mpeg4.decoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="160-351" />
<Limit name="measured-frame-rate-480x360" range="140-160" />
<Limit name="measured-frame-rate-1280x720" range="115-130" />
<Limit name="measured-frame-rate-176x144" range="350-550" />
<Limit name="measured-frame-rate-480x360" range="136-474" />
</MediaCodec>
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="207-655" />
<Limit name="measured-frame-rate-352x288" range="167-367" />
<Limit name="measured-frame-rate-176x144" range="267-588" />
<Limit name="measured-frame-rate-352x288" range="206-454" />
</MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="105-232" />
<Limit name="measured-frame-rate-720x480" range="324-713" />
<Limit name="measured-frame-rate-1280x720" range="186-409" />
<Limit name="measured-frame-rate-1920x1080" range="113-248" />
<Limit name="measured-frame-rate-320x240" range="186-646" />
<Limit name="measured-frame-rate-720x480" range="124-433" />
<Limit name="measured-frame-rate-1280x720" range="74-256" />
<Limit name="measured-frame-rate-1920x1080" range="50-110" />
</MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="131-288" />
<!-- #ifndef OPLUS_BUG_COMPATIBILITY-->
<!-- Jingcheng.Li@MULTMEDIASERVER.PLAYER.2726993, 2021/12/07, Modify for CTS test-->
<!--
<Limit name="measured-frame-rate-640x360" range="285-626" />
<Limit name="measured-frame-rate-720x480" range="145-155" />
-->
<!-- #else OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-640x360" range="285-626" />
<Limit name="measured-frame-rate-720x480" range="351-772" />
<!-- #endif OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-1280x720" range="206-454" />
<Limit name="measured-frame-rate-1920x1080" range="125-276" />
<Limit name="measured-frame-rate-352x288" range="335-737" />
<Limit name="measured-frame-rate-640x360" range="105-232" />
<Limit name="measured-frame-rate-720x480" range="142-494" />
<Limit name="measured-frame-rate-1280x720" range="75-262" />
<Limit name="measured-frame-rate-1920x1080" range="74-162" />
<Limit name="measured-frame-rate-3840x2160" range="14-48" />
</MediaCodec>
<MediaCodec name="c2.mtk.vpx.decoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="188-484" />
<Limit name="measured-frame-rate-640x360" range="210-461" />
<Limit name="measured-frame-rate-1280x720" range="56-123" />
<Limit name="measured-frame-rate-1920x1080" range="23-51" />
</MediaCodec>
<MediaCodec name="c2.mtk.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<!-- #ifndef OPLUS_BUG_COMPATIBILITY-->
<!-- Yugang.Ma@MULTMEDIASERVER.PLAYER.2327311, 2021/10/21, Modify for CTS test-->
<!--<Limit name="measured-frame-rate-320x180" range="425-936" />-->
<!-- #else OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-320x180" range="285-630" />
<!-- #endif OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-640x360" range="249-547" />
<Limit name="measured-frame-rate-1280x720" range="139-305" />
<Limit name="measured-frame-rate-1920x1080" range="114-251" />
<Limit name="measured-frame-rate-320x180" range="158-549" />
<Limit name="measured-frame-rate-640x360" range="91-315" />
<Limit name="measured-frame-rate-1280x720" range="32-71" />
<Limit name="measured-frame-rate-1920x1080" range="6-13" />
</MediaCodec>
<!-- Google codec -->
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="359-790" />
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="47-104" />
<Limit name="measured-frame-rate-720x480" range="45-156" />
<Limit name="measured-frame-rate-1280x720" range="10-22" />
<Limit name="measured-frame-rate-1920x1080" range="7-16" />
</MediaCodec>
<MediaCodec name="c2.android.h263.decoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="313-688" />
<Limit name="measured-frame-rate-352x288" range="381-839" />
</MediaCodec>
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="110-243" />
<!-- #ifndef OPLUS_BUG_COMPATIBILITY-->
<!-- guyishuang@MULTMEDIASERVER.CODEC.3226509, 2022/3/3, Modify for CTS test-->
<!--
<Limit name="measured-frame-rate-720x480" range="31-68" />
<Limit name="measured-frame-rate-1280x720" range="10-23" />
<Limit name="measured-frame-rate-1920x1080" range="7-15" />
-->
<!-- #else OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-720x480" range="51-114" />
<Limit name="measured-frame-rate-1280x720" range="29-66" />
<Limit name="measured-frame-rate-1920x1080" range="16-37" />
<!-- #endif OPLUS_BUG_COMPATIBILITY-->
<Limit name="measured-frame-rate-176x144" range="156-350" />
<Limit name="measured-frame-rate-352x288" range="128-297" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="114-250" />
<Limit name="measured-frame-rate-640x360" range="59-129" />
<Limit name="measured-frame-rate-720x480" range="57-125" />
<Limit name="measured-frame-rate-1280x720" range="21-46" />
<Limit name="measured-frame-rate-352x288" range="182-634" />
<Limit name="measured-frame-rate-640x360" range="109-378" />
<Limit name="measured-frame-rate-720x480" range="81-282" />
<Limit name="measured-frame-rate-1280x720" range="25-86" />
<Limit name="measured-frame-rate-1920x1080" range="4-8" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
<!-- measured [505-527] lower-upper [130-1388] median * 1.5 [774] -->
<Limit name="measured-frame-rate-176x144" range="287-631" />
<!-- measured [248-254] lower-upper [64-676] median * 1.5 [377] -->
<Limit name="measured-frame-rate-480x360" range="140-307" />
<!-- measured [91-92] lower-upper [23-248] median * 1.5 [138] -->
<Limit name="measured-frame-rate-1280x720" range="51-113" />
</MediaCodec>
<!--HS03S_T code for AL5626TDEV-265 by zhongbin at 2022/10/11 end-->
<MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="188-413" />
<Limit name="measured-frame-rate-640x360" range="195-428" />
<Limit name="measured-frame-rate-1280x720" range="64-140" />
<Limit name="measured-frame-rate-1920x1080" range="24-52" />
<Limit name="measured-frame-rate-320x180" range="73-160" />
<Limit name="measured-frame-rate-640x360" range="103-359" />
<Limit name="measured-frame-rate-1280x720" range="20-68" />
<Limit name="measured-frame-rate-1920x1080" range="5-12" />
</MediaCodec>
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<Limit name="measured-frame-rate-320x180" range="201-442" />
<Limit name="measured-frame-rate-640x360" range="89-195" />
<Limit name="measured-frame-rate-1280x720" range="52-115" />
<Limit name="measured-frame-rate-1920x1080" range="29-64" />
<Limit name="measured-frame-rate-320x180" range="144-502" />
<Limit name="measured-frame-rate-640x360" range="44-97" />
<Limit name="measured-frame-rate-1280x720" range="30-104" />
<Limit name="measured-frame-rate-1920x1080" range="15-34" />
</MediaCodec>
<MediaCodec name="c2.sec.mpeg4.decoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="338-743" />
<Limit name="measured-frame-rate-480x360" range="170-374" />
<Limit name="measured-frame-rate-1280x720" range="53-118" />
</MediaCodec>
</Decoders>
</MediaCodecs>

File diff suppressed because it is too large Load Diff