xun: Sync with latest device changes

* With latest changes at https://github.com/Xiaomi-Redmi-Pad-SE-Resources/android_device_xiaomi_xun/commit/357430ad35a41af344d48b04001ce4479dd63da2

Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
This commit is contained in:
dodyirawan85 committed 2025-06-06 22:35:34 +07:00
1 parent 5688523007
commit f795c86e48
9 files changed
+63 -2080

No files matched your search

+6 -6
View File
@@ -5,14 +5,14 @@
soong_namespace {
imports: [
"vendor/xiaomi/sm6225-common",
"device/xiaomi/sm6225-common",
"hardware/qcom-caf/sm6225",
"hardware/qcom-caf/wlan",
"hardware/xiaomi",
"device/xiaomi/sm6225-common",
"hardware/qcom-caf/sm6225",
"hardware/qcom-caf/wlan",
"hardware/xiaomi",
"vendor/qcom/opensource/commonsys/display",
"vendor/qcom/opensource/commonsys-intf/display",
"vendor/qcom/opensource/dataservices",
"vendor/qcom/opensource/display",
"vendor/qcom/opensource/dataservices",
"vendor/qcom/opensource/display",
],
}
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- MIUI ADD:Build_MIUIBuildFrame -->
<displayConfiguration>
<!-- Global Brightness-Nit mapping -->
<screenBrightnessMap>
<point>
<value>0.003421310</value>
<nits>2.0</nits>
</point>
<point>
<value>1.0</value>
<nits>400.0</nits>
</point>
</screenBrightnessMap>
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
</displayConfiguration>
<!-- END Build_MIUIBuildFrame -->
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- MIUI ADD:Build_MIUIBuildFrame -->
<displayConfiguration>
<!-- Global Brightness-Nit mapping -->
<screenBrightnessMap>
<point>
<value>0.003421310</value>
<nits>2.0</nits>
</point>
<point>
<value>1.0</value>
<nits>400.0</nits>
</point>
</screenBrightnessMap>
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
</displayConfiguration>
<!-- END Build_MIUIBuildFrame -->
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- MIUI ADD:Build_MIUIBuildFrame -->
<displayConfiguration>
<!-- Global Brightness-Nit mapping -->
<screenBrightnessMap>
<point>
<value>0.003421310</value>
<nits>2.0</nits>
</point>
<point>
<value>1.0</value>
<nits>400.0</nits>
</point>
</screenBrightnessMap>
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
</displayConfiguration>
<!-- END Build_MIUIBuildFrame -->
-329
View File
@@ -1,329 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2018-2023 Qualcomm Technologies, Inc.
All Rights Reserved.
Confidential and Proprietary - Qualcomm Technologies, Inc.
Not a Contribution.
Copyright (C) 2012-2018 The Linux Foundation. All rights reserved.
Copyright (C) 2012-2013 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.
-->
<!--
<!DOCTYPE MediaCodecs [
<!ELEMENT Include EMPTY>
<!ATTLIST Include href CDATA #REQUIRED>
<!ELEMENT MediaCodecs (Decoders|Encoders|Include)*>
<!ELEMENT Decoders (MediaCodec|Include)*>
<!ELEMENT Encoders (MediaCodec|Include)*>
<!ELEMENT MediaCodec (Type|Quirk|Include)*>
<!ATTLIST MediaCodec name CDATA #REQUIRED>
<!ATTLIST MediaCodec type CDATA>
<!ELEMENT Type EMPTY>
<!ATTLIST Type name CDATA #REQUIRED>
<!ELEMENT Quirk EMPTY>
<!ATTLIST Quirk name CDATA #REQUIRED>
]>
There's a simple and a complex syntax to declare the availability of a
media codec:
A codec that properly follows the OpenMax spec and therefore doesn't have any
quirks and that only supports a single content type can be declared like so:
<MediaCodec name="OMX.foo.bar" type="something/interesting" />
-->
<!--
Non-Secure decoder capabilities
(MB is defined as 16x16)
_______________________________________________________
| Codec | W H fps Mbps MB/s |
|_____________|_________________________________________|
| h264 | 1920 1088 60 60 489600 |
| hevc | 1920 1088 60 60 489600 |
| vp9 | 1920 1088 60 60 489600 |
|_____________|_________________________________________|
Secure decoder capabilities
(MB is defined as 16x16)
_____________________________________________________
| Codec | W H fps Mbps MB/s |
|__________|_________________________________________|
| h264 | 1920 1088 60 35 489600 |
| vp9 | 1920 1088 60 35 489600 |
| hevc | 1920 1088 60 35 489600 |
|__________|_________________________________________|
Non-Secure encoder capabilities (Secure not supported)
(MB is defined as 16x16)
______________________________________________________
| Codec | W H fps Mbps MB/s |
|__________|_________________________________________|
| h264 | 1920 1088 60 60 489600 |
| hevc | 1920 1088 60 60 489600 |
|__________|_________________________________________|
-->
<MediaCodecs>
<Include href="media_codecs_google_audio.xml" />
<Include href="media_codecs_vendor_audio.xml" />
<Include href="media_codecs_google_telephony.xml" />
<Include href="media_codecs_c2_audio.xml" />
<Settings>
<Setting name="max-video-encoder-input-buffers" value="11" />
</Settings>
<Settings>
<Variant name="slow-cpu" enabled="true" />
</Settings>
<Decoders>
<!-- C2 decoders -->
<MediaCodec name="c2.qti.avc.decoder" type="video/avc" >
<Alias name="OMX.qcom.video.decoder.avc"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="36-489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.avc.decoder.low_latency" type="video/avc">
<Alias name="OMX.qcom.video.decoder.avc.low_latency"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" range="36-489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Limit name="concurrent-instances" max="4" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="low-latency" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.avc.decoder.secure" type="video/avc" >
<Alias name="OMX.qcom.video.decoder.avc.secure"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-35000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="low-latency" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="3" />
<Limit name="concurrent-instances" max="3" />
<Limit name="performance-point-1920x1080" value="30" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.decoder" type="video/hevc" >
<Alias name="OMX.qcom.video.decoder.hevc"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.decoder.low_latency" type="video/hevc" >
<Alias name="OMX.qcom.video.decoder.hevc.low_latency"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="low-latency" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.decoder.secure" type="video/hevc" >
<Alias name="OMX.qcom.video.decoder.hevc.secure"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-35000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="low-latency" />
<Feature name="secure-playback" required="true" />
<Limit name="concurrent-instances" max="3" />
<Limit name="performance-point-1920x1080" value="30" />
</MediaCodec>
<MediaCodec name="c2.qti.vp9.decoder" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.qcom.video.decoder.vp9"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
</MediaCodec>
<MediaCodec name="c2.qti.vp9.decoder.low_latency" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.qcom.video.decoder.vp9.low_latency"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="low-latency" />
<Limit name="concurrent-instances" max="4" />
<Limit name="performance-point-1920x1080" value="60" />
</MediaCodec>
<MediaCodec name="c2.qti.vp9.decoder.secure" type="video/x-vnd.on2.vp9" >
<Alias name="OMX.qcom.video.decoder.vp9.secure"/>
<Limit name="size" min="96x96" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="36" max="489600" />
<Limit name="bitrate" range="1-35000000" />
<Limit name="frame-rate" range="1-60" />
<Feature name="adaptive-playback" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="secure-playback" required="true" />
<Feature name="low-latency" />
<Limit name="concurrent-instances" max="3" />
<Limit name="performance-point-1920x1080" value="30" />
</MediaCodec>
<MediaCodec name="c2.android.av1.decoder" type="video/av01" update="true" variant="slow-cpu">
<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>
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
<!-- profiles and levels: ProfileMain : MainTierLevel51 -->
<Limit name="size" min="2x2" max="1280x720" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="8x8" />
<Limit name="block-count" range="1-3600" />
<Limit name="blocks-per-second" range="1-108000" />
<Limit name="bitrate" range="1-2000000" />
</MediaCodec>
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<!-- profiles and levels: ProfileHigh : Level51 -->
<Limit name="size" min="2x2" max="1280x720" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="block-count" range="1-3600" />
<Limit name="blocks-per-second" range="1-108000" />
<Limit name="bitrate" range="1-20000000" />
<Feature name="adaptive-playback" />
</MediaCodec>
</Decoders>
<Encoders>
<!-- C2 Encoders -->
<MediaCodec name="c2.qti.avc.encoder" type="video/avc">
<Alias name="OMX.qcom.video.encoder.avc"/>
<Limit name="size" min="128x128" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="64" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Limit name="concurrent-instances" max="4" />
<Feature name="intra-refresh" />
<Feature name="can-swap-width-height" required="true" />
<Feature name="bitrate-modes" value="VBR,CBR" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.encoder" type="video/hevc">
<Alias name="OMX.qcom.video.encoder.hevc"/>
<Limit name="size" min="128x128" max="1920x1088" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="64" max="489600" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Limit name="concurrent-instances" max="4" />
<Feature name="bitrate-modes" value="VBR,CBR" />
<Feature name="intra-refresh" />
<Feature name="can-swap-width-height" required="true" />
<Limit name="performance-point-1920x1080" value="60" />
<Limit name="performance-point-1280x720" value="120" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.encoder.cq" type="video/hevc">
<Alias name="OMX.qcom.video.encoder.hevc.cq"/>
<Limit name="size" min="128x128" max="512x512" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="64" max="786432" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-120" />
<Limit name="concurrent-instances" max="4" />
<Limit name="quality" range="0-100" default="80" />
<Feature name="bitrate-modes" value="CQ" />
<Limit name="performance-point-512x512" value="2025" />
</MediaCodec>
<MediaCodec name="c2.qti.heic.encoder" type="image/vnd.android.heic">
<Alias name="OMX.qcom.video.encoder.heic"/>
<Limit name="size" min="512x512" max="8192x8192" />
<Limit name="alignment" value="2x2" />
<Limit name="block-size" value="16x16" />
<Limit name="blocks-per-second" min="64" max="786432" />
<Limit name="bitrate" range="1-60000000" />
<Limit name="frame-rate" range="1-20" />
<Limit name="concurrent-instances" max="4" />
<Limit name="quality" range="0-100" default="80" />
<Feature name="bitrate-modes" value="CQ" />
<Limit name="performance-point-8192x4320" value="3" />
<Limit name="performance-point-1920x1080" value="6" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true" variant="slow-cpu">
<!-- 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>
</Encoders>
<Include href="media_codecs_google_c2.xml" />
</MediaCodecs>
@@ -1,139 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (c) 2018-2023 Qualcomm Technologies, Inc.
All Rights Reserved.
Confidential and Proprietary - Qualcomm Technologies, Inc.
Not a Contribution.
Copyright (C) 2012-2017 The Linux Foundation. All rights reserved.
Copyright (C) 2012-2013 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.qti.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="238-238" />
<Limit name="measured-frame-rate-720x480" range="123-123" />
<Limit name="measured-frame-rate-1280x720" range="50-50" />
<Limit name="measured-frame-rate-1920x1080" range="55-65" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.encoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="226-226" />
<Limit name="measured-frame-rate-720x480" range="121-121" />
<Limit name="measured-frame-rate-1280x720" range="49-49" />
<Limit name="measured-frame-rate-1920x1080" range="55-65" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.encoder.cq" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="226-226" />
</MediaCodec>
<MediaCodec name="c2.android.avc.encoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="124-176" />
<Limit name="measured-frame-rate-720x480" range="53-76" />
<Limit name="measured-frame-rate-1280x720" range="35-50" />
<Limit name="measured-frame-rate-1920x1080" range="19-28" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.encoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-320x240" range="55-65" />
<Limit name="measured-frame-rate-720x480" range="7-10" />
<Limit name="measured-frame-rate-1280x720" range="3-6" />
<Limit name="measured-frame-rate-1920x1080" range="2-3" />
</MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="130-175" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="119-168" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="85-119" />
<Limit name="measured-frame-rate-640x360" range="41-65" />
<Limit name="measured-frame-rate-1280x720" range="21-30" />
<Limit name="measured-frame-rate-1920x1080" range="10-15" />
</MediaCodec>
</Encoders>
<Decoders>
<MediaCodec name="c2.qti.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="480-510" />
<Limit name="measured-frame-rate-720x480" range="460-490" />
<Limit name="measured-frame-rate-1280x720" range="350-400" />
<Limit name="measured-frame-rate-1920x1088" range="180-190" />
</MediaCodec>
<MediaCodec name="c2.qti.avc.decoder.low_latency" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="300-650" />
<Limit name="measured-frame-rate-720x480" range="280-630" />
<Limit name="measured-frame-rate-1280x720" range="210-460" />
<Limit name="measured-frame-rate-1920x1080" range="100-220" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="510-530" />
<Limit name="measured-frame-rate-720x480" range="465-620" />
<Limit name="measured-frame-rate-1280x720" range="200-390" />
<Limit name="measured-frame-rate-1920x1080" range="210-230" />
</MediaCodec>
<MediaCodec name="c2.qti.hevc.decoder.low_latency" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="320-690" />
<Limit name="measured-frame-rate-640x360" range="323-323" />
<Limit name="measured-frame-rate-720x480" range="290-660" />
<Limit name="measured-frame-rate-1280x720" range="270-590" />
<Limit name="measured-frame-rate-1920x1080" range="220-480" />
</MediaCodec>
<MediaCodec name="c2.qti.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<Limit name="measured-frame-rate-320x240" range="377-377" />
<Limit name="measured-frame-rate-640x360" range="323-323" />
<Limit name="measured-frame-rate-1280x720" range="262-262" />
<Limit name="measured-frame-rate-1920x1080" range="220-220" />
</MediaCodec>
<MediaCodec name="c2.qti.vp9.decoder.low_latency" type="video/x-vnd.on2.vp9" update="true">
<Limit name="measured-frame-rate-320x180" range="722-816" />
<Limit name="measured-frame-rate-640x360" range="556-577" />
<Limit name="measured-frame-rate-1280x720" range="181-185" />
<Limit name="measured-frame-rate-1920x1080" range="106-110" />
</MediaCodec>
<MediaCodec name="c2.android.avc.decoder" type="video/avc" update="true">
<Limit name="measured-frame-rate-320x240" range="63-165" />
<Limit name="measured-frame-rate-720x480" range="42-59" />
<Limit name="measured-frame-rate-1280x720" range="17-24" />
<Limit name="measured-frame-rate-1920x1080" range="8-12" />
</MediaCodec>
<MediaCodec name="c2.android.hevc.decoder" type="video/hevc" update="true">
<Limit name="measured-frame-rate-352x288" range="401-405" />
<Limit name="measured-frame-rate-640x360" range="57-89" />
<Limit name="measured-frame-rate-720x480" range="69-99" />
<Limit name="measured-frame-rate-1280x720" range="35-51" />
<Limit name="measured-frame-rate-1920x1080" range="20-29" />
</MediaCodec>
<MediaCodec name="c2.android.h263.decoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="1500-1742" />
<Limit name="measured-frame-rate-352x288" range="1000-1025" />
</MediaCodec>
<MediaCodec name="c2.android.mpeg4.decoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="1695-1928" />
<Limit name="measured-frame-rate-480x360" range="931-940" />
<Limit name="measured-frame-rate-1280x720" range="178-239" />
</MediaCodec>
<MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="1045-1050" />
<Limit name="measured-frame-rate-640x360" range="133-184" />
<Limit name="measured-frame-rate-1920x1080" range="15-22" />
</MediaCodec>
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
<Limit name="measured-frame-rate-320x180" range="182-360" />
<Limit name="measured-frame-rate-640x360" range="85-200" />
<Limit name="measured-frame-rate-1280x720" range="143-176" />
<Limit name="measured-frame-rate-1920x1080" range="23-33" />
</MediaCodec>
</Decoders>
</MediaCodecs>
@@ -1,142 +0,0 @@
// If you modify this file,
// 1. Push it to /vendor/etc/video_system_specs.json on the device
// 2. Kill media.hwcodec to get the new changed values.
// Note: Please do not use hexadecimal values 0x in this file.
{
"Video": {
// feature list used for enable/disable
"Features": {
// This enables single buffer multi-offset feature for decoder input buffer
"api_same_input_buffer_support": true,
// This is used for encoder color space conversion with custom matrix.
// custom matrix is defined in kernel driver
// this triggers to enable CSC to 709LR with custom matrix
"enc_csc_custom_matrix": false,
// this enables adaptive blur if possible by encoder.
// this is preprocessing of encoder input YUV buffers
"enc_auto_blur": false,
// this enables encoding rotate by C2D. it is used for some low tier end chipsets which
// don't support rotate feature in video core. TODO - Rename as enc_vpss_rotation
"enc_c2d_rotation": true,
// target supports cvp for all encode usecases.
"enc_cvp_enable": false,
// encoder csc enable
"enc_csc_enable": false,
"platform_disable_ubwc": true,
// It is used to enable fastCV engine for flip support in the absence of VPSS hardware
// support.
"enc_vpss_flip": false,
// This is used to limit secure usecase buffer count. Changes dynamic to static count
"dec_secure_static_count": true,
// this enables RGB conversion with image convertor
"rgb_image_converter": true,
// this will enable the graphics pipeline for
// CSC and converting images to other format and
// Rotating the frame etc
"vtxr_enable": true,
// this will enable software I/O chache coherency
"sw_cache_coherency": true
},
"Presets": {
// platform value to force HDR disable. if this value is enabled
// then HDR is disabled. this value acts as a bit mask.
// 0x0 : no over ride,
// 0x1 : disables decoder HDR,
// 0x2 : disbaled encoder HDR,
// 0x3 : disables both decoder and encoder HDR.
"vidc_disable_hdr" : 3,
// this is used for secure decoding performance boost handling
// prefech sizes of internal & output buffers
// internal : 0 MB
// output : 0 MB
"dec_sec_prefetch_size_internal": 0,
"dec_sec_prefetch_size_output": 0,
// control to force enable linear color format for decoder
// if this is enable, then decoder will produce linear color format output.
// it is bitmask:
// 0x0: no override,
// 0x1: enable 8 bit: linear format. 10 bit: compressed format
// 0x2: 8 bit: compressed format. 10 bit: linear format
// 0x3: 8 bit: linear format. 10 bit: linear format
"dec_linear_color_format": 3,
// this control enables default b frame encoding
// if it is within capability of B frame encode case
// this is used only in MediaRecorder path
// max B frame count between two P
"enc_default_bframe_count": 0,
// maximum MB/sec for default B frame enablement case
"enc_max_b_frame_mbs_per_sec": 0,
// maximum decoder output rate if it is Nuplayer path and
// player sets max refresh rate
"max_supported_render_rate": 120,
// control to force enable linear color format for encoder
// if this is enable, then encoder will ask camera via
// consumer flag to inform usage of linear color format.
// it is used only for camera path. can't be used for non-camera producer case
// it is bitmask:
// 0x0: no override,
// 0x1: enable 8 bit: linear format. 10 bit: compressed format
// 0x2: 8 bit: compressed format. 10 bit: linear format
// 0x3: 8 bit: linear format. 10 bit: linear format
"enc_linear_color_format": 3,
// override chroma qp offset value for 8 and 10 bits:
// default: 0
// allowed override value: -12
"enc_chroma_qp_offset_10_bit": 0,
"enc_chroma_qp_offset_8_bit": 0,
//encoder bitrate savings control (CAC) - content adaptive coding feature
// it is bitmask.
// 0x0: disable CAC
// 0x1: 8 bit: enable. 10 bit: disable
// 0x2: 8 bit: disable. 10 bit: enable
// 0x3: 8 bit: enable. 10 bit: enable
"enc_bitrate_savings": 1,
// minimum encoder bitrate boost
"enc_bitrate_boost": 15,
// time threshold of output buffer allocation loop since last input buffer queued(ms)
// 0 --> no such limitation (loop until allocation done)
"max_retry_alloc_output_timeout": 0,
// override default primaries to BT709 for >=UHD decode
"default_primaries_override" : 0,
// WARNING:
// Please DON'T change these values, if you don't know what you are doing.
// These are the Video HAL capabilities. Video HAL may not function properly with wrong values.
// below are various capability used
"num_vpp_pipes": 1,
// video driver version capability used for skype MediaCodec
"vt_driver_version": 534123018,
// maximum LTR cont for encoder
"ltr_max_count": 2,
// Encoder preprocessing: maximum encoder downscalar factor possible in width or height or both direction
"preprocess_max_downscale_factor": 0,
// encoder support rotation as preprocessing
"preprocess_rotation": 1,
// encoder maxium Hier-P layer count: 6
"max_temporal_layer_pframe_count": 6,
// encoder maximum Hier-B layer count: 0
"max_temporal_layer_bframe_count": 0
},
// List of HW codecs enabled for this target
"codecs-available": {
"decoders": [
"c2.qti.avc.decoder",
"c2.qti.avc.decoder.low_latency",
"c2.qti.avc.decoder.secure",
"c2.qti.hevc.decoder",
"c2.qti.hevc.decoder.low_latency",
"c2.qti.hevc.decoder.secure",
"c2.qti.vp9.decoder",
"c2.qti.vp9.decoder.low_latency",
"c2.qti.vp9.decoder.secure"
],
"encoders": [
"c2.qti.avc.encoder",
"c2.qti.hevc.encoder",
"c2.qti.hevc.encoder.cq",
"c2.qti.heic.encoder"
]
}
}
}
File diff suppressed because it is too large. Load diff
+3 -4
View File
@@ -21,6 +21,9 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/xun/proprietary/vendor/firmware/focaltech_ts_fw_huaxing_ft8203.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/focaltech_ts_fw_huaxing_ft8203.bin \
vendor/xiaomi/xun/proprietary/vendor/firmware/novatek_ts_fw_tianma.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/novatek_ts_fw_tianma.bin \
vendor/xiaomi/xun/proprietary/vendor/firmware/novatek_ts_mp_tianma.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/novatek_ts_mp_tianma.bin \
vendor/xiaomi/xun/proprietary/vendor/etc/displayconfig/display_id_4630946278308427649.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946278308427649.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/displayconfig/display_id_4630946470691739265.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946470691739265.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/displayconfig/display_id_4630946894427414401.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946894427414401.xml \
vendor/xiaomi/xun/proprietary/system_ext/etc/permissions/audiosphere.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/audiosphere.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/acdbdata/bengal_idp/IDP_acdb_cal.acdb:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/bengal_idp/IDP_acdb_cal.acdb \
vendor/xiaomi/xun/proprietary/vendor/etc/acdbdata/bengal_idp/IDP_workspaceFileXml.qwsp:$(TARGET_COPY_OUT_VENDOR)/etc/acdbdata/bengal_idp/IDP_workspaceFileXml.qwsp \
@@ -108,10 +111,6 @@ PRODUCT_COPY_FILES += \
vendor/xiaomi/xun/proprietary/vendor/etc/mdss_dsi_panel_m84_35_03_0b_fhdp_video_mi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mdss_dsi_panel_m84_35_03_0b_fhdp_video_mi.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/mdss_dsi_panel_m84_36_02_0a_fhdp_video_mi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mdss_dsi_panel_m84_36_02_0a_fhdp_video_mi.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/mdss_dsi_panel_m84_42_03_0c_fhdp_video_mi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mdss_dsi_panel_m84_42_03_0c_fhdp_video_mi.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/media_codecs_khaje_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_khaje_iot.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/media_codecs_performance_khaje_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_khaje_iot.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/media_khaje_iot/video_system_specs.json:$(TARGET_COPY_OUT_VENDOR)/etc/media_khaje_iot/video_system_specs.json \
vendor/xiaomi/xun/proprietary/vendor/etc/media_profiles_khaje_iot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_khaje_iot.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/microphone_characteristics.xml:$(TARGET_COPY_OUT_VENDOR)/etc/microphone_characteristics.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/mixer_paths_bengal_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_bengal_idp.xml \
vendor/xiaomi/xun/proprietary/vendor/etc/mixer_paths_bengal_idp_india.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_bengal_idp_india.xml \