From 0b18e8fdb4b0b1ad72da9a0576860617506beee3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 3 Jun 2022 01:39:39 -0500 Subject: [PATCH] Update decoder errata details --- .../com/limelight/binding/video/MediaCodecHelper.java | 1 + decoder-errata.txt | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java index 6c80104d..93b640b3 100644 --- a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java +++ b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java @@ -420,6 +420,7 @@ public class MediaCodecHelper { // // This option is also plumbed for Amazon Amlogic-based devices like the Fire TV 3. Not only does it // reduce latency on Amlogic, it fixes the HEVC bug that causes the decoder to not output any frames. + // On Fire TV 3, vdec-lowlatency is translated to OMX.amazon.fireos.index.video.lowLatencyDecode. // // https://github.com/yuan1617/Framwork/blob/master/frameworks/av/media/libstagefright/ACodec.cpp // https://github.com/iykex/vendor_mediatek_proprietary_hardware/blob/master/libomx/video/MtkOmxVdecEx/MtkOmxVdecEx.h diff --git a/decoder-errata.txt b/decoder-errata.txt index 118a66d4..b5aa973a 100644 --- a/decoder-errata.txt +++ b/decoder-errata.txt @@ -43,4 +43,10 @@ This file serves to document some of the decoder errata when using MediaCodec ha - Affected decoders: Tegra X1 in Pixel C (but NOT in SHIELD TV darcy) 15. Some devices that support Android 11's FEATURE_LowLatency don't support it on their first compatible H.264/HEVC decoder. It is important to examine *all* decoders for FEATURE_LowLatency before deciding on one. - - Affected devices: Pixel 4 (c2.qti.avc.decoder.low_latency vs c2.qti.avc.decoder) and Galaxy S21 Exynos (OMX.Exynos.avc.dec [FEATURE_LowLatency] vs C2.Exynos.avc.decoder [no FEATURE_LowLatency]) \ No newline at end of file + - Affected devices: Pixel 4 (c2.qti.avc.decoder.low_latency vs c2.qti.avc.decoder) and Galaxy S21 Exynos (OMX.Exynos.avc.dec [FEATURE_LowLatency] vs C2.Exynos.avc.decoder [no FEATURE_LowLatency]) + +16. Some decoder have magic undocumented MediaFormat options to enable low latency prior to the introduction of KEY_LOW_LATENCY in Android 11. See MediaCodecHelper.java for info. + - Affected devices: MediaTek, Amlogic, Amazon, Qualcomm, Exynos, Huawei + +17. Fire TV 3's Amlogic HEVC decoder doesn't produce any output frames without setting the magic "vdec-lowlatency" MediaFormat option + - Affected devices: Fire TV 3 \ No newline at end of file