LG8n: Import LG8n Media Configs

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-07-17 08:05:32 +08:00
parent 78e7e75f0e
commit 43cff21a0d
5 changed files with 403 additions and 36 deletions

View file

@ -119,15 +119,14 @@
<Limit name="size" min="16x16" max="2048x1088" /> <Limit name="size" min="16x16" max="2048x1088" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="120" /> <Limit name="performance-point-1920x1088" value="30" />
<Limit name="performance-point-1920x1088" value="60" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" > <MediaCodec name="c2.mtk.h263.decoder" type="video/3gpp" >
<Alias name="OMX.MTK.VIDEO.DECODER.H263" /> <Alias name="OMX.MTK.VIDEO.DECODER.H263" />
<Limit name="size" min="128x96" max="1408x1152" /> <Limit name="size" min="128x96" max="1408x1152" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="60" /> <Limit name="performance-point-1280x720" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" > <MediaCodec name="c2.mtk.avc.decoder" type="video/avc" >
<Alias name="OMX.MTK.VIDEO.DECODER.AVC" /> <Alias name="OMX.MTK.VIDEO.DECODER.AVC" />
@ -135,9 +134,7 @@
<Quirk name="wants-NAL-fragments" /> <Quirk name="wants-NAL-fragments" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="120" /> <Limit name="performance-point-1920x1088" value="30" />
<Limit name="performance-point-1920x1088" value="60" />
<Limit name="performance-point-2560x1440" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder.secure" type="video/avc" > <MediaCodec name="c2.mtk.avc.decoder.secure" type="video/avc" >
<Alias name="OMX.MTK.VIDEO.DECODER.AVC.secure" /> <Alias name="OMX.MTK.VIDEO.DECODER.AVC.secure" />
@ -145,7 +142,7 @@
<Quirk name="wants-NAL-fragments" /> <Quirk name="wants-NAL-fragments" />
<Feature name="secure-playback" required="true" /> <Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1920x1088" value="30" /> <Limit name="performance-point-1920x1088" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" > <MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" >
@ -153,9 +150,7 @@
<Limit name="size" min="16x16" max="2560x1440" /> <Limit name="size" min="16x16" max="2560x1440" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="120" /> <Limit name="performance-point-1920x1088" value="30" />
<Limit name="performance-point-1920x1088" value="60" />
<Limit name="performance-point-2560x1440" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder.secure" type="video/hevc" > <MediaCodec name="c2.mtk.hevc.decoder.secure" type="video/hevc" >
<Alias name="OMX.MTK.VIDEO.DECODER.HEVC.secure" /> <Alias name="OMX.MTK.VIDEO.DECODER.HEVC.secure" />
@ -163,7 +158,7 @@
<Quirk name="wants-NAL-fragments" /> <Quirk name="wants-NAL-fragments" />
<Feature name="secure-playback" required="true" /> <Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1920x1088" value="30" /> <Limit name="performance-point-1920x1088" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.heif.decoder" type="image/vnd.android.heic" > <MediaCodec name="c2.mtk.heif.decoder" type="image/vnd.android.heic" >
@ -185,9 +180,7 @@
<Limit name="size" min="16x16" max="2560x1440" /> <Limit name="size" min="16x16" max="2560x1440" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="120" /> <Limit name="performance-point-1920x1088" value="30" />
<Limit name="performance-point-1920x1088" value="60" />
<Limit name="performance-point-2560x1440" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.vp9.decoder.secure" type="video/x-vnd.on2.vp9" > <MediaCodec name="c2.mtk.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.MTK.VIDEO.DECODER.VP9.secure" /> <Alias name="OMX.MTK.VIDEO.DECODER.VP9.secure" />
@ -195,7 +188,7 @@
<Quirk name="wants-NAL-fragments" /> <Quirk name="wants-NAL-fragments" />
<Feature name="secure-playback" required="true" /> <Feature name="secure-playback" required="true" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="1" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1920x1088" value="30" /> <Limit name="performance-point-1920x1088" value="30" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.mpeg2.decoder" type="video/mpeg2" > <MediaCodec name="c2.mtk.mpeg2.decoder" type="video/mpeg2" >
@ -203,8 +196,7 @@
<Limit name="size" min="16x16" max="2048x1088" /> <Limit name="size" min="16x16" max="2048x1088" />
<Feature name="adaptive-playback"/> <Feature name="adaptive-playback"/>
<Limit name="concurrent-instances" max="32" /> <Limit name="concurrent-instances" max="32" />
<Limit name="performance-point-1280x720" value="120" /> <Limit name="performance-point-1920x1088" value="30" />
<Limit name="performance-point-1920x1088" value="60" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true"> <MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
<Alias name="OMX.google.mpeg4.decoder" /> <Alias name="OMX.google.mpeg4.decoder" />

