aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrisBal <crisbaladim@yahoo.gr>2021-06-05 10:07:01 +0300
committerDavide Garberi <dade.garberi@gmail.com>2021-10-19 15:09:38 +0200
commiteacacfe076272ebf2c8f6ac6870613769e076823 (patch)
treed8a871c14478c5e138b717f2b329b37e9132df21
parent758358b102b48fae95221eab526af31ba2f1c16d (diff)
msm8996-common: Update and drop deprecated media codecs
We droping old deprecated vp8-vp9 media codecs and we updating to latest Google for media_codecs_performance. This update fixing the following errors/bugs that causing problems/flickering while playing video on Instagram and some audio issues on other apps. Tested with: Instagram, Facebook, WhatsApp, Viber, Duo and YouTube. Video/Audio working without issues with speaker and LeEco headphones. E OMX-VDEC-1080P: Enable/Disable allocate-native-handle allowed only on input port! E OMX-VDEC-1080P: set_parameter: Error: 0x80001019, setting param 0x7f00005d E OMXNodeInstance: setParameter(0xf1900014:qcom.decoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019) E OMXNodeInstance: getParameter(0xf1920034:qcom.decoder.vp9, ??(0x7f000044)) ERROR: UnsupportedSetting(0x80001019) E OMXNodeInstance: getExtensionIndex(0xf1920034:qcom.decoder.vp9, OMX.google.android.index.configureVideoTunnelMode) ERROR: NotImplemented(0x80001006) E OMXMaster: makeComponentInstance(OMX.google.vp9.decoder) in android.hardwar process E OMX-VDEC-1080P: Enable/Disable allocate-native-handle allowed only on input port! E OMX-VDEC-1080P: set_parameter: Error: 0x80001019, setting param 0x7f00005d E OMXNodeInstance: setParameter(0xf1920034:qcom.decoder.vp9.secure, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019) E OMXNodeInstance: getExtensionIndex(0xf3280710:google.vp9.decoder, OMX.google.android.index.configureVideoTunnelMode) ERROR: UnsupportedIndex(0x8000101a) D MediaCodecInfo: detail feature-tunneled-playback wasn't present to remove E OMXNodeInstance: getExtensionIndex(0xf3280710:google.vp9.decoder, OMX.google.android.index.enableAndroidNativeBuffers) ERROR: UnsupportedIndex(0x8000101a) E OMXNodeInstance: getConfig(0xf3280f60:google.vp8.encoder, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: Undefined(0x80001001) E OMXNodeInstance: getParameter(0xf3280f60:google.vp8.encoder, ParamVideoIntraRefresh(0x6000006)) ERROR: UnsupportedIndex(0x8000101a) Change-Id: I3a29602f9797d560e20a7b74bab59cf74b65f187
-rw-r--r--configs/media_codecs.xml49
-rw-r--r--configs/media_codecs_performance.xml45
2 files changed, 29 insertions, 65 deletions
diff --git a/configs/media_codecs.xml b/configs/media_codecs.xml
index 86983dd..8e23634 100644
--- a/configs/media_codecs.xml
+++ b/configs/media_codecs.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- Copyright 2016 The Android Open Source Project
+<!-- Copyright 2016-2021 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
@@ -239,53 +239,6 @@ Only the three quirks included above are recognized at this point:
<Limit name="performance-point-720x576" value="25" />
<Limit name="performance-point-720x480" value="30" />
</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="64x64" max="4096x4096" />
- <Limit name="alignment" value="2x2" />
- <Limit name="block-size" value="16x16" />
- <Limit name="block-count" range="1-32768" /> <!-- max 4096x2048 -->
- <Limit name="blocks-per-second" min="1" max="979200" />
- <Limit name="bitrate" range="1-20000000" />
- <Feature name="adaptive-playback" />
- <Limit name="concurrent-instances" max="16" />
- <Limit name="performance-point-3840x2160" value="30" />
- <Limit name="performance-point-1920x1080" value="120" />
- <Limit name="performance-point-1280x720" value="240" />
- </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="64x64" max="4096x4096" />
- <Limit name="alignment" value="2x2" />
- <Limit name="block-size" value="16x16" />
- <Limit name="block-count" range="1-32768" /> <!-- max 4096x2048 -->
- <Limit name="blocks-per-second" min="1" max="979200" />
- <Limit name="bitrate" range="1-100000000" />
- <Limit name="frame-rate" range="1-240" />
- <Feature name="adaptive-playback" />
- <Limit name="concurrent-instances" max="16" />
- <Limit name="performance-point-3840x2160" value="30" />
- <Limit name="performance-point-1920x1080" value="120" />
- <Limit name="performance-point-1280x720" value="240" />
- </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="64x64" max="4096x4096" />
- <Limit name="alignment" value="2x2" />
- <Limit name="block-size" value="16x16" />
- <Limit name="block-count" range="1-32768" /> <!-- max 4096x2048 -->
- <Limit name="blocks-per-second" min="1" max="979200" />
- <Limit name="bitrate" range="1-100000000" />
- <Feature name="adaptive-playback" />
- <Feature name="secure-playback" required="true" />
- <Limit name="concurrent-instances" max="6" />
- <Limit name="performance-point-3840x2160" value="30" />
- <Limit name="performance-point-1920x1080" value="120" />
- <Limit name="performance-point-1280x720" value="240" />
- </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" />
diff --git a/configs/media_codecs_performance.xml b/configs/media_codecs_performance.xml
index c5da446..3681e2f 100644
--- a/configs/media_codecs_performance.xml
+++ b/configs/media_codecs_performance.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- Copyright 2019 The Android Open Source Project
+<!-- Copyright 2019-2021 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
@@ -49,7 +49,7 @@
<MediaCodec name="c2.android.mpeg4.encoder" type="video/mp4v-es" update="true">
<Limit name="measured-frame-rate-176x144" range="337-357" /> <!-- N=148 v98%=1.2 -->
</MediaCodec>
- <MediaCodec name="OMX.qcom.video.encoder.vp8" type="video/x-vnd.on2.vp8" update="true">
+ <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" update="true">
<Limit name="measured-frame-rate-320x180" range="138-138" /> <!-- N=148 v98%=1.2 -->
<Limit name="measured-frame-rate-640x360" range="93-93" /> <!-- N=148 v98%=1.2 -->
<Limit name="measured-frame-rate-1280x720" range="39-39" /> <!-- N=148 v98%=1.2 -->
@@ -105,28 +105,39 @@
<Limit name="measured-frame-rate-176x144" range="497-497" /> <!-- N=158 v98%=1.1 -->
</MediaCodec>
<MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" update="true">
- <Limit name="measured-frame-rate-320x180" range="311-311" /> <!-- N=156 v98%=1.1 -->
+ <Limit name="measured-frame-rate-320x180" range="360-360" /> <!-- N=156 v98%=1.1 -->
<Limit name="measured-frame-rate-640x360" range="259-259" /> <!-- N=156 v98%=1.1 -->
<Limit name="measured-frame-rate-1280x720" range="363-363" /> <!-- N=156 v98%=1.1 -->
<Limit name="measured-frame-rate-1920x1080" range="249-249" /> <!-- N=156 v98%=1.0 -->
</MediaCodec>
- <MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
- <Limit name="measured-frame-rate-320x180" range="267-267" /> <!-- N=158 v98%=1.2 -->
- <Limit name="measured-frame-rate-640x360" range="120-120" /> <!-- N=157 v98%=1.2 -->
- <Limit name="measured-frame-rate-1920x1080" range="17-17" /> <!-- N=156 v98%=1.0 -->
+ <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
+ <Limit name="measured-frame-rate-320x180" range="495-500" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-320x240" range="1330-1330" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-640x360" range="146-149" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1280x720" range="31-31" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1920x1080" range="12-13" /> <!-- N=156 v98%=1.2 -->
</MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.vp9" type="video/x-vnd.on2.vp9" update="true">
- <Limit name="measured-frame-rate-320x180" range="279-280" /> <!-- N=156 v98%=1.0 -->
- <Limit name="measured-frame-rate-640x360" range="255-255" /> <!-- N=156 v98%=1.0 -->
- <Limit name="measured-frame-rate-1280x720" range="303-303" /> <!-- N=156 v98%=1.0 -->
- <Limit name="measured-frame-rate-1920x1080" range="269-269" /> <!-- N=156 v98%=1.0 -->
- <Limit name="measured-frame-rate-3840x2160" range="45-45" /> <!-- N=156 v98%=1.0 -->
+ <MediaCodec name="c2.android.vp8.decoder" type="video/x-vnd.on2.vp8" update="true">
+ <Limit name="measured-frame-rate-320x180" range="267-267" /> <!-- N=158 v98%=1.2 -->
+ <Limit name="measured-frame-rate-320x240" range="330-381" /> <!-- N=158 v98%=1.2 -->
+ <Limit name="measured-frame-rate-640x360" range="139-185" /> <!-- N=158 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1280x720" range="22-38" /> <!-- N=158 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1920x1080" range="9-18" /> <!-- N=158 v98%=1.2 -->
+ </MediaCodec>
+ <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
+ <Limit name="measured-frame-rate-320x180" range="279-280" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-320x240" range="511-511" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-640x360" range="255-255" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1280x720" range="303-303" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1920x1080" range="269-269" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-3840x2160" range="45-45" /> <!-- N=156 v98%=1.2 -->
</MediaCodec>
<MediaCodec name="c2.android.vp9.decoder" type="video/x-vnd.on2.vp9" update="true">
- <Limit name="measured-frame-rate-320x180" range="280-280" /> <!-- N=156 v98%=1.3 -->
- <Limit name="measured-frame-rate-640x360" range="153-153" /> <!-- N=156 v98%=1.2 -->
- <Limit name="measured-frame-rate-1280x720" range="69-69" /> <!-- N=156 v98%=1.2 -->
- <Limit name="measured-frame-rate-1920x1080" range="46-46" /> <!-- N=156 v98%=1.1 -->
+ <Limit name="measured-frame-rate-320x180" range="280-280" /> <!-- N=156 v98%=1.3 -->
+ <Limit name="measured-frame-rate-320x240" range="200-230" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-640x360" range="153-153" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1280x720" range="69-69" /> <!-- N=156 v98%=1.2 -->
+ <Limit name="measured-frame-rate-1920x1080" range="46-46" /> <!-- N=156 v98%=1.1 -->
</MediaCodec>
</Decoders>
</MediaCodecs>