sm6150-common: audio/media: Conditionally bring in changes from sweet V14.0.9.0.TKFMIXM
Guarded with TARGET_USES_DOLBY Change-Id: Ie8d215fa37a9258cfec5522360a4c0215c7d37b0 Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
This commit is contained in:
parent
cfc13a3311
commit
46bd645cd4
137
configs/audio/audio_effects_dolby.xml
Normal file
137
configs/audio/audio_effects_dolby.xml
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--- Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. -->
|
||||||
|
<!--- -->
|
||||||
|
<!--- Redistribution and use in source and binary forms, with or without -->
|
||||||
|
<!--- modification, are permitted provided that the following conditions are -->
|
||||||
|
<!--- met: -->
|
||||||
|
<!--- * Redistributions of source code must retain the above copyright -->
|
||||||
|
<!--- notice, this list of conditions and the following disclaimer. -->
|
||||||
|
<!--- * Redistributions in binary form must reproduce the above -->
|
||||||
|
<!--- copyright notice, this list of conditions and the following -->
|
||||||
|
<!--- disclaimer in the documentation and/or other materials provided -->
|
||||||
|
<!--- with the distribution. -->
|
||||||
|
<!--- * Neither the name of The Linux Foundation nor the names of its -->
|
||||||
|
<!--- contributors may be used to endorse or promote products derived -->
|
||||||
|
<!--- from this software without specific prior written permission. -->
|
||||||
|
<!--- -->
|
||||||
|
<!--- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
|
||||||
|
<!--- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
|
||||||
|
<!--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
|
||||||
|
<!--- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
|
||||||
|
<!--- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
|
||||||
|
<!--- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
|
||||||
|
<!--- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
|
||||||
|
<!--- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
|
||||||
|
<!--- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -->
|
||||||
|
<!--- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
|
||||||
|
<!--- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
|
||||||
|
|
||||||
|
<audio_effects_conf version="2.0" xmlns="http://schemas.android.com/audio/audio_effects_conf/v2_0">
|
||||||
|
<libraries>
|
||||||
|
<library name="bundle" path="libbundlewrapper.so"/>
|
||||||
|
<library name="reverb" path="libreverbwrapper.so"/>
|
||||||
|
<library name="visualizer_sw" path="libvisualizer.so"/>
|
||||||
|
<library name="visualizer_hw" path="libqcomvisualizer.so"/>
|
||||||
|
<library name="downmix" path="libdownmix.so"/>
|
||||||
|
<library name="loudness_enhancer" path="libldnhncr.so"/>
|
||||||
|
<library name="dynamics_processing" path="libdynproc.so"/>
|
||||||
|
<library name="proxy" path="libeffectproxy.so"/>
|
||||||
|
<library name="offload_bundle" path="libqcompostprocbundle.so"/>
|
||||||
|
<library name="audio_pre_processing" path="libqcomvoiceprocessing.so"/>
|
||||||
|
<library name="volume_listener" path="libvolumelistener.so"/>
|
||||||
|
<library name="audiosphere" path="libasphere.so"/>
|
||||||
|
<library name="shoebox" path="libshoebox.so"/>
|
||||||
|
<library name="dirac" path="libdirac.so"/>
|
||||||
|
<library name="misoundfx" path="libmisoundfx.so"/>
|
||||||
|
<!--DOLBY DAP-->
|
||||||
|
<library name="dap" path="libhwdap.so"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
<!--DOLBY GAME-->
|
||||||
|
<library name="gamedap" path="libswgamedap.so"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
<!--DOLBY VQE-->
|
||||||
|
<library name="vqe" path="libswvqe.so"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
</libraries>
|
||||||
|
<effects>
|
||||||
|
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
|
||||||
|
<libsw library="bundle" uuid="8631f300-72e2-11df-b57e-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="2c4a8c24-1581-487f-94f6-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="virtualizer" library="proxy" uuid="d3467faa-acc7-4d34-acaf-0002a5d5c51b">
|
||||||
|
<libsw library="bundle" uuid="1d4033c0-8557-11df-9f2d-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="509a4498-561a-4bea-b3b1-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="equalizer" library="proxy" uuid="c8e70ecd-48ca-456e-8a4f-0002a5d5c51b">
|
||||||
|
<libsw library="bundle" uuid="ce772f20-847d-11df-bb17-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="a0dac280-401c-11e3-9379-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effect name="volume" library="bundle" uuid="119341a0-8469-11df-81f9-0002a5d5c51b"/>
|
||||||
|
<effectProxy name="reverb_env_aux" library="proxy" uuid="48404ac9-d202-4ccc-bf84-0002a5d5c51b">
|
||||||
|
<libsw library="reverb" uuid="4a387fc0-8ab3-11df-8bad-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="79a18026-18fd-4185-8233-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="reverb_env_ins" library="proxy" uuid="b707403a-a1c1-4291-9573-0002a5d5c51b">
|
||||||
|
<libsw library="reverb" uuid="c7a511a0-a3bb-11df-860e-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="eb64ea04-973b-43d2-8f5e-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="reverb_pre_aux" library="proxy" uuid="1b78f587-6d1c-422e-8b84-0002a5d5c51b">
|
||||||
|
<libsw library="reverb" uuid="f29a1400-a3bb-11df-8ddc-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="6987be09-b142-4b41-9056-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="reverb_pre_ins" library="proxy" uuid="f3e178d2-ebcb-408e-8357-0002a5d5c51b">
|
||||||
|
<libsw library="reverb" uuid="172cdf00-a3bc-11df-a72f-0002a5d5c51b"/>
|
||||||
|
<libhw library="offload_bundle" uuid="aa2bebf6-47cf-4613-9bca-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effectProxy name="visualizer" library="proxy" uuid="1d0a1a53-7d5d-48f2-8e71-27fbd10d842c">
|
||||||
|
<libsw library="visualizer_sw" uuid="d069d9e0-8329-11df-9168-0002a5d5c51b"/>
|
||||||
|
<libhw library="visualizer_hw" uuid="7a8044a0-1a71-11e3-a184-0002a5d5c51b"/>
|
||||||
|
</effectProxy>
|
||||||
|
<effect name="downmix" library="downmix" uuid="93f04452-e4fe-41cc-91f9-e475b6d1d69f"/>
|
||||||
|
<effect name="loudness_enhancer" library="loudness_enhancer" uuid="fa415329-2034-4bea-b5dc-5b381c8d1e2c"/>
|
||||||
|
<effect name="dynamics_processing" library="dynamics_processing" uuid="e0e6539b-1781-7261-676f-6d7573696340"/>
|
||||||
|
<effect name="aec" library="audio_pre_processing" uuid="0f8d0d2a-59e5-45fe-b6e4-248c8a799109"/>
|
||||||
|
<effect name="ns" library="audio_pre_processing" uuid="1d97bb0b-9e2f-4403-9ae3-58c2554306f8"/>
|
||||||
|
<effect name="music_helper" library="volume_listener" uuid="08b8b058-0590-11e5-ac71-0025b32654a0"/>
|
||||||
|
<effect name="ring_helper" library="volume_listener" uuid="0956df94-0590-11e5-bdbe-0025b32654a0"/>
|
||||||
|
<effect name="alarm_helper" library="volume_listener" uuid="09f303e2-0590-11e5-8fdb-0025b32654a0"/>
|
||||||
|
<effect name="voice_helper" library="volume_listener" uuid="0ace5c08-0590-11e5-ae9e-0025b32654a0"/>
|
||||||
|
<effect name="notification_helper" library="volume_listener" uuid="0b776dde-0590-11e5-81ba-0025b32654a0"/>
|
||||||
|
<effect name="audiosphere" library="audiosphere" uuid="184e62ab-2d19-4364-9d1b-c0a40733866c"/>
|
||||||
|
<effect name="shoebox" library="shoebox" uuid="1eab784c-1a36-4b2a-b7fc-e34c44cab89e"/>
|
||||||
|
<effect name="dirac" library="dirac" uuid="e069d9e0-8329-11df-9168-0002a5d5c51b"/>
|
||||||
|
<effect name="misoundfx" library="misoundfx" uuid="5b8e36a5-144a-4c38-b1d7-0002a5d5c51b"/>
|
||||||
|
<!--DOLBY DAP-->
|
||||||
|
<effect name="dap" library="dap" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
<!--DOLBY GAME-->
|
||||||
|
<effect name="gamedap" library="gamedap" uuid="3783c334-d3a0-4d13-874f-0032e5fb80e2"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
<!--DOLBY VQE-->
|
||||||
|
<effect name="vqe" library="vqe" uuid="64a0f614-7fa4-48b8-b081-d59dc954616f"/>
|
||||||
|
<!--DOLBY END-->
|
||||||
|
</effects>
|
||||||
|
<postprocess>
|
||||||
|
<stream type="music">
|
||||||
|
<apply effect="music_helper"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="ring">
|
||||||
|
<apply effect="ring_helper"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="alarm">
|
||||||
|
<apply effect="alarm_helper"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="voice_call">
|
||||||
|
<apply effect="voice_helper"/>
|
||||||
|
</stream>
|
||||||
|
<stream type="notification">
|
||||||
|
<apply effect="notification_helper"/>
|
||||||
|
</stream>
|
||||||
|
</postprocess>
|
||||||
|
<preprocess>
|
||||||
|
<stream type="voice_communication">
|
||||||
|
<apply effect="aec"/>
|
||||||
|
<apply effect="ns"/>
|
||||||
|
</stream>
|
||||||
|
</preprocess>
|
||||||
|
</audio_effects_conf>
|
355
configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml
Normal file
355
configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml
Normal file
@ -0,0 +1,355 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2012-2020 The Linux Foundation. All rights reserved.
|
||||||
|
|
||||||
|
Not a contribution.
|
||||||
|
|
||||||
|
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" />
|
||||||
|
|
||||||
|
If a codec has quirks OR supports multiple content types, the following syntax
|
||||||
|
can be used:
|
||||||
|
|
||||||
|
<MediaCodec name="OMX.foo.bar" >
|
||||||
|
<Type name="something/interesting" />
|
||||||
|
<Type name="something/else" />
|
||||||
|
...
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="output-buffers-are-unreadable" />
|
||||||
|
</MediaCodec>
|
||||||
|
|
||||||
|
Only the three quirks included above are recognized at this point:
|
||||||
|
|
||||||
|
"requires-allocate-on-input-ports"
|
||||||
|
must be advertised if the component does not properly support specification
|
||||||
|
of input buffers using the OMX_UseBuffer(...) API but instead requires
|
||||||
|
OMX_AllocateBuffer to be used.
|
||||||
|
|
||||||
|
"requires-allocate-on-output-ports"
|
||||||
|
must be advertised if the component does not properly support specification
|
||||||
|
of output buffers using the OMX_UseBuffer(...) API but instead requires
|
||||||
|
OMX_AllocateBuffer to be used.
|
||||||
|
|
||||||
|
"output-buffers-are-unreadable"
|
||||||
|
must be advertised if the emitted output buffers of a decoder component
|
||||||
|
are not readable, i.e. use a custom format even though abusing one of
|
||||||
|
the official OMX colorspace constants.
|
||||||
|
Clients of such decoders will not be able to access the decoded data,
|
||||||
|
naturally making the component much less useful. The only use for
|
||||||
|
a component with this quirk is to render the output to the screen.
|
||||||
|
Audio decoders MUST NOT advertise this quirk.
|
||||||
|
Video decoders that advertise this quirk must be accompanied by a
|
||||||
|
corresponding color space converter for thumbnail extraction,
|
||||||
|
matching surfaceflinger support that can render the custom format to
|
||||||
|
a texture and possibly other code, so just DON'T USE THIS QUIRK.
|
||||||
|
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
sdmmagpie Non-Secure decoder capabilities
|
||||||
|
_________________________________________________________
|
||||||
|
| Codec | W H fps Mbps MB/s |
|
||||||
|
|_____________|_________________________________________|
|
||||||
|
| h264 | 4096 2160 30 100 1036800 |
|
||||||
|
| hevc | 4096 2160 30 100 1036800 |
|
||||||
|
| vp8 | 1920 1088 60 100 489600 |
|
||||||
|
| vp9 | 4096 2160 30 100 1036800 |
|
||||||
|
| | (4096) (2304) (30) (120) |
|
||||||
|
| mpeg2 | 1920 1088 30 40 244800 |
|
||||||
|
|_____________|_________________________________________|
|
||||||
|
|
||||||
|
sdmmagpie Secure decoder capabilities
|
||||||
|
______________________________________________________
|
||||||
|
| Codec | W H fps Mbps MB/s |
|
||||||
|
|__________|_________________________________________|
|
||||||
|
| h264 | 4096 2160 30 40 1036800 |
|
||||||
|
| vp9 | 4096 2160 30 40 1036800 |
|
||||||
|
| hevc | 4096 2160 30 40 1036800 |
|
||||||
|
| mpeg2 | 1920 1088 30 40 244800 |
|
||||||
|
|__________|_________________________________________|
|
||||||
|
|
||||||
|
sdmmagpie Non-Secure encoder capabilities (Secure not supported)
|
||||||
|
______________________________________________________
|
||||||
|
| Codec | W H fps Mbps MB/s |
|
||||||
|
|__________|_________________________________________|
|
||||||
|
| h264 | 4096 2160 30 100 1036800 |
|
||||||
|
| hevc | 4096 2160 30 100 1036800 |
|
||||||
|
| vp8 | 1920 1088 60 40 489600 |
|
||||||
|
|__________|_________________________________________|
|
||||||
|
-->
|
||||||
|
|
||||||
|
<MediaCodecs>
|
||||||
|
<Settings>
|
||||||
|
<Domain name="telephony" enabled="true" />
|
||||||
|
<Setting name="max-video-encoder-input-buffers" value="11" />
|
||||||
|
</Settings>
|
||||||
|
<Encoders>
|
||||||
|
<MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||||
|
<Limit name="size" min="96x96" max="3840x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-240" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="120" />
|
||||||
|
<Limit name="performance-point-1280x720" value="240" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||||
|
<Limit name="size" min="96x96" max="1920x1088" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="489600" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-120" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="60" />
|
||||||
|
<Limit name="performance-point-1280x720" value="120" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.encoder.hevc" type="video/hevc" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||||
|
<Limit name="size" min="96x96" max="3840x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-240" />
|
||||||
|
<Limit name="quality" range="0-100" default="80" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="120" />
|
||||||
|
<Limit name="performance-point-1280x720" value="240" />
|
||||||
|
<Feature name="bitrate-modes" value="VBR,CBR" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.encoder.hevc.cq" type="video/hevc" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||||
|
<Limit name="size" min="512x512" max="512x512" />
|
||||||
|
<Limit name="frame-rate" range="1-20" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="quality" range="0-100" default="80" />
|
||||||
|
<Limit name="performance-point-512x512" value="480" />
|
||||||
|
<Feature name="bitrate-modes" value="CQ" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.encoder.heic" type="image/vnd.android.heic" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Quirk name="requires-loaded-to-idle-after-allocation" />
|
||||||
|
<Limit name="size" min="512x512" max="8192x8192" />
|
||||||
|
<Limit name="frame-rate" range="1-20" />
|
||||||
|
<Limit name="concurrent-instances" max="6" />
|
||||||
|
<Limit name="quality" range="0-100" default="80" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="12" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="40" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="30" />
|
||||||
|
<Limit name="performance-point-1280x720" value="80" />
|
||||||
|
<Limit name="performance-point-1280x720" value="60" />
|
||||||
|
<Feature name="bitrate-modes" value="CQ" />
|
||||||
|
</MediaCodec>
|
||||||
|
</Encoders>
|
||||||
|
<Decoders>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-240" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" range="120" />
|
||||||
|
<Limit name="performance-point-1280x720" value="240" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<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="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-60" />
|
||||||
|
<Limit name="concurrent-instances" max="3" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" value="60" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
<Feature name="secure-playback" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="1920x1088" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="244800" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-30" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="30" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.mpeg2.secure" type="video/mpeg2" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="1920x1088" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="244800" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-30" />
|
||||||
|
<Limit name="concurrent-instances" max="3" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="30" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
<Feature name="secure-playback" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="1920x1088" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="489600" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-120" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-1920x1080" value="60" />
|
||||||
|
<Limit name="performance-point-1280x720" value="120" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-240" />
|
||||||
|
<Limit name="concurrent-instances" max="6" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" range="120" />
|
||||||
|
<Limit name="performance-point-1280x720" value="240" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.vp9.secure" type="video/x-vnd.on2.vp9" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-60" />
|
||||||
|
<Limit name="concurrent-instances" max="3" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" value="60" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
<Feature name="secure-playback" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
|
||||||
|
<Quirk name="requires-allocate-on-input-ports" />
|
||||||
|
<Quirk name="requires-allocate-on-output-ports" />
|
||||||
|
<Limit name="size" min="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-100000000" />
|
||||||
|
<Limit name="frame-rate" range="1-240" />
|
||||||
|
<Limit name="concurrent-instances" max="16" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" range="120" />
|
||||||
|
<Limit name="performance-point-1280x720" value="240" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<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="96x96" max="4096x2160" />
|
||||||
|
<Limit name="alignment" value="2x2" />
|
||||||
|
<Limit name="block-size" value="16x16" />
|
||||||
|
<Limit name="blocks-per-second" min="24" max="972000" />
|
||||||
|
<Limit name="bitrate" range="1-40000000" />
|
||||||
|
<Limit name="frame-rate" range="1-60" />
|
||||||
|
<Limit name="concurrent-instances" max="3" />
|
||||||
|
<Limit name="performance-point-4096x2160" value="24" />
|
||||||
|
<Limit name="performance-point-3840x2160" value="30" />
|
||||||
|
<Limit name="performance-point-1920x1088" value="60" />
|
||||||
|
<Feature name="adaptive-playback" />
|
||||||
|
<Feature name="can-swap-width-height" required="true" />
|
||||||
|
<Feature name="secure-playback" required="true" />
|
||||||
|
</MediaCodec>
|
||||||
|
<!-- Audio Software -->
|
||||||
|
</Decoders>
|
||||||
|
<!-- Dolby Audio -->
|
||||||
|
<Include href="media_codecs_dolby_audio.xml" />
|
||||||
|
</MediaCodecs>
|
18
sm6150.mk
18
sm6150.mk
@ -62,8 +62,15 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
libaudio-resampler
|
libaudio-resampler
|
||||||
|
|
||||||
|
ifeq ($(TARGET_USES_DOLBY),true)
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/audio/audio_effects_dolby.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
|
||||||
|
else
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
||||||
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
|
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
|
||||||
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
||||||
$(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt
|
$(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt
|
||||||
@ -225,10 +232,17 @@ PRODUCT_COPY_FILES += \
|
|||||||
hardware/qcom-caf/sm8150/media/conf_files/sm6150/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
hardware/qcom-caf/sm8150/media/conf_files/sm6150/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
||||||
hardware/qcom-caf/sm8150/media/conf_files/sm6150/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml
|
hardware/qcom-caf/sm8150/media/conf_files/sm6150/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml
|
||||||
|
|
||||||
|
ifeq ($(TARGET_USES_DOLBY),true)
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1_dolby.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
|
||||||
|
else
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
|
||||||
|
endif
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(LOCAL_PATH)/configs/media/media_codecs_performance_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
$(LOCAL_PATH)/configs/media/media_codecs_performance_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
||||||
$(LOCAL_PATH)/configs/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
|
$(LOCAL_PATH)/configs/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
|
||||||
$(LOCAL_PATH)/configs/media/media_codecs_vendor_sdmmagpie_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
|
||||||
$(LOCAL_PATH)/configs/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
|
$(LOCAL_PATH)/configs/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
|
||||||
|
|
||||||
# Network
|
# Network
|
||||||
|
Loading…
Reference in New Issue
Block a user