View file

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2014 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.
-->
<Included>
<Decoders>
<MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg">
<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="OMX.google.amrnb.decoder" type="audio/3gpp">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000" />
<Limit name="bitrate" range="4750-12200" />
</MediaCodec>
<MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="16000" />
<Limit name="bitrate" range="6600-23850" />
</MediaCodec>
<MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="7350,8000,11025,12000,16000,22050,24000,32000,44100,48000" />
<Limit name="bitrate" range="8000-960000" />
</MediaCodec>
<MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000-48000" />
<Limit name="bitrate" range="64000" />
</MediaCodec>
<MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000-48000" />
<Limit name="bitrate" range="64000" />
</MediaCodec>
<MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-96000" />
<Limit name="bitrate" range="32000-500000" />
</MediaCodec>
<MediaCodec name="OMX.google.opus.decoder" type="audio/opus">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="6000-510000" />
</MediaCodec>
<MediaCodec name="OMX.google.raw.decoder" type="audio/raw">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-192000" />
<Limit name="bitrate" range="1-10000000" />
</MediaCodec>
<MediaCodec name="OMX.google.flac.decoder" type="audio/flac">
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="1-655350" />
<Limit name="bitrate" range="1-21000000" />
</MediaCodec>
</Decoders>
<Encoders>
<MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm">
<Limit name="channel-count" max="6" />
<Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
<!-- also may support 64000, 88200 and 96000 Hz -->
<Limit name="bitrate" range="8000-960000" />
</MediaCodec>
<MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000" />
<Limit name="bitrate" range="4750-12200" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
<MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb">
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="16000" />
<Limit name="bitrate" range="6600-23850" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
<MediaCodec name="OMX.google.flac.encoder" type="audio/flac">
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="1-655350" />
<Limit name="bitrate" range="1-21000000" />
<Limit name="complexity" range="0-8" default="5" />
<Feature name="bitrate-modes" value="CQ" />
</MediaCodec>
</Encoders>
</Included>

View file

