From e97845e46e4dcb6aa30a4b3319a70a16ebde6276 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 16 Jun 2018 16:31:06 -0700 Subject: [PATCH] Add comments and documentation on MT8176 testing --- .../java/com/limelight/binding/video/MediaCodecHelper.java | 2 ++ decoder-errata.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 278c71db..a4e9d2b7 100644 --- a/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java +++ b/app/src/main/java/com/limelight/binding/video/MediaCodecHelper.java @@ -270,6 +270,8 @@ public class MediaCodecHelper { LimeLog.info("Added omx.mtk to HEVC decoders based on PowerVR GPU"); whitelistedHevcDecoders.add("omx.mtk"); + // This SoC (MT8176 in GPD XD+) supports AVC RFI too, but the maxNumReferenceFrames setting + // required to make it work adds a huge amount of latency. LimeLog.info("Added omx.mtk to RFI list for HEVC"); refFrameInvalidationHevcPrefixes.add("omx.mtk"); } diff --git a/decoder-errata.txt b/decoder-errata.txt index 5fc91cd9..4ee23f12 100644 --- a/decoder-errata.txt +++ b/decoder-errata.txt @@ -3,8 +3,8 @@ This file serves to document some of the decoder errata when using MediaCodec ha 1. num_ref_frames is set to 16 by NVENC which causes decoders to allocate 16+ buffers. This can cause an error or lag on some devices. - Affected decoders: TI OMAP4, Allwinner A20 -2. Some decoders have a huge per-frame latency with the unmodified SPS sent from NVENC. Setting max_dec_frame_buffering fixes this latency issue. - - Affected decoders: NVIDIA Tegra 3 and 4, Broadcom VideoCore IV +2. Some H.264 decoders have a huge per-frame latency with the unmodified SPS sent from NVENC. Setting max_dec_frame_buffering=1 fixes this latency issue. + - Affected decoders: NVIDIA Tegra 3 and 4, Broadcom VideoCore IV, MT8176 (HEVC not affected) 3. Some decoders strictly require that you pass BUFFER_FLAG_CODEC_CONFIG and crash upon the IDR frame if you don't - Affected decoders: TI OMAP4