@ -0,0 +1,118 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2014 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.
-->
<Included>
<Decoders>
<MediaCodec name="c2.android.mp3.decoder" type="audio/mpeg">
<Alias name="OMX.google.mp3.decoder" />
<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.android.amrnb.decoder" type="audio/3gpp">
<Alias name="OMX.google.amrnb.decoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000" />
<Limit name="bitrate" range="4750-12200" />
</MediaCodec>
<MediaCodec name="c2.android.amrwb.decoder" type="audio/amr-wb">
<Alias name="OMX.google.amrwb.decoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="16000" />
<Limit name="bitrate" range="6600-23850" />
</MediaCodec>
<MediaCodec name="c2.android.aac.decoder" type="audio/mp4a-latm">
<Alias name="OMX.google.aac.decoder" />
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="7350,8000,11025,12000,16000,22050,24000,32000,44100,48000" />
<Limit name="bitrate" range="8000-960000" />
</MediaCodec>
<MediaCodec name="c2.android.g711.alaw.decoder" type="audio/g711-alaw">
<Alias name="OMX.google.g711.alaw.decoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000-48000" />
<Limit name="bitrate" range="64000" />
</MediaCodec>
<MediaCodec name="c2.android.g711.mlaw.decoder" type="audio/g711-mlaw">
<Alias name="OMX.google.g711.mlaw.decoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000-48000" />
<Limit name="bitrate" range="64000" />
</MediaCodec>
<MediaCodec name="c2.android.vorbis.decoder" type="audio/vorbis">
<Alias name="OMX.google.vorbis.decoder" />
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-96000" />
<Limit name="bitrate" range="32000-500000" />
</MediaCodec>
<MediaCodec name="c2.android.opus.decoder" type="audio/opus">
<Alias name="OMX.google.opus.decoder" />
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="48000" />
<Limit name="bitrate" range="6000-510000" />
</MediaCodec>
<MediaCodec name="c2.android.raw.decoder" type="audio/raw">
<Alias name="OMX.google.raw.decoder" />
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="8000-192000" />
<Limit name="bitrate" range="1-10000000" />
</MediaCodec>
<MediaCodec name="c2.android.flac.decoder" type="audio/flac">
<Alias name="OMX.google.flac.decoder" />
<Limit name="channel-count" max="8" />
<Limit name="sample-rate" ranges="1-655350" />
<Limit name="bitrate" range="1-21000000" />
</MediaCodec>
</Decoders>
<Encoders>
<MediaCodec name="c2.android.aac.encoder" type="audio/mp4a-latm">
<Alias name="OMX.google.aac.encoder" />
<Limit name="channel-count" max="6" />
<Limit name="sample-rate" ranges="8000,11025,12000,16000,22050,24000,32000,44100,48000" />
<!-- also may support 64000, 88200 and 96000 Hz -->
<Limit name="bitrate" range="8000-960000" />
</MediaCodec>
<MediaCodec name="c2.android.amrnb.encoder" type="audio/3gpp">
<Alias name="OMX.google.amrnb.encoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="8000" />
<Limit name="bitrate" range="4750-12200" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
<MediaCodec name="c2.android.amrwb.encoder" type="audio/amr-wb">
<Alias name="OMX.google.amrwb.encoder" />
<Limit name="channel-count" max="1" />
<Limit name="sample-rate" ranges="16000" />
<Limit name="bitrate" range="6600-23850" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
<MediaCodec name="c2.android.flac.encoder" type="audio/flac">
<Alias name="OMX.google.flac.encoder" />
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="1-655350" />
<Limit name="bitrate" range="1-21000000" />
<Limit name="complexity" range="0-8" default="5" />
<Feature name="bitrate-modes" value="CQ" />
</MediaCodec>
<MediaCodec name="c2.android.opus.encoder" type="audio/opus">
<Limit name="channel-count" max="2" />
<Limit name="sample-rate" ranges="8000,12000,16000,24000,48000" />
<Limit name="bitrate" range="500-512000" />
<Limit name="complexity" range="0-10" default="5" />
<Feature name="bitrate-modes" value="CBR" />
</MediaCodec>
</Encoders>
</Included>

View file

@ -0,0 +1,155 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2014 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.
-->
<Included>
<Decoders>
<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" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="12-11880" />
<Limit name="bitrate" range="1-384000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<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 -->
<Limit name="size" min="2x2" max="352x288" />
<Limit name="alignment" value="2x2" />
<Limit name="bitrate" range="1-384000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.avc.decoder" type="video/avc">
<Alias name="OMX.google.h264.decoder" />
<!-- profiles and levels: ProfileHigh : Level52 -->
<Limit name="size" min="2x2" max="4080x4080" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-32768" /> <!-- max 4096x2048 equivalent -->
<Limit name="blocks-per-second" range="1-1966080" />
<Limit name="bitrate" range="1-48000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc">
<Alias name="OMX.google.hevc.decoder" />
<!-- profiles and levels: ProfileMain : MainTierLevel51 -->
<Limit name="size" min="2x2" max="4096x4096" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="8x8" />
<Limit name="block-count" range="1-196608" /> <!-- max 4096x3072 -->
<Limit name="blocks-per-second" range="1-2000000" />
<Limit name="bitrate" range="1-10000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<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-16384" />
<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">
<Alias name="OMX.google.vp9.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-16384" />
<Limit name="blocks-per-second" range="1-500000" />
<Limit name="bitrate" range="1-40000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
<MediaCodec name="c2.android.av1.decoder" type="video/av01">
<Limit name="size" min="96x96" max="1920x1080" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="24" max="2073600" />
<Limit name="bitrate" range="1-120000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
</MediaCodec>
</Decoders>
<Encoders>
<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.avc.encoder" type="video/avc">
<Alias name="OMX.google.h264.encoder" />
<!-- profiles and levels: ProfileBaseline : Level41 -->
<Limit name="size" min="16x16" 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-245760" />
<Limit name="bitrate" range="1-12000000" />
<Feature name="intra-refresh" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc">
<!-- profiles and levels: ProfileMain : MainTierLevel51 -->
<Limit name="size" min="2x2" max="512x512" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="8x8" />
<Limit name="block-count" range="1-4096" /> <!-- max 512x512 -->
<Limit name="blocks-per-second" range="1-122880" />
<Limit name="frame-rate" range="1-120" />
<Limit name="bitrate" range="1-10000000" />
<Limit name="complexity" range="0-10" default="0" />
<Limit name="quality" range="0-100" default="80" />
<Feature name="bitrate-modes" value="VBR,CBR,CQ" />
</MediaCodec>
<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" />
<Limit name="alignment" value="16x16" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="12-1485" />
<Limit name="bitrate" range="1-64000" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8">
<Alias name="OMX.google.vp8.encoder" />
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit name="size" min="2x2" max="2048x2048" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<!-- 2016 devices can encode at about 10fps at this block count -->
<Limit name="block-count" range="1-16384" />
<Limit name="bitrate" range="1-40000000" />
<Feature name="bitrate-modes" value="VBR,CBR" />
</MediaCodec>
<MediaCodec name="c2.android.vp9.encoder" type="video/x-vnd.on2.vp9">
<Alias name="OMX.google.vp9.encoder" />
<!-- profiles and levels: ProfileMain : Level_Version0-3 -->
<Limit name="size" min="2x2" max="2048x2048" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<!-- 2016 devices can encode at about 8fps at this block count -->
<Limit name="block-count" range="1-3600" /> <!-- max 1280x720 -->
<Limit name="bitrate" range="1-40000000" />
<Feature name="bitrate-modes" value="VBR,CBR" />
</MediaCodec>
</Encoders>
</Included>

View file

@ -66,16 +66,20 @@ Only the three quirks included above are recognized at this point:
<Encoders> <Encoders>
<!-- MTK codec --> <!-- MTK codec -->
<MediaCodec name="c2.mtk.avc.encoder" type="video/avc" update="true"> <MediaCodec name="c2.mtk.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="130-286" /> <!--BSP: modify XLQLBH-1277 by junhong.cai 20220601 start-->
<Limit name="measured-frame-rate-720x480" range="75-166" /> <Limit name="measured-frame-rate-320x240" range="81-179" />
<Limit name="measured-frame-rate-1280x720" range="50-111" /> <!--BSP: modify XLQLBH-1277 by junhong.cai 20220601 end-->
<Limit name="measured-frame-rate-1920x1080" range="36-80" /> <Limit name="measured-frame-rate-720x480" range="32-70" />
<Limit name="measured-frame-rate-1280x720" range="62-141" />
<Limit name="measured-frame-rate-1920x1080" range="55-122" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" update="true"> <MediaCodec name="c2.mtk.hevc.encoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="129-283" /> <Limit name="measured-frame-rate-320x240" range="139-305" />
<Limit name="measured-frame-rate-720x480" range="75-166" /> <Limit name="measured-frame-rate-640x480" range="267-540" />
<Limit name="measured-frame-rate-1280x720" range="51-113" /> <Limit name="measured-frame-rate-720x480" range="68-149" />
<Limit name="measured-frame-rate-1920x1080" range="44-96" /> <Limit name="measured-frame-rate-1280x720" range="45-170" />
<Limit name="measured-frame-rate-1920x1080" range="39-140" />
<Limit name="measured-frame-rate-3840x2160" range="20-76" />
</MediaCodec> </MediaCodec>
<!-- Google codec --> <!-- Google codec -->
<MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true"> <MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true">
@ -88,10 +92,10 @@ Only the three quirks included above are recognized at this point:
<Limit name="measured-frame-rate-320x240" range="20-43" /> <Limit name="measured-frame-rate-320x240" range="20-43" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true"> <MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="265-584" /> <Limit name="measured-frame-rate-176x144" range="52-115" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true"> <MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="243-536" /> <Limit name="measured-frame-rate-176x144" range="52-115" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true"> <MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="128-281" /> <Limit name="measured-frame-rate-320x180" range="128-281" />
@ -112,21 +116,21 @@ Only the three quirks included above are recognized at this point:
<Limit name="measured-frame-rate-352x288" range="233-513" /> <Limit name="measured-frame-rate-352x288" range="233-513" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.avc.decoder" type="video/avc" update="true"> <MediaCodec name="c2.mtk.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="426-938" /> <Limit name="measured-frame-rate-320x240" range="186-1036" />
<Limit name="measured-frame-rate-720x480" range="193-424" /> <Limit name="measured-frame-rate-720x480" range="124-743" />
<Limit name="measured-frame-rate-1280x720" range="138-304" /> <Limit name="measured-frame-rate-1280x720" range="74-402" />
<Limit name="measured-frame-rate-1920x1080" range="55-122" /> <Limit name="measured-frame-rate-1920x1080" range="55-122" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" update="true"> <MediaCodec name="c2.mtk.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="484-1065" /> <Limit name="measured-frame-rate-352x288" range="177-1050" />
<Limit name="measured-frame-rate-640x360" range="362-796" /> <Limit name="measured-frame-rate-720x480" range="142-803" />
<Limit name="measured-frame-rate-720x480" range="241-530" /> <Limit name="measured-frame-rate-1280x720" range="75-569" />
<Limit name="measured-frame-rate-1280x720" range="184-405" />
<Limit name="measured-frame-rate-1920x1080" range="69-354" /> <Limit name="measured-frame-rate-1920x1080" range="69-354" />
<Limit name="measured-frame-rate-3840x2160" range="55-120" />
</MediaCodec> </MediaCodec>
<MediaCodec name="c2.mtk.vpx.decoder" type="video/x-vnd.on2.vp8" update="true"> <MediaCodec name="c2.mtk.vpx.decoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="161-355" /> <Limit name="measured-frame-rate-320x180" range="158-549" />
<Limit name="measured-frame-rate-640x360" range="132-292" /> <Limit name="measured-frame-rate-640x360" range="91-315" />
<Limit name="measured-frame-rate-1280x720" range="65-142" /> <Limit name="measured-frame-rate-1280x720" range="65-142" />
<Limit name="measured-frame-rate-1920x1080" range="23-79" /> <Limit name="measured-frame-rate-1920x1080" range="23-79" />
</MediaCodec> </MediaCodec>
@ -135,6 +139,7 @@ Only the three quirks included above are recognized at this point:
<Limit name="measured-frame-rate-640x360" range="170-373" /> <Limit name="measured-frame-rate-640x360" range="170-373" />
<Limit name="measured-frame-rate-1280x720" range="89-196" /> <Limit name="measured-frame-rate-1280x720" range="89-196" />
<Limit name="measured-frame-rate-1920x1080" range="55-121" /> <Limit name="measured-frame-rate-1920x1080" range="55-121" />
<Limit name="measured-frame-rate-3840x2160" range="18-40" />
</MediaCodec> </MediaCodec>
<!-- Google codec --> <!-- Google codec -->
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true"> <MